From fdf14b7610d610f64b94827c108d4e787d78c477 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Thu, 20 Jul 2023 09:27:03 +0900 Subject: [PATCH 1/5] fix: typescript-eslint v6 compatibility --- .github/workflows/NodeCI.yml | 20 + package.json | 6 +- src/parser/parser-object.ts | 3 +- src/parser/typescript/analyze/index.ts | 1 + tests/fixtures/parser/ast/await04-output.json | 12 + .../parser/ast/await04-scope-output.json | 39 + .../07-transition-fn/05-ts-output.json | 99 ++ .../07-transition-fn/05-ts-scope-output.json | 617 +++++++++ .../fixtures/parser/ast/i18n-test-output.json | 6 + .../parser/ast/i18n-test-scope-output.json | 16 + .../issue325-eslint-plugin-svelte-output.json | 68 +- ...325-eslint-plugin-svelte-scope-output.json | 228 ++- .../issue338-eslint-plugin-svelte-output.json | 18 + ...338-eslint-plugin-svelte-scope-output.json | 72 + .../ast/reactive-with-var04-ts-output.json | 10 + .../reactive-with-var04-ts-scope-output.json | 27 + .../parser/ast/ts-$$props01-output.json | 4 + .../parser/ast/ts-$$props01-scope-output.json | 12 + .../parser/ast/ts-$$slots01-output.json | 2 + .../parser/ast/ts-$$slots01-scope-output.json | 6 + .../ast/ts-$$slots02-no-slot-output.json | 2 + .../ts-$$slots02-no-slot-scope-output.json | 6 + .../parser/ast/ts-$$slots03-named-output.json | 2 + .../ast/ts-$$slots03-named-scope-output.json | 6 + .../parser/ast/ts-$$slots04-named-output.json | 2 + .../ast/ts-$$slots04-named-scope-output.json | 6 + .../ast/ts-await-non-promise01-output.json | 24 + .../ts-await-non-promise01-scope-output.json | 87 ++ .../fixtures/parser/ast/ts-each01-output.json | 40 + .../parser/ast/ts-each01-scope-output.json | 218 +++ .../parser/ast/ts-event01-output.json | 8 + .../parser/ast/ts-event01-scope-output.json | 26 + .../parser/ast/ts-event02-output.json | 8 + .../parser/ast/ts-event02-scope-output.json | 26 + .../parser/ast/ts-event03-output.json | 36 +- .../parser/ast/ts-event03-scope-output.json | 89 +- .../parser/ast/ts-event04-output.json | 6 + .../parser/ast/ts-event04-scope-output.json | 18 + .../parser/ast/ts-event05-output.json | 10 + .../parser/ast/ts-event05-scope-output.json | 32 + .../parser/ast/ts-event06-output.json | 10 + .../parser/ast/ts-event06-scope-output.json | 32 + .../parser/ast/ts-issue226-output.json | 69 + .../parser/ast/ts-issue226-scope-output.json | 263 ++++ .../parser/ast/ts-newline-output.json | 30 + .../parser/ast/ts-newline-scope-output.json | 90 ++ .../parser/ast/ts-not-reactive01-output.json | 24 + .../ast/ts-not-reactive01-scope-output.json | 98 ++ .../parser/ast/ts-promise01-output.json | 72 +- .../parser/ast/ts-promise01-scope-output.json | 504 ++++--- .../parser/ast/ts-promise02-output.json | 112 ++ .../parser/ast/ts-promise02-scope-output.json | 322 +++++ .../parser/ast/ts-reactive01-output.json | 32 + .../ast/ts-reactive01-scope-output.json | 114 ++ .../parser/ast/ts-reactive02-output.json | 56 + .../ast/ts-reactive02-scope-output.json | 204 +++ .../parser/ast/ts-reactive03-output.json | 30 + .../ast/ts-reactive03-scope-output.json | 93 ++ .../parser/ast/ts-reactive04-output.json | 24 + .../ast/ts-reactive04-scope-output.json | 74 + .../parser/ast/ts-reactive05-output.json | 40 + .../ast/ts-reactive05-scope-output.json | 154 ++ .../parser/ast/ts-reactive06-output.json | 57 + .../ast/ts-reactive06-scope-output.json | 257 ++++ .../parser/ast/ts-scope-issue01-output.json | 26 + .../ast/ts-scope-issue01-scope-output.json | 96 ++ .../ast/ts-shorthand-attr01-output.json | 10 + .../ast/ts-shorthand-attr01-scope-output.json | 31 + .../parser/ast/ts-store01-output.json | 41 + .../parser/ast/ts-store01-scope-output.json | 171 +++ .../parser/ast/ts-store02-output.json | 26 + .../parser/ast/ts-store02-scope-output.json | 88 ++ .../parser/ast/ts-store03-output.json | 155 ++- .../parser/ast/ts-store03-scope-output.json | 1234 ++++++++++------- .../fixtures/parser/ast/ts-use01-output.json | 43 + .../parser/ast/ts-use01-scope-output.json | 227 +++ tsconfig.json | 1 + 77 files changed, 6000 insertions(+), 828 deletions(-) diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml index 80e1c657..f9fbef42 100644 --- a/.github/workflows/NodeCI.yml +++ b/.github/workflows/NodeCI.yml @@ -55,6 +55,26 @@ jobs: run: pnpm install - name: Test run: pnpm run test + test-for-ts-eslint-v5: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install @typescript-eslint v5 + run: |+ + pnpm install -D @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 + rm -rf node_modules + - name: Install Packages + run: pnpm install + - name: Test + run: pnpm run test test-for-ts-eslint-v4: runs-on: ubuntu-latest strategy: diff --git a/package.json b/package.json index 32bcb791..778793f6 100644 --- a/package.json +++ b/package.json @@ -73,9 +73,9 @@ "@types/mocha": "^10.0.1", "@types/node": "^18.16.16", "@types/semver": "^7.5.0", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "~5.62.0", - "@typescript-eslint/types": "^5.59.9", + "@typescript-eslint/eslint-plugin": "^6.1.0", + "@typescript-eslint/parser": "~6.1.0", + "@typescript-eslint/types": "^6.1.0", "benchmark": "^2.1.4", "chai": "^4.3.7", "env-cmd": "^10.1.0", diff --git a/src/parser/parser-object.ts b/src/parser/parser-object.ts index e87df98d..995efc8f 100644 --- a/src/parser/parser-object.ts +++ b/src/parser/parser-object.ts @@ -64,8 +64,7 @@ export function isTSESLintParserObject( return Boolean( services && services.esTreeNodeToTSNodeMap && - services.tsNodeToESTreeNodeMap && - services.program, + services.tsNodeToESTreeNodeMap, ); } catch { return false; diff --git a/src/parser/typescript/analyze/index.ts b/src/parser/typescript/analyze/index.ts index 805f5a86..657ce02a 100644 --- a/src/parser/typescript/analyze/index.ts +++ b/src/parser/typescript/analyze/index.ts @@ -505,6 +505,7 @@ function transformForDeclareReactiveVar( const newBody: TSESTree.ExpressionStatement = { type: "ExpressionStatement" as TSESTree.ExpressionStatement["type"], expression: assignment, + directive: undefined, loc: statement.body.loc, range: statement.body.range, parent: reactiveStatement, diff --git a/tests/fixtures/parser/ast/await04-output.json b/tests/fixtures/parser/ast/await04-output.json index 35c3ec69..aaf344d0 100644 --- a/tests/fixtures/parser/ast/await04-output.json +++ b/tests/fixtures/parser/ast/await04-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -131,6 +134,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 31, 38 @@ -150,6 +155,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 39, 46 @@ -212,6 +219,7 @@ } } ], + "declare": false, "range": [ 21, 49 @@ -284,6 +292,8 @@ "expression": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -342,6 +352,8 @@ "value": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 79, 80 diff --git a/tests/fixtures/parser/ast/await04-scope-output.json b/tests/fixtures/parser/ast/await04-scope-output.json index 282f2707..be1c7ce1 100644 --- a/tests/fixtures/parser/ast/await04-scope-output.json +++ b/tests/fixtures/parser/ast/await04-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8677,6 +8684,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 31, 38 @@ -8696,6 +8705,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 39, 46 @@ -8764,6 +8775,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8784,6 +8797,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8804,6 +8819,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8824,6 +8841,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8848,6 +8867,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8868,6 +8889,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8888,6 +8911,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 31, 38 @@ -8911,6 +8936,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8931,6 +8958,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8965,6 +8994,8 @@ { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -8987,6 +9018,8 @@ "name": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -9008,6 +9041,8 @@ "value": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -9073,6 +9108,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 31, 38 @@ -9100,6 +9137,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 31, 38 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json index 4d782217..273722e1 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json @@ -106,9 +106,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -193,6 +196,7 @@ } } ], + "declare": false, "range": [ 27, 55 @@ -238,9 +242,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -269,6 +276,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -288,6 +297,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 140, 150 @@ -322,6 +333,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 151, 157 @@ -402,6 +415,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -421,6 +436,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 175, 185 @@ -490,6 +507,8 @@ "property": { "type": "Identifier", "name": "nodeType", + "decorators": [], + "optional": false, "range": [ 189, 197 @@ -527,6 +546,8 @@ "object": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -546,6 +567,8 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", + "decorators": [], + "optional": false, "range": [ 207, 216 @@ -622,6 +645,7 @@ } } ], + "declare": false, "range": [ 116, 221 @@ -680,6 +704,8 @@ "argument": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -733,9 +759,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -759,6 +788,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -778,6 +809,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 269, 280 @@ -839,6 +872,7 @@ } } ], + "declare": false, "range": [ 251, 282 @@ -860,9 +894,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -886,6 +923,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -905,6 +944,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 307, 313 @@ -939,6 +980,8 @@ "right": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -985,6 +1028,7 @@ } } ], + "declare": false, "range": [ 285, 322 @@ -1012,6 +1056,8 @@ "key": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -1028,10 +1074,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -1069,6 +1118,8 @@ "key": { "type": "Identifier", "name": "tick", + "decorators": [], + "optional": false, "range": [ 351, 355 @@ -1085,6 +1136,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -1098,9 +1150,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -1128,6 +1183,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -1147,6 +1204,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -1181,6 +1240,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -1261,6 +1322,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -1286,6 +1348,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -1305,6 +1369,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -1361,6 +1427,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -1383,6 +1451,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -1402,6 +1472,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -1501,6 +1573,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1553,6 +1627,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1680,11 +1756,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -1704,6 +1783,8 @@ { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1711,6 +1792,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -1773,6 +1856,8 @@ }, { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -1781,6 +1866,8 @@ "key": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -1797,12 +1884,16 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", + "decorators": [], "left": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -1818,6 +1909,7 @@ } } }, + "optional": false, "right": { "type": "Literal", "raw": "50", @@ -1956,6 +2048,8 @@ "expression": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "range": [ 489, 496 @@ -2004,6 +2098,8 @@ "name": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 505, 515 @@ -2047,6 +2143,8 @@ "key": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 520, 525 @@ -2063,6 +2161,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json index 742ede7c..0b3c503d 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json @@ -3832,6 +3832,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -4852,6 +4854,8 @@ "identifier": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -8659,6 +8663,8 @@ { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8715,6 +8721,8 @@ "name": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8766,9 +8774,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8859,6 +8870,8 @@ "identifier": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8913,6 +8926,8 @@ "resolved": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8967,6 +8982,8 @@ "identifier": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9021,6 +9038,8 @@ "resolved": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9075,6 +9094,8 @@ "identifier": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "range": [ 489, 496 @@ -9095,6 +9116,8 @@ "resolved": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9153,6 +9176,8 @@ { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -9175,6 +9200,8 @@ "name": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -9202,9 +9229,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -9233,6 +9263,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -9252,6 +9284,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 140, 150 @@ -9286,6 +9320,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 151, 157 @@ -9366,6 +9402,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -9385,6 +9423,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 175, 185 @@ -9454,6 +9494,8 @@ "property": { "type": "Identifier", "name": "nodeType", + "decorators": [], + "optional": false, "range": [ 189, 197 @@ -9491,6 +9533,8 @@ "object": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -9510,6 +9554,8 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", + "decorators": [], + "optional": false, "range": [ 207, 216 @@ -9586,6 +9632,7 @@ } } ], + "declare": false, "range": [ 116, 221 @@ -9644,6 +9691,8 @@ "argument": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -9697,9 +9746,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -9723,6 +9775,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -9742,6 +9796,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 269, 280 @@ -9803,6 +9859,7 @@ } } ], + "declare": false, "range": [ 251, 282 @@ -9824,9 +9881,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -9850,6 +9910,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -9869,6 +9931,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 307, 313 @@ -9903,6 +9967,8 @@ "right": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -9949,6 +10015,7 @@ } } ], + "declare": false, "range": [ 285, 322 @@ -9976,6 +10043,8 @@ "key": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -9992,10 +10061,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -10033,6 +10105,8 @@ "key": { "type": "Identifier", "name": "tick", + "decorators": [], + "optional": false, "range": [ 351, 355 @@ -10049,6 +10123,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -10062,9 +10137,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -10092,6 +10170,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -10111,6 +10191,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -10145,6 +10227,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -10225,6 +10309,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -10250,6 +10335,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -10269,6 +10356,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -10325,6 +10414,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -10347,6 +10438,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -10366,6 +10459,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -10465,6 +10560,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10517,6 +10614,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10644,11 +10743,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -10668,6 +10770,8 @@ { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10675,6 +10779,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -10737,6 +10843,8 @@ }, { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -10745,6 +10853,8 @@ "key": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -10761,12 +10871,16 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", + "decorators": [], "left": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -10782,6 +10896,7 @@ } } }, + "optional": false, "right": { "type": "Literal", "raw": "50", @@ -10870,6 +10985,8 @@ "identifier": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 505, 515 @@ -10890,6 +11007,8 @@ "resolved": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -10914,6 +11033,8 @@ "identifier": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10968,6 +11089,8 @@ "resolved": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11022,6 +11145,8 @@ "identifier": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "range": [ 489, 496 @@ -11042,6 +11167,8 @@ "resolved": { "type": "Identifier", "name": "visible", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11109,6 +11236,8 @@ { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11116,6 +11245,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -11183,6 +11314,8 @@ "name": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11190,6 +11323,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -11262,9 +11397,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -11293,6 +11431,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -11312,6 +11452,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 140, 150 @@ -11346,6 +11488,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 151, 157 @@ -11426,6 +11570,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -11445,6 +11591,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 175, 185 @@ -11514,6 +11662,8 @@ "property": { "type": "Identifier", "name": "nodeType", + "decorators": [], + "optional": false, "range": [ 189, 197 @@ -11551,6 +11701,8 @@ "object": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -11570,6 +11722,8 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", + "decorators": [], + "optional": false, "range": [ 207, 216 @@ -11646,6 +11800,7 @@ } } ], + "declare": false, "range": [ 116, 221 @@ -11704,6 +11859,8 @@ "argument": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -11757,9 +11914,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -11783,6 +11943,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -11802,6 +11964,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 269, 280 @@ -11863,6 +12027,7 @@ } } ], + "declare": false, "range": [ 251, 282 @@ -11884,9 +12049,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -11910,6 +12078,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -11929,6 +12099,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 307, 313 @@ -11963,6 +12135,8 @@ "right": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -12009,6 +12183,7 @@ } } ], + "declare": false, "range": [ 285, 322 @@ -12036,6 +12211,8 @@ "key": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -12052,10 +12229,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -12093,6 +12273,8 @@ "key": { "type": "Identifier", "name": "tick", + "decorators": [], + "optional": false, "range": [ 351, 355 @@ -12109,6 +12291,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -12122,9 +12305,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -12152,6 +12338,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -12171,6 +12359,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -12205,6 +12395,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -12285,6 +12477,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -12310,6 +12503,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -12329,6 +12524,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -12385,6 +12582,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -12407,6 +12606,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -12426,6 +12627,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -12525,6 +12728,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12577,6 +12782,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12704,11 +12911,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -12728,6 +12938,8 @@ { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12735,6 +12947,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -12797,6 +13011,8 @@ }, { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -12805,6 +13021,8 @@ "key": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -12821,12 +13039,16 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", + "decorators": [], "left": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -12842,6 +13064,7 @@ } } }, + "optional": false, "right": { "type": "Literal", "raw": "50", @@ -12930,6 +13153,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -12950,6 +13175,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12957,6 +13184,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -13022,6 +13251,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -13042,6 +13273,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13049,6 +13282,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -13114,6 +13349,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -13134,6 +13371,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13141,6 +13380,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -13206,6 +13447,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -13226,6 +13469,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13233,6 +13478,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -13302,6 +13549,8 @@ { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -13324,6 +13573,8 @@ "name": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -13351,9 +13602,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -13382,6 +13636,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -13401,6 +13657,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 140, 150 @@ -13435,6 +13693,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 151, 157 @@ -13515,6 +13775,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -13534,6 +13796,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 175, 185 @@ -13603,6 +13867,8 @@ "property": { "type": "Identifier", "name": "nodeType", + "decorators": [], + "optional": false, "range": [ 189, 197 @@ -13640,6 +13906,8 @@ "object": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -13659,6 +13927,8 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", + "decorators": [], + "optional": false, "range": [ 207, 216 @@ -13735,6 +14005,7 @@ } } ], + "declare": false, "range": [ 116, 221 @@ -13793,6 +14064,8 @@ "argument": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -13846,9 +14119,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -13872,6 +14148,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -13891,6 +14169,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 269, 280 @@ -13952,6 +14232,7 @@ } } ], + "declare": false, "range": [ 251, 282 @@ -13973,9 +14254,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -13999,6 +14283,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -14018,6 +14304,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 307, 313 @@ -14052,6 +14340,8 @@ "right": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -14098,6 +14388,7 @@ } } ], + "declare": false, "range": [ 285, 322 @@ -14125,6 +14416,8 @@ "key": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -14141,10 +14434,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -14182,6 +14478,8 @@ "key": { "type": "Identifier", "name": "tick", + "decorators": [], + "optional": false, "range": [ 351, 355 @@ -14198,6 +14496,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -14211,9 +14510,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -14241,6 +14543,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -14260,6 +14564,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -14294,6 +14600,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -14374,6 +14682,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -14399,6 +14708,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -14418,6 +14729,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -14474,6 +14787,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -14496,6 +14811,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -14515,6 +14832,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -14614,6 +14933,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -14666,6 +14987,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -14793,11 +15116,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -14817,6 +15143,8 @@ { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -14824,6 +15152,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -14886,6 +15216,8 @@ }, { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -14894,6 +15226,8 @@ "key": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -14910,12 +15244,16 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", + "decorators": [], "left": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -14931,6 +15269,7 @@ } } }, + "optional": false, "right": { "type": "Literal", "raw": "50", @@ -15019,6 +15358,8 @@ "identifier": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -15039,6 +15380,8 @@ "resolved": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -15059,6 +15402,8 @@ "identifier": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -15079,6 +15424,8 @@ "resolved": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -15103,6 +15450,8 @@ { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15125,6 +15474,8 @@ "name": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15142,9 +15493,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15173,6 +15527,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -15192,6 +15548,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 140, 150 @@ -15226,6 +15584,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 151, 157 @@ -15306,6 +15666,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -15325,6 +15687,8 @@ "property": { "type": "Identifier", "name": "childNodes", + "decorators": [], + "optional": false, "range": [ 175, 185 @@ -15394,6 +15758,8 @@ "property": { "type": "Identifier", "name": "nodeType", + "decorators": [], + "optional": false, "range": [ 189, 197 @@ -15431,6 +15797,8 @@ "object": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -15450,6 +15818,8 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", + "decorators": [], + "optional": false, "range": [ 207, 216 @@ -15532,6 +15902,8 @@ "identifier": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15552,6 +15924,8 @@ "resolved": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15572,6 +15946,8 @@ "identifier": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -15592,6 +15968,8 @@ "resolved": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -15616,6 +15994,8 @@ { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15638,6 +16018,8 @@ "name": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15655,9 +16037,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15681,6 +16066,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -15700,6 +16087,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 269, 280 @@ -15767,6 +16156,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15787,6 +16178,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15807,6 +16200,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -15827,6 +16222,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15847,6 +16244,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -15867,6 +16266,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15887,6 +16288,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -15907,6 +16310,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -15931,6 +16336,8 @@ { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -15953,6 +16360,8 @@ "name": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -15970,9 +16379,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -15996,6 +16408,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -16015,6 +16429,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 307, 313 @@ -16049,6 +16465,8 @@ "right": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -16101,6 +16519,8 @@ "identifier": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16121,6 +16541,8 @@ "resolved": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16141,6 +16563,8 @@ "identifier": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -16161,6 +16585,8 @@ "resolved": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16185,6 +16611,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -16208,6 +16636,8 @@ "identifier": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -16228,6 +16658,8 @@ "resolved": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -16248,6 +16680,8 @@ "identifier": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -16268,6 +16702,8 @@ "resolved": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -16288,6 +16724,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 135, 139 @@ -16308,6 +16746,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16315,6 +16755,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -16380,6 +16822,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 170, 174 @@ -16400,6 +16844,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16407,6 +16853,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -16472,6 +16920,8 @@ "identifier": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -16495,6 +16945,8 @@ "identifier": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 230, 235 @@ -16515,6 +16967,8 @@ "resolved": { "type": "Identifier", "name": "valid", + "decorators": [], + "optional": false, "range": [ 122, 127 @@ -16535,6 +16989,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -16555,6 +17011,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -16575,6 +17033,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 264, 268 @@ -16595,6 +17055,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16602,6 +17064,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -16667,6 +17131,8 @@ "identifier": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16687,6 +17153,8 @@ "resolved": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16707,6 +17175,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 302, 306 @@ -16727,6 +17197,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -16747,6 +17219,8 @@ "identifier": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 316, 321 @@ -16767,6 +17241,8 @@ "resolved": { "type": "Identifier", "name": "speed", + "decorators": [], + "optional": false, "range": [ 98, 103 @@ -16787,6 +17263,8 @@ "identifier": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 338, 346 @@ -16807,6 +17285,8 @@ "resolved": { "type": "Identifier", "name": "duration", + "decorators": [], + "optional": false, "range": [ 291, 299 @@ -16834,6 +17314,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16890,6 +17372,8 @@ "name": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16951,9 +17435,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -16981,6 +17468,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -17000,6 +17489,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -17034,6 +17525,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -17114,6 +17607,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -17139,6 +17633,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -17158,6 +17654,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -17214,6 +17712,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -17236,6 +17736,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -17255,6 +17757,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -17354,6 +17858,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17406,6 +17912,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17478,6 +17986,8 @@ "identifier": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -17498,6 +18008,8 @@ "resolved": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17556,6 +18068,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17612,6 +18126,8 @@ "name": { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17673,9 +18189,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -17703,6 +18222,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -17722,6 +18243,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -17756,6 +18279,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -17836,6 +18361,7 @@ } } ], + "declare": false, "range": [ 388, 418 @@ -17861,6 +18387,8 @@ "object": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -17880,6 +18408,8 @@ "property": { "type": "Identifier", "name": "textContent", + "decorators": [], + "optional": false, "range": [ 428, 439 @@ -17936,6 +18466,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -17958,6 +18490,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -17977,6 +18511,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 447, 452 @@ -18076,6 +18612,8 @@ { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18128,6 +18666,8 @@ { "type": "Identifier", "name": "_u", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18203,6 +18743,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18225,6 +18767,8 @@ "name": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18242,9 +18786,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18272,6 +18819,8 @@ "object": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -18291,6 +18840,8 @@ "property": { "type": "Identifier", "name": "length", + "decorators": [], + "optional": false, "range": [ 406, 412 @@ -18325,6 +18876,8 @@ "right": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -18411,6 +18964,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18431,6 +18986,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18451,6 +19008,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -18471,6 +19030,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18495,6 +19056,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18515,6 +19078,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18535,6 +19100,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -18555,6 +19122,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -18575,6 +19144,8 @@ "identifier": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "range": [ 415, 416 @@ -18595,6 +19166,8 @@ "resolved": { "type": "Identifier", "name": "t", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18649,6 +19222,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -18669,6 +19244,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18676,6 +19253,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -18741,6 +19320,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -18761,6 +19342,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -18781,6 +19364,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 456, 457 @@ -18801,6 +19386,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 394, 395 @@ -18824,6 +19411,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 401, 405 @@ -18844,6 +19433,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -18864,6 +19455,8 @@ "identifier": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "range": [ 423, 427 @@ -18884,6 +19477,8 @@ "resolved": { "type": "Identifier", "name": "node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18891,6 +19486,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -18956,6 +19553,8 @@ "identifier": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 442, 446 @@ -18976,6 +19575,8 @@ "resolved": { "type": "Identifier", "name": "text", + "decorators": [], + "optional": false, "range": [ 257, 261 @@ -19000,6 +19601,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -19023,6 +19626,8 @@ "identifier": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 @@ -19052,6 +19657,8 @@ "identifier": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 505, 515 @@ -19072,6 +19679,8 @@ "resolved": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -19095,6 +19704,8 @@ "identifier": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 505, 515 @@ -19115,6 +19726,8 @@ "resolved": { "type": "Identifier", "name": "typewriter", + "decorators": [], + "optional": false, "range": [ 67, 77 @@ -19139,6 +19752,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 83, 94 @@ -19162,6 +19777,8 @@ "identifier": { "type": "Identifier", "name": "Node", + "decorators": [], + "optional": false, "range": [ 202, 206 diff --git a/tests/fixtures/parser/ast/i18n-test-output.json b/tests/fixtures/parser/ast/i18n-test-output.json index 95245a12..c73992ba 100644 --- a/tests/fixtures/parser/ast/i18n-test-output.json +++ b/tests/fixtures/parser/ast/i18n-test-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -376,6 +380,8 @@ "callee": { "type": "Identifier", "name": "$_", + "decorators": [], + "optional": false, "range": [ 103, 105 diff --git a/tests/fixtures/parser/ast/i18n-test-scope-output.json b/tests/fixtures/parser/ast/i18n-test-scope-output.json index 8785843d..ce0fd89d 100644 --- a/tests/fixtures/parser/ast/i18n-test-scope-output.json +++ b/tests/fixtures/parser/ast/i18n-test-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "$_", + "decorators": [], + "optional": false, "range": [ 103, 105 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 @@ -8753,6 +8765,8 @@ "identifier": { "type": "Identifier", "name": "$_", + "decorators": [], + "optional": false, "range": [ 103, 105 @@ -8773,6 +8787,8 @@ "resolved": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 32, 33 diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json index 28b7ba5e..250b2642 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json @@ -106,9 +106,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -211,6 +214,7 @@ } } ], + "declare": false, "range": [ 30, 60 @@ -252,9 +256,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -295,6 +302,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -314,6 +323,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -383,6 +394,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -418,6 +431,8 @@ "callee": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -486,6 +501,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -540,25 +557,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -594,6 +593,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 @@ -655,6 +674,7 @@ } } ], + "declare": false, "range": [ 72, 224 @@ -747,6 +767,8 @@ "argument": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 242, 249 @@ -812,6 +834,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 300, 307 @@ -831,6 +855,8 @@ "callee": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 286, 299 @@ -905,6 +931,8 @@ "value": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -945,6 +973,8 @@ "expression": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 357, 363 diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json index e314018b..eaf8fab7 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json @@ -406,6 +406,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 119, 126 @@ -8635,6 +8637,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8727,6 +8731,8 @@ "name": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8814,9 +8820,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8925,6 +8934,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9015,6 +9026,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9105,6 +9118,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 242, 249 @@ -9125,6 +9140,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9215,6 +9232,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 300, 307 @@ -9235,6 +9254,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9329,6 +9350,8 @@ { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9351,6 +9374,8 @@ "name": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9368,9 +9393,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9411,6 +9439,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -9430,6 +9460,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -9499,6 +9531,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -9534,6 +9568,8 @@ "callee": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -9602,6 +9638,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9656,25 +9694,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9710,6 +9730,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 @@ -9777,6 +9817,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9797,6 +9839,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9817,6 +9861,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9837,6 +9883,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9857,6 +9905,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 286, 299 @@ -9877,6 +9927,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9901,6 +9953,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9921,6 +9975,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -9941,6 +9997,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 242, 249 @@ -9961,6 +10019,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10058,6 +10118,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10114,6 +10176,8 @@ "name": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10188,6 +10252,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -10207,6 +10273,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -10276,6 +10344,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10311,6 +10381,8 @@ "callee": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -10379,6 +10451,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10433,25 +10507,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10487,6 +10543,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 @@ -10539,6 +10615,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -10559,6 +10637,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10617,6 +10697,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 119, 126 @@ -10640,6 +10722,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -10670,6 +10754,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10692,6 +10778,8 @@ "name": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10721,6 +10809,8 @@ { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -10740,6 +10830,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -10809,6 +10901,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10847,6 +10941,8 @@ "identifier": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -10867,6 +10963,8 @@ "resolved": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10891,6 +10989,8 @@ "identifier": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 188, 195 @@ -10911,6 +11011,8 @@ "resolved": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 167, 174 @@ -10931,6 +11033,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -10951,6 +11055,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11008,6 +11114,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 196, 203 @@ -11028,6 +11136,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11086,6 +11196,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 119, 126 @@ -11109,6 +11221,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -11145,6 +11259,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 286, 299 @@ -11165,6 +11281,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -11185,6 +11303,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 300, 307 @@ -11205,6 +11325,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11309,6 +11431,8 @@ { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -11331,6 +11455,8 @@ "name": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -11352,6 +11478,8 @@ "value": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -11392,6 +11520,8 @@ "expression": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 357, 363 @@ -11463,6 +11593,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 357, 363 @@ -11483,6 +11615,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -11507,6 +11641,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 357, 363 @@ -11527,6 +11663,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 340, 346 @@ -11553,6 +11691,8 @@ "identifier": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 286, 299 @@ -11573,6 +11713,8 @@ "resolved": { "type": "Identifier", "name": "formatMessage", + "decorators": [], + "optional": false, "range": [ 78, 91 @@ -11593,6 +11735,8 @@ "identifier": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 300, 307 @@ -11613,6 +11757,8 @@ "resolved": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11707,6 +11853,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 119, 126 @@ -11730,6 +11878,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 @@ -11757,6 +11907,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 159, 166 diff --git a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json index 0caf4928..5a7f7727 100644 --- a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json +++ b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json @@ -106,9 +106,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -229,6 +232,7 @@ } } ], + "declare": false, "range": [ 28, 58 @@ -268,9 +272,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -295,6 +302,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 71, 78 @@ -314,6 +323,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 79, 86 @@ -376,6 +387,7 @@ } } ], + "declare": false, "range": [ 61, 89 @@ -448,6 +460,8 @@ "expression": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 109, 110 @@ -506,6 +520,8 @@ "value": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 119, 120 @@ -548,6 +564,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 129, 132 diff --git a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json index 1bcaa1c9..5abf1e53 100644 --- a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json +++ b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8703,6 +8705,8 @@ "name": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8790,9 +8794,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8919,6 +8926,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9009,6 +9018,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9099,6 +9110,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9189,6 +9202,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9279,6 +9294,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 129, 132 @@ -9299,6 +9316,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9393,6 +9412,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9415,6 +9436,8 @@ "name": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9432,9 +9455,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9459,6 +9485,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 71, 78 @@ -9478,6 +9506,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 79, 86 @@ -9546,6 +9576,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9566,6 +9598,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9586,6 +9620,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 109, 110 @@ -9606,6 +9642,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9630,6 +9668,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9720,6 +9760,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9810,6 +9852,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9830,6 +9874,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9850,6 +9896,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 71, 78 @@ -9873,6 +9921,8 @@ "identifier": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 109, 110 @@ -9893,6 +9943,8 @@ "resolved": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "range": [ 67, 68 @@ -9927,6 +9979,8 @@ { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 119, 120 @@ -9949,6 +10003,8 @@ "name": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 119, 120 @@ -9970,6 +10026,8 @@ "value": { "type": "Identifier", "name": "v", + "decorators": [], + "optional": false, "range": [ 119, 120 @@ -10012,6 +10070,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 129, 132 @@ -10141,6 +10201,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 129, 132 @@ -10161,6 +10223,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10269,6 +10333,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 129, 132 @@ -10289,6 +10355,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10383,6 +10451,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 71, 78 @@ -10410,6 +10480,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 71, 78 diff --git a/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json b/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json index d23dfd54..a623d0b5 100644 --- a/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json +++ b/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -173,6 +176,7 @@ } } ], + "declare": false, "range": [ 23, 38 @@ -193,6 +197,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 43, 44 @@ -218,6 +224,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 56, 59 @@ -371,6 +379,8 @@ "expression": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 82, 85 diff --git a/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json b/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json index 91f04c6c..1fb1a6ed 100644 --- a/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json +++ b/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8667,6 +8669,8 @@ "name": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8718,9 +8722,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8793,6 +8800,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 56, 59 @@ -8813,6 +8822,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8867,6 +8878,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 82, 85 @@ -8887,6 +8900,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8945,6 +8960,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 82, 85 @@ -8965,6 +8982,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9025,6 +9044,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 56, 59 @@ -9045,6 +9066,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9102,6 +9125,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 56, 59 @@ -9122,6 +9147,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-$$props01-output.json b/tests/fixtures/parser/ast/ts-$$props01-output.json index 958c6abc..b8f9492d 100644 --- a/tests/fixtures/parser/ast/ts-$$props01-output.json +++ b/tests/fixtures/parser/ast/ts-$$props01-output.json @@ -103,6 +103,8 @@ "expression": { "type": "Identifier", "name": "$$props", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -138,6 +140,8 @@ "expression": { "type": "Identifier", "name": "$$restProps", + "decorators": [], + "optional": false, "range": [ 35, 46 diff --git a/tests/fixtures/parser/ast/ts-$$props01-scope-output.json b/tests/fixtures/parser/ast/ts-$$props01-scope-output.json index 68e2d37a..dbbd579f 100644 --- a/tests/fixtures/parser/ast/ts-$$props01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$props01-scope-output.json @@ -8596,6 +8596,8 @@ "identifier": { "type": "Identifier", "name": "$$props", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8626,6 +8628,8 @@ "identifier": { "type": "Identifier", "name": "$$restProps", + "decorators": [], + "optional": false, "range": [ 35, 46 @@ -8658,6 +8662,8 @@ "identifier": { "type": "Identifier", "name": "$$props", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8681,6 +8687,8 @@ "identifier": { "type": "Identifier", "name": "$$restProps", + "decorators": [], + "optional": false, "range": [ 35, 46 @@ -8707,6 +8715,8 @@ "identifier": { "type": "Identifier", "name": "$$props", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8730,6 +8740,8 @@ "identifier": { "type": "Identifier", "name": "$$restProps", + "decorators": [], + "optional": false, "range": [ 35, 46 diff --git a/tests/fixtures/parser/ast/ts-$$slots01-output.json b/tests/fixtures/parser/ast/ts-$$slots01-output.json index 5689b674..c42a0955 100644 --- a/tests/fixtures/parser/ast/ts-$$slots01-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots01-output.json @@ -103,6 +103,8 @@ "expression": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json index d84f16d2..416c2aa5 100644 --- a/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json @@ -8590,6 +8590,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8634,6 +8636,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8660,6 +8664,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json index 24dbb472..f41a83a8 100644 --- a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json @@ -103,6 +103,8 @@ "expression": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json index d84f16d2..416c2aa5 100644 --- a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json @@ -8590,6 +8590,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8634,6 +8636,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8660,6 +8664,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots03-named-output.json b/tests/fixtures/parser/ast/ts-$$slots03-named-output.json index a47054d7..f66b2fd2 100644 --- a/tests/fixtures/parser/ast/ts-$$slots03-named-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots03-named-output.json @@ -103,6 +103,8 @@ "expression": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json index d84f16d2..416c2aa5 100644 --- a/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json @@ -8590,6 +8590,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8634,6 +8636,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8660,6 +8664,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots04-named-output.json b/tests/fixtures/parser/ast/ts-$$slots04-named-output.json index 270a43df..f1d92e50 100644 --- a/tests/fixtures/parser/ast/ts-$$slots04-named-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots04-named-output.json @@ -103,6 +103,8 @@ "expression": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json index d84f16d2..416c2aa5 100644 --- a/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json @@ -8590,6 +8590,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8634,6 +8636,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 @@ -8660,6 +8664,8 @@ "identifier": { "type": "Identifier", "name": "$$slots", + "decorators": [], + "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-await-non-promise01-output.json b/tests/fixtures/parser/ast/ts-await-non-promise01-output.json index 1600d867..63b6a34e 100644 --- a/tests/fixtures/parser/ast/ts-await-non-promise01-output.json +++ b/tests/fixtures/parser/ast/ts-await-non-promise01-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -148,6 +151,8 @@ "typeName": { "type": "Identifier", "name": "const", + "decorators": [], + "optional": false, "range": [ 41, 46 @@ -209,6 +214,7 @@ } } ], + "declare": false, "range": [ 20, 46 @@ -304,6 +310,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -403,6 +411,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 103, 109 @@ -540,6 +550,8 @@ "expression": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 133, 136 @@ -562,6 +574,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -661,6 +675,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 164, 165 @@ -824,6 +840,8 @@ "object": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 189, 192 @@ -843,6 +861,8 @@ "property": { "type": "Identifier", "name": "slice", + "decorators": [], + "optional": false, "range": [ 193, 198 @@ -896,6 +916,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -995,6 +1017,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 229, 230 diff --git a/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json b/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json index a3725c01..07a21b0c 100644 --- a/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json @@ -8584,6 +8584,8 @@ "identifier": { "type": "Identifier", "name": "const", + "decorators": [], + "optional": false, "range": [ 41, 46 @@ -8635,6 +8637,8 @@ { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8657,6 +8661,8 @@ "name": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8674,9 +8680,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8718,6 +8727,8 @@ "typeName": { "type": "Identifier", "name": "const", + "decorators": [], + "optional": false, "range": [ 41, 46 @@ -8785,6 +8796,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8805,6 +8818,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8825,6 +8840,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 133, 136 @@ -8845,6 +8862,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8865,6 +8884,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 189, 192 @@ -8885,6 +8906,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8909,6 +8932,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8929,6 +8954,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8949,6 +8976,8 @@ "identifier": { "type": "Identifier", "name": "const", + "decorators": [], + "optional": false, "range": [ 41, 46 @@ -8972,6 +9001,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 133, 136 @@ -8992,6 +9023,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -9012,6 +9045,8 @@ "identifier": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 189, 192 @@ -9032,6 +9067,8 @@ "resolved": { "type": "Identifier", "name": "str", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -9059,6 +9096,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -9081,6 +9120,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -9102,6 +9143,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -9201,6 +9244,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 103, 109 @@ -9305,6 +9350,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 103, 109 @@ -9325,6 +9372,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -9349,6 +9398,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 103, 109 @@ -9369,6 +9420,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 76, 82 @@ -9398,6 +9451,8 @@ { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -9420,6 +9475,8 @@ "name": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -9441,6 +9498,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -9540,6 +9599,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 164, 165 @@ -9644,6 +9705,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 164, 165 @@ -9664,6 +9727,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -9688,6 +9753,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 164, 165 @@ -9708,6 +9775,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 142, 143 @@ -9737,6 +9806,8 @@ { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -9759,6 +9830,8 @@ "name": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -9780,6 +9853,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -9879,6 +9954,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 229, 230 @@ -9983,6 +10060,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 229, 230 @@ -10003,6 +10082,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -10027,6 +10108,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 229, 230 @@ -10047,6 +10130,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 207, 208 @@ -10073,6 +10158,8 @@ "identifier": { "type": "Identifier", "name": "const", + "decorators": [], + "optional": false, "range": [ 41, 46 diff --git a/tests/fixtures/parser/ast/ts-each01-output.json b/tests/fixtures/parser/ast/ts-each01-output.json index 01290af5..34fe1d3d 100644 --- a/tests/fixtures/parser/ast/ts-each01-output.json +++ b/tests/fixtures/parser/ast/ts-each01-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -207,6 +210,7 @@ } } ], + "declare": false, "range": [ 23, 48 @@ -228,9 +232,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -244,6 +251,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -259,6 +268,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -314,6 +326,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -329,6 +343,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -473,6 +490,7 @@ } } ], + "declare": false, "range": [ 53, 97 @@ -544,6 +562,8 @@ "expression": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "range": [ 115, 119 @@ -562,6 +582,8 @@ "context": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -586,6 +608,8 @@ "expression": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 131, 132 @@ -656,6 +680,8 @@ "expression": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "range": [ 149, 154 @@ -674,6 +700,8 @@ "context": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -692,6 +720,8 @@ "index": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -713,6 +743,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -732,6 +764,8 @@ "property": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 176, 178 @@ -769,6 +803,8 @@ "expression": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 186, 191 @@ -808,6 +844,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 193, 197 @@ -827,6 +865,8 @@ "property": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 198, 202 diff --git a/tests/fixtures/parser/ast/ts-each01-scope-output.json b/tests/fixtures/parser/ast/ts-each01-scope-output.json index a61b17f0..56225565 100644 --- a/tests/fixtures/parser/ast/ts-each01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-each01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8684,6 +8686,8 @@ "name": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8752,9 +8756,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8861,6 +8868,8 @@ "identifier": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8932,6 +8941,8 @@ "resolved": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9003,6 +9014,8 @@ "identifier": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "range": [ 115, 119 @@ -9023,6 +9036,8 @@ "resolved": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9098,6 +9113,8 @@ { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9111,6 +9128,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -9126,6 +9145,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9181,6 +9203,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9196,6 +9220,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9313,6 +9340,8 @@ "name": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9326,6 +9355,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -9341,6 +9372,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9396,6 +9430,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9411,6 +9447,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9523,9 +9562,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9539,6 +9581,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -9554,6 +9598,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9609,6 +9656,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9624,6 +9673,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9774,6 +9826,8 @@ "identifier": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9787,6 +9841,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -9802,6 +9858,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9857,6 +9916,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9872,6 +9933,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9987,6 +10051,8 @@ "resolved": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10000,6 +10066,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -10015,6 +10083,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10070,6 +10141,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -10085,6 +10158,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10200,6 +10276,8 @@ "identifier": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "range": [ 149, 154 @@ -10220,6 +10298,8 @@ "resolved": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10233,6 +10313,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -10248,6 +10330,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10303,6 +10388,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -10318,6 +10405,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10437,6 +10527,8 @@ "identifier": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10508,6 +10600,8 @@ "resolved": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10579,6 +10673,8 @@ "identifier": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10592,6 +10688,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -10607,6 +10705,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10662,6 +10763,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -10677,6 +10780,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10792,6 +10898,8 @@ "resolved": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10805,6 +10913,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -10820,6 +10930,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10875,6 +10988,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -10890,6 +11005,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11005,6 +11123,8 @@ "identifier": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "range": [ 115, 119 @@ -11025,6 +11145,8 @@ "resolved": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11096,6 +11218,8 @@ "identifier": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "range": [ 149, 154 @@ -11116,6 +11240,8 @@ "resolved": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11129,6 +11255,8 @@ "key": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 67, 69 @@ -11144,6 +11272,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11199,6 +11330,8 @@ "key": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -11214,6 +11347,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11336,6 +11472,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -11358,6 +11496,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -11378,6 +11518,8 @@ "expression": { "type": "Identifier", "name": "list", + "decorators": [], + "optional": false, "range": [ 115, 119 @@ -11396,6 +11538,8 @@ "context": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -11420,6 +11564,8 @@ "expression": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 131, 132 @@ -11474,6 +11620,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 131, 132 @@ -11494,6 +11642,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -11518,6 +11668,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 131, 132 @@ -11538,6 +11690,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 123, 124 @@ -11567,6 +11721,8 @@ { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -11589,6 +11745,8 @@ "name": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -11609,6 +11767,8 @@ "expression": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "range": [ 149, 154 @@ -11627,6 +11787,8 @@ "context": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -11645,6 +11807,8 @@ "index": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -11666,6 +11830,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -11685,6 +11851,8 @@ "property": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 176, 178 @@ -11722,6 +11890,8 @@ "expression": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 186, 191 @@ -11761,6 +11931,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 193, 197 @@ -11780,6 +11952,8 @@ "property": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 198, 202 @@ -11849,6 +12023,8 @@ "identifier": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -11869,6 +12045,8 @@ "resolved": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -11889,6 +12067,8 @@ "identifier": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 193, 197 @@ -11909,6 +12089,8 @@ "resolved": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -11933,6 +12115,8 @@ { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -11955,6 +12139,8 @@ "name": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -11975,6 +12161,8 @@ "expression": { "type": "Identifier", "name": "items", + "decorators": [], + "optional": false, "range": [ 149, 154 @@ -11993,6 +12181,8 @@ "context": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -12011,6 +12201,8 @@ "index": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -12032,6 +12224,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -12051,6 +12245,8 @@ "property": { "type": "Identifier", "name": "id", + "decorators": [], + "optional": false, "range": [ 176, 178 @@ -12088,6 +12284,8 @@ "expression": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 186, 191 @@ -12127,6 +12325,8 @@ "object": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 193, 197 @@ -12146,6 +12346,8 @@ "property": { "type": "Identifier", "name": "name", + "decorators": [], + "optional": false, "range": [ 198, 202 @@ -12215,6 +12417,8 @@ "identifier": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 186, 191 @@ -12235,6 +12439,8 @@ "resolved": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -12259,6 +12465,8 @@ "identifier": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -12279,6 +12487,8 @@ "resolved": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 @@ -12299,6 +12509,8 @@ "identifier": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 186, 191 @@ -12319,6 +12531,8 @@ "resolved": { "type": "Identifier", "name": "index", + "decorators": [], + "optional": false, "range": [ 164, 169 @@ -12339,6 +12553,8 @@ "identifier": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 193, 197 @@ -12359,6 +12575,8 @@ "resolved": { "type": "Identifier", "name": "item", + "decorators": [], + "optional": false, "range": [ 158, 162 diff --git a/tests/fixtures/parser/ast/ts-event01-output.json b/tests/fixtures/parser/ast/ts-event01-output.json index 419c27cf..eac6e02c 100644 --- a/tests/fixtures/parser/ast/ts-event01-output.json +++ b/tests/fixtures/parser/ast/ts-event01-output.json @@ -126,6 +126,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -314,6 +316,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 87, 88 @@ -434,6 +438,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 106, 115 @@ -519,6 +525,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 127, 128 diff --git a/tests/fixtures/parser/ast/ts-event01-scope-output.json b/tests/fixtures/parser/ast/ts-event01-scope-output.json index e403fef7..4a4c1d3a 100644 --- a/tests/fixtures/parser/ast/ts-event01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8653,6 +8657,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8690,6 +8696,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 106, 115 @@ -8710,6 +8718,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8734,6 +8744,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 106, 115 @@ -8754,6 +8766,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8781,6 +8795,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 87, 88 @@ -8803,6 +8819,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 87, 88 @@ -8846,6 +8864,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 87, 88 @@ -8895,6 +8915,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 127, 128 @@ -8917,6 +8939,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 127, 128 @@ -8960,6 +8984,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 127, 128 diff --git a/tests/fixtures/parser/ast/ts-event02-output.json b/tests/fixtures/parser/ast/ts-event02-output.json index e19e0bea..5766dc7e 100644 --- a/tests/fixtures/parser/ast/ts-event02-output.json +++ b/tests/fixtures/parser/ast/ts-event02-output.json @@ -126,6 +126,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -314,6 +316,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -434,6 +438,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 114, 123 @@ -519,6 +525,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 135, 136 diff --git a/tests/fixtures/parser/ast/ts-event02-scope-output.json b/tests/fixtures/parser/ast/ts-event02-scope-output.json index 4aa33f0c..19a3218f 100644 --- a/tests/fixtures/parser/ast/ts-event02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event02-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -8653,6 +8657,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -8690,6 +8696,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 114, 123 @@ -8710,6 +8718,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -8734,6 +8744,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 114, 123 @@ -8754,6 +8766,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 38, 47 @@ -8781,6 +8795,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -8803,6 +8819,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -8846,6 +8864,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -8895,6 +8915,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 135, 136 @@ -8917,6 +8939,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 135, 136 @@ -8960,6 +8984,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 135, 136 diff --git a/tests/fixtures/parser/ast/ts-event03-output.json b/tests/fixtures/parser/ast/ts-event03-output.json index 26df8365..62cc63c8 100644 --- a/tests/fixtures/parser/ast/ts-event03-output.json +++ b/tests/fixtures/parser/ast/ts-event03-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -197,9 +201,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -221,6 +228,8 @@ "callee": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 85, 106 @@ -237,7 +246,7 @@ } }, "optional": false, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -249,6 +258,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 117, 120 @@ -264,6 +275,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -319,6 +333,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -334,6 +350,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -446,6 +465,7 @@ } } ], + "declare": false, "range": [ 72, 158 @@ -508,6 +528,8 @@ "callee": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 163, 167 @@ -682,6 +704,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 217, 218 @@ -701,6 +725,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 219, 232 @@ -769,6 +795,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -960,6 +988,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 275, 276 @@ -979,6 +1009,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 277, 290 @@ -1047,6 +1079,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 diff --git a/tests/fixtures/parser/ast/ts-event03-scope-output.json b/tests/fixtures/parser/ast/ts-event03-scope-output.json index f1647e70..08e065bd 100644 --- a/tests/fixtures/parser/ast/ts-event03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event03-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 85, 106 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -8753,6 +8765,8 @@ { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -8775,6 +8789,8 @@ "name": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -8792,9 +8808,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -8816,6 +8835,8 @@ "callee": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 85, 106 @@ -8832,7 +8853,7 @@ } }, "optional": false, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8844,6 +8865,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 117, 120 @@ -8859,6 +8882,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8914,6 +8940,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -8929,6 +8957,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9047,6 +9078,8 @@ "identifier": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9067,6 +9100,8 @@ "resolved": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9087,6 +9122,8 @@ "identifier": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 163, 167 @@ -9107,6 +9144,8 @@ "resolved": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9131,6 +9170,8 @@ "identifier": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9151,6 +9192,8 @@ "resolved": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9171,6 +9214,8 @@ "identifier": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 85, 106 @@ -9191,6 +9236,8 @@ "resolved": { "type": "Identifier", "name": "createEventDispatcher", + "decorators": [], + "optional": false, "range": [ 31, 52 @@ -9211,6 +9258,8 @@ "identifier": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 163, 167 @@ -9231,6 +9280,8 @@ "resolved": { "type": "Identifier", "name": "emit", + "decorators": [], + "optional": false, "range": [ 78, 82 @@ -9258,6 +9309,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -9280,6 +9333,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -9309,6 +9364,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 217, 218 @@ -9328,6 +9385,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 219, 232 @@ -9396,6 +9455,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -9434,6 +9495,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 217, 218 @@ -9454,6 +9517,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -9478,6 +9543,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 217, 218 @@ -9498,6 +9565,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 208, 209 @@ -9527,6 +9596,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 @@ -9549,6 +9620,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 @@ -9578,6 +9651,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 275, 276 @@ -9597,6 +9672,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 277, 290 @@ -9665,6 +9742,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 @@ -9703,6 +9782,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 275, 276 @@ -9723,6 +9804,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 @@ -9747,6 +9830,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 275, 276 @@ -9767,6 +9852,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 266, 267 diff --git a/tests/fixtures/parser/ast/ts-event04-output.json b/tests/fixtures/parser/ast/ts-event04-output.json index 3f9ce536..475a9bc2 100644 --- a/tests/fixtures/parser/ast/ts-event04-output.json +++ b/tests/fixtures/parser/ast/ts-event04-output.json @@ -225,6 +225,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 60, 61 @@ -244,6 +246,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 62, 75 @@ -312,6 +316,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 diff --git a/tests/fixtures/parser/ast/ts-event04-scope-output.json b/tests/fixtures/parser/ast/ts-event04-scope-output.json index 74124279..f0c05b06 100644 --- a/tests/fixtures/parser/ast/ts-event04-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event04-scope-output.json @@ -8616,6 +8616,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -8638,6 +8640,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -8667,6 +8671,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 60, 61 @@ -8686,6 +8692,8 @@ "property": { "type": "Identifier", "name": "currentTarget", + "decorators": [], + "optional": false, "range": [ 62, 75 @@ -8754,6 +8762,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -8792,6 +8802,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 60, 61 @@ -8812,6 +8824,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -8836,6 +8850,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 60, 61 @@ -8856,6 +8872,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 51, 52 diff --git a/tests/fixtures/parser/ast/ts-event05-output.json b/tests/fixtures/parser/ast/ts-event05-output.json index 9a13d315..81b8850a 100644 --- a/tests/fixtures/parser/ast/ts-event05-output.json +++ b/tests/fixtures/parser/ast/ts-event05-output.json @@ -126,6 +126,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -229,6 +231,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -300,6 +304,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 347, 348 @@ -319,6 +325,8 @@ "property": { "type": "Identifier", "name": "detail", + "decorators": [], + "optional": false, "range": [ 349, 355 @@ -387,6 +395,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event05-scope-output.json b/tests/fixtures/parser/ast/ts-event05-scope-output.json index 8e7f7f4c..08c40326 100644 --- a/tests/fixtures/parser/ast/ts-event05-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event05-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8653,6 +8657,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8690,6 +8696,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -8710,6 +8718,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8734,6 +8744,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -8754,6 +8766,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8781,6 +8795,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8803,6 +8819,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8832,6 +8850,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 347, 348 @@ -8851,6 +8871,8 @@ "property": { "type": "Identifier", "name": "detail", + "decorators": [], + "optional": false, "range": [ 349, 355 @@ -8919,6 +8941,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8957,6 +8981,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 347, 348 @@ -8977,6 +9003,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -9001,6 +9029,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 347, 348 @@ -9021,6 +9051,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event06-output.json b/tests/fixtures/parser/ast/ts-event06-output.json index ca339e8c..a803fcc7 100644 --- a/tests/fixtures/parser/ast/ts-event06-output.json +++ b/tests/fixtures/parser/ast/ts-event06-output.json @@ -126,6 +126,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -229,6 +231,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -300,6 +304,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 140, 141 @@ -319,6 +325,8 @@ "property": { "type": "Identifier", "name": "detail", + "decorators": [], + "optional": false, "range": [ 142, 148 @@ -387,6 +395,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event06-scope-output.json b/tests/fixtures/parser/ast/ts-event06-scope-output.json index 7ab94575..e14c03d7 100644 --- a/tests/fixtures/parser/ast/ts-event06-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event06-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8653,6 +8657,8 @@ "local": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8690,6 +8696,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -8710,6 +8718,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8734,6 +8744,8 @@ "identifier": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 86, 95 @@ -8754,6 +8766,8 @@ "resolved": { "type": "Identifier", "name": "Component", + "decorators": [], + "optional": false, "range": [ 30, 39 @@ -8781,6 +8795,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8803,6 +8819,8 @@ "name": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8832,6 +8850,8 @@ "object": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 140, 141 @@ -8851,6 +8871,8 @@ "property": { "type": "Identifier", "name": "detail", + "decorators": [], + "optional": false, "range": [ 142, 148 @@ -8919,6 +8941,8 @@ { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -8957,6 +8981,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 140, 141 @@ -8977,6 +9003,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 @@ -9001,6 +9029,8 @@ "identifier": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 140, 141 @@ -9021,6 +9051,8 @@ "resolved": { "type": "Identifier", "name": "e", + "decorators": [], + "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-issue226-output.json b/tests/fixtures/parser/ast/ts-issue226-output.json index 918e5895..21937223 100644 --- a/tests/fixtures/parser/ast/ts-issue226-output.json +++ b/tests/fixtures/parser/ast/ts-issue226-output.json @@ -100,9 +100,12 @@ "body": [ { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -127,6 +130,8 @@ "key": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 42, 50 @@ -142,6 +147,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -228,9 +236,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -241,6 +252,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -369,6 +382,7 @@ } } ], + "declare": false, "range": [ 62, 95 @@ -390,9 +404,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -420,6 +437,8 @@ "object": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 139, 140 @@ -439,6 +458,8 @@ "property": { "type": "Identifier", "name": "toString", + "decorators": [], + "optional": false, "range": [ 141, 149 @@ -492,6 +513,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -502,6 +525,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -627,6 +652,7 @@ } } ], + "declare": false, "range": [ 97, 151 @@ -653,6 +679,8 @@ "object": { "type": "Identifier", "name": "console", + "decorators": [], + "optional": false, "range": [ 216, 223 @@ -672,6 +700,8 @@ "property": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 224, 229 @@ -722,6 +752,8 @@ "left": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 184, 188 @@ -748,6 +780,8 @@ "key": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 193, 201 @@ -764,6 +798,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -910,6 +945,8 @@ "callee": { "type": "Identifier", "name": "fetch", + "decorators": [], + "optional": false, "range": [ 153, 158 @@ -945,6 +982,8 @@ "property": { "type": "Identifier", "name": "then", + "decorators": [], + "optional": false, "range": [ 171, 175 @@ -995,6 +1034,8 @@ "property": { "type": "Identifier", "name": "catch", + "decorators": [], + "optional": false, "range": [ 210, 215 @@ -1061,6 +1102,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 232, 233 @@ -1083,6 +1126,8 @@ "left": { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -1129,6 +1174,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 277, 281 @@ -1148,6 +1195,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 282, 290 @@ -1182,6 +1231,8 @@ "callee": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 265, 276 @@ -1221,6 +1272,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 248, 252 @@ -1240,6 +1293,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 254, 262 @@ -1351,9 +1406,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -1402,6 +1460,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 352, 356 @@ -1421,6 +1481,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 357, 365 @@ -1455,6 +1517,8 @@ "callee": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 340, 351 @@ -1494,6 +1558,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 323, 327 @@ -1513,6 +1579,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 329, 337 @@ -1608,6 +1676,7 @@ } } ], + "declare": false, "range": [ 300, 374 diff --git a/tests/fixtures/parser/ast/ts-issue226-scope-output.json b/tests/fixtures/parser/ast/ts-issue226-scope-output.json index 7b05ad74..cb090894 100644 --- a/tests/fixtures/parser/ast/ts-issue226-scope-output.json +++ b/tests/fixtures/parser/ast/ts-issue226-scope-output.json @@ -238,6 +238,8 @@ "identifier": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -8635,6 +8637,8 @@ { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -8657,6 +8661,8 @@ "name": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -8674,9 +8680,12 @@ }, "node": { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -8701,6 +8710,8 @@ "key": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 42, 50 @@ -8716,6 +8727,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8803,6 +8817,8 @@ "identifier": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -8823,6 +8839,8 @@ "resolved": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -8847,6 +8865,8 @@ { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8857,6 +8877,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -8957,6 +8979,8 @@ "name": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8967,6 +8991,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9062,9 +9088,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9075,6 +9104,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9209,6 +9240,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9219,6 +9252,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9317,6 +9352,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9327,6 +9364,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9425,6 +9464,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 184, 188 @@ -9445,6 +9486,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9455,6 +9498,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9553,6 +9598,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 248, 252 @@ -9573,6 +9620,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9583,6 +9632,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9681,6 +9732,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 277, 281 @@ -9701,6 +9754,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9711,6 +9766,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9809,6 +9866,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 323, 327 @@ -9829,6 +9888,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9839,6 +9900,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -9937,6 +10000,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 352, 356 @@ -9957,6 +10022,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9967,6 +10034,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -10069,6 +10138,8 @@ { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10091,6 +10162,8 @@ "name": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10108,9 +10181,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10138,6 +10214,8 @@ "object": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 139, 140 @@ -10157,6 +10235,8 @@ "property": { "type": "Identifier", "name": "toString", + "decorators": [], + "optional": false, "range": [ 141, 149 @@ -10210,6 +10290,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10220,6 +10302,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -10351,6 +10435,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10371,6 +10457,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10391,6 +10479,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 265, 276 @@ -10411,6 +10501,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10431,6 +10523,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 340, 351 @@ -10451,6 +10545,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -10475,6 +10571,8 @@ { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -10497,6 +10595,8 @@ "name": { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -10517,6 +10617,8 @@ "left": { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -10563,6 +10665,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 277, 281 @@ -10582,6 +10686,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 282, 290 @@ -10616,6 +10722,8 @@ "callee": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 265, 276 @@ -10655,6 +10763,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 248, 252 @@ -10674,6 +10784,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 254, 262 @@ -10759,6 +10871,8 @@ { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -10781,6 +10895,8 @@ "name": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -10798,9 +10914,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -10849,6 +10968,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 352, 356 @@ -10868,6 +10989,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 357, 365 @@ -10902,6 +11025,8 @@ "callee": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 340, 351 @@ -10941,6 +11066,8 @@ "object": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 323, 327 @@ -10960,6 +11087,8 @@ "property": { "type": "Identifier", "name": "start_at", + "decorators": [], + "optional": false, "range": [ 329, 337 @@ -11061,6 +11190,8 @@ "identifier": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -11081,6 +11212,8 @@ "resolved": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -11105,6 +11238,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11115,6 +11250,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -11213,6 +11350,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11223,6 +11362,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -11321,6 +11462,8 @@ "identifier": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -11341,6 +11484,8 @@ "resolved": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 24, 33 @@ -11361,6 +11506,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -11381,6 +11528,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -11401,6 +11550,8 @@ "identifier": { "type": "Identifier", "name": "fetch", + "decorators": [], + "optional": false, "range": [ 153, 158 @@ -11424,6 +11575,8 @@ "identifier": { "type": "Identifier", "name": "console", + "decorators": [], + "optional": false, "range": [ 216, 223 @@ -11447,6 +11600,8 @@ "identifier": { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -11467,6 +11622,8 @@ "resolved": { "type": "Identifier", "name": "startDate", + "decorators": [], + "optional": false, "range": [ 235, 244 @@ -11487,6 +11644,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 248, 252 @@ -11507,6 +11666,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11517,6 +11678,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -11615,6 +11778,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 265, 276 @@ -11635,6 +11800,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -11655,6 +11822,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 277, 281 @@ -11675,6 +11844,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11685,6 +11856,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -11783,6 +11956,8 @@ "identifier": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -11803,6 +11978,8 @@ "resolved": { "type": "Identifier", "name": "endDate", + "decorators": [], + "optional": false, "range": [ 306, 313 @@ -11830,6 +12007,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11840,6 +12019,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -11940,6 +12121,8 @@ "name": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11950,6 +12133,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12055,6 +12240,8 @@ "object": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 139, 140 @@ -12074,6 +12261,8 @@ "property": { "type": "Identifier", "name": "toString", + "decorators": [], + "optional": false, "range": [ 141, 149 @@ -12127,6 +12316,8 @@ { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12137,6 +12328,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12253,6 +12446,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 139, 140 @@ -12273,6 +12468,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12283,6 +12480,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12385,6 +12584,8 @@ "identifier": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12408,6 +12609,8 @@ "identifier": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "range": [ 139, 140 @@ -12428,6 +12631,8 @@ "resolved": { "type": "Identifier", "name": "i", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12438,6 +12643,8 @@ "typeName": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12539,6 +12746,8 @@ "identifier": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -12568,6 +12777,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 184, 188 @@ -12588,6 +12799,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12598,6 +12811,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -12699,6 +12914,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 184, 188 @@ -12719,6 +12936,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12729,6 +12948,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -12833,6 +13054,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 323, 327 @@ -12853,6 +13076,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12863,6 +13088,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -12961,6 +13188,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 340, 351 @@ -12981,6 +13210,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -13001,6 +13232,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 352, 356 @@ -13021,6 +13254,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13031,6 +13266,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -13132,6 +13369,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 323, 327 @@ -13152,6 +13391,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13162,6 +13403,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -13260,6 +13503,8 @@ "identifier": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 340, 351 @@ -13280,6 +13525,8 @@ "resolved": { "type": "Identifier", "name": "lightFormat", + "decorators": [], + "optional": false, "range": [ 103, 114 @@ -13300,6 +13547,8 @@ "identifier": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "range": [ 352, 356 @@ -13320,6 +13569,8 @@ "resolved": { "type": "Identifier", "name": "info", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13330,6 +13581,8 @@ "typeName": { "type": "Identifier", "name": "EventInfo", + "decorators": [], + "optional": false, "range": [ 72, 81 @@ -13432,6 +13685,8 @@ "identifier": { "type": "Identifier", "name": "Date", + "decorators": [], + "optional": false, "range": [ 121, 125 @@ -13455,6 +13710,8 @@ "identifier": { "type": "Identifier", "name": "fetch", + "decorators": [], + "optional": false, "range": [ 153, 158 @@ -13478,6 +13735,8 @@ "identifier": { "type": "Identifier", "name": "console", + "decorators": [], + "optional": false, "range": [ 216, 223 @@ -13505,6 +13764,8 @@ "identifier": { "type": "Identifier", "name": "fetch", + "decorators": [], + "optional": false, "range": [ 153, 158 @@ -13528,6 +13789,8 @@ "identifier": { "type": "Identifier", "name": "console", + "decorators": [], + "optional": false, "range": [ 216, 223 diff --git a/tests/fixtures/parser/ast/ts-newline-output.json b/tests/fixtures/parser/ast/ts-newline-output.json index 50eb925b..6386c749 100644 --- a/tests/fixtures/parser/ast/ts-newline-output.json +++ b/tests/fixtures/parser/ast/ts-newline-output.json @@ -103,6 +103,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 19, 20 @@ -125,6 +127,8 @@ "left": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -210,6 +214,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 43, 44 @@ -232,6 +238,8 @@ "left": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -317,6 +325,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 66, 67 @@ -339,6 +349,8 @@ "left": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -424,6 +436,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -446,6 +460,8 @@ "left": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -531,6 +547,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -553,6 +571,8 @@ "left": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -690,6 +710,8 @@ "expression": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 154, 166 @@ -726,6 +748,8 @@ "expression": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 168, 180 @@ -762,6 +786,8 @@ "expression": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 182, 194 @@ -798,6 +824,8 @@ "expression": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 196, 208 @@ -834,6 +862,8 @@ "expression": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 210, 222 diff --git a/tests/fixtures/parser/ast/ts-newline-scope-output.json b/tests/fixtures/parser/ast/ts-newline-scope-output.json index b32ee564..17130acd 100644 --- a/tests/fixtures/parser/ast/ts-newline-scope-output.json +++ b/tests/fixtures/parser/ast/ts-newline-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -8653,6 +8657,8 @@ "left": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -8710,6 +8716,8 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 154, 166 @@ -8730,6 +8738,8 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -8754,6 +8764,8 @@ { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -8776,6 +8788,8 @@ "name": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -8796,6 +8810,8 @@ "left": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -8853,6 +8869,8 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 168, 180 @@ -8873,6 +8891,8 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -8897,6 +8917,8 @@ { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -8919,6 +8941,8 @@ "name": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -8939,6 +8963,8 @@ "left": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -8996,6 +9022,8 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 182, 194 @@ -9016,6 +9044,8 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -9040,6 +9070,8 @@ { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9062,6 +9094,8 @@ "name": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9082,6 +9116,8 @@ "left": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9139,6 +9175,8 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 196, 208 @@ -9159,6 +9197,8 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9183,6 +9223,8 @@ { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9205,6 +9247,8 @@ "name": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9225,6 +9269,8 @@ "left": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9282,6 +9328,8 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 210, 222 @@ -9302,6 +9350,8 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9326,6 +9376,8 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -9346,6 +9398,8 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -9366,6 +9420,8 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -9386,6 +9442,8 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -9406,6 +9464,8 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -9426,6 +9486,8 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -9446,6 +9508,8 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9466,6 +9530,8 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9486,6 +9552,8 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9506,6 +9574,8 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 @@ -9526,6 +9596,8 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 154, 166 @@ -9546,6 +9618,8 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", + "decorators": [], + "optional": false, "range": [ 22, 34 @@ -9566,6 +9640,8 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 168, 180 @@ -9586,6 +9662,8 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", + "decorators": [], + "optional": false, "range": [ 46, 58 @@ -9606,6 +9684,8 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 182, 194 @@ -9626,6 +9706,8 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", + "decorators": [], + "optional": false, "range": [ 69, 81 @@ -9646,6 +9728,8 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 196, 208 @@ -9666,6 +9750,8 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", + "decorators": [], + "optional": false, "range": [ 95, 107 @@ -9686,6 +9772,8 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 210, 222 @@ -9706,6 +9794,8 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", + "decorators": [], + "optional": false, "range": [ 120, 132 diff --git a/tests/fixtures/parser/ast/ts-not-reactive01-output.json b/tests/fixtures/parser/ast/ts-not-reactive01-output.json index 3085e69f..e1e26662 100644 --- a/tests/fixtures/parser/ast/ts-not-reactive01-output.json +++ b/tests/fixtures/parser/ast/ts-not-reactive01-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -157,6 +160,7 @@ } } ], + "declare": false, "range": [ 19, 33 @@ -178,9 +182,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -192,6 +199,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -208,6 +217,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -337,6 +348,7 @@ } } ], + "declare": false, "range": [ 34, 65 @@ -357,6 +369,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 66, 67 @@ -382,6 +396,8 @@ "object": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 69, 72 @@ -401,6 +417,8 @@ "property": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 73, 76 @@ -435,6 +453,8 @@ "right": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 79, 82 @@ -555,6 +575,8 @@ "object": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 94, 97 @@ -574,6 +596,8 @@ "property": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 98, 101 diff --git a/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json b/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json index 46c4fdd1..7a1af57e 100644 --- a/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8709,6 +8716,8 @@ "identifier": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8729,6 +8738,8 @@ "resolved": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8749,6 +8760,8 @@ "identifier": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 79, 82 @@ -8769,6 +8782,8 @@ "resolved": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -8793,6 +8808,8 @@ { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8804,6 +8821,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -8820,6 +8839,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8922,6 +8943,8 @@ "name": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8933,6 +8956,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -8949,6 +8974,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9046,9 +9073,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9060,6 +9090,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9076,6 +9108,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9211,6 +9245,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9222,6 +9258,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9238,6 +9276,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9338,6 +9378,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9349,6 +9391,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9365,6 +9409,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9465,6 +9511,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 69, 72 @@ -9485,6 +9533,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9496,6 +9546,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9512,6 +9564,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9612,6 +9666,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 94, 97 @@ -9632,6 +9688,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9643,6 +9701,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9659,6 +9719,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9763,6 +9825,8 @@ "identifier": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -9783,6 +9847,8 @@ "resolved": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -9803,6 +9869,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9814,6 +9882,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9830,6 +9900,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9930,6 +10002,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9941,6 +10015,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -9957,6 +10033,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10057,6 +10135,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 69, 72 @@ -10077,6 +10157,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10088,6 +10170,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -10104,6 +10188,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10204,6 +10290,8 @@ "identifier": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 79, 82 @@ -10224,6 +10312,8 @@ "resolved": { "type": "Identifier", "name": "num", + "decorators": [], + "optional": false, "range": [ 25, 28 @@ -10244,6 +10334,8 @@ "identifier": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "range": [ 94, 97 @@ -10264,6 +10356,8 @@ "resolved": { "type": "Identifier", "name": "obj", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10275,6 +10369,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 46, 49 @@ -10291,6 +10387,8 @@ } }, "optional": true, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-promise01-output.json b/tests/fixtures/parser/ast/ts-promise01-output.json index 7cb103c3..be9e72bd 100644 --- a/tests/fixtures/parser/ast/ts-promise01-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-output.json @@ -104,32 +104,17 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -141,6 +126,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -156,6 +143,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -237,6 +227,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -301,6 +311,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 86, 87 @@ -317,6 +329,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -372,6 +385,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 77, 84 @@ -410,6 +425,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -445,6 +462,8 @@ "callee": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 58, 65 @@ -491,6 +510,7 @@ } } ], + "declare": false, "range": [ 20, 94 @@ -563,6 +583,8 @@ "expression": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "range": [ 114, 121 @@ -731,6 +753,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -833,6 +857,8 @@ "object": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -852,6 +878,8 @@ "property": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 183, 184 @@ -970,6 +998,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -1111,6 +1141,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 229, 234 @@ -1130,6 +1162,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 235, 242 diff --git a/tests/fixtures/parser/ast/ts-promise01-scope-output.json b/tests/fixtures/parser/ast/ts-promise01-scope-output.json index e41c68eb..a2a68601 100644 --- a/tests/fixtures/parser/ast/ts-promise01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-scope-output.json @@ -406,6 +406,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 32, 39 @@ -8635,29 +8637,13 @@ { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8669,6 +8655,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -8684,6 +8672,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8765,6 +8756,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -8817,29 +8828,13 @@ "name": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8851,6 +8846,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -8866,6 +8863,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8947,6 +8947,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -8994,32 +9014,17 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9031,6 +9036,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -9046,6 +9053,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9127,6 +9137,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9191,6 +9221,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 86, 87 @@ -9207,6 +9239,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -9262,6 +9295,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 77, 84 @@ -9300,6 +9335,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -9335,6 +9372,8 @@ "callee": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 58, 65 @@ -9387,29 +9426,13 @@ "identifier": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9421,6 +9444,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -9436,6 +9461,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9517,6 +9545,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9567,29 +9615,13 @@ "resolved": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9601,6 +9633,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -9616,6 +9650,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9697,6 +9734,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9747,6 +9804,8 @@ "identifier": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "range": [ 114, 121 @@ -9767,29 +9826,13 @@ "resolved": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9801,6 +9844,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -9816,6 +9861,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9897,6 +9945,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9951,29 +10019,13 @@ "identifier": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9985,6 +10037,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -10000,6 +10054,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10081,6 +10138,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -10131,29 +10208,13 @@ "resolved": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10165,6 +10226,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -10180,6 +10243,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10261,6 +10327,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -10311,6 +10397,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 58, 65 @@ -10334,6 +10422,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 32, 39 @@ -10357,6 +10447,8 @@ "identifier": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "range": [ 114, 121 @@ -10377,29 +10469,13 @@ "resolved": { "type": "Identifier", "name": "promise", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10411,6 +10487,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 41, 42 @@ -10426,6 +10504,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10507,6 +10588,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "decorators": [], + "optional": false, + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -10564,6 +10665,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -10586,6 +10689,8 @@ "name": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -10617,6 +10722,8 @@ "key": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 86, 87 @@ -10633,6 +10740,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -10688,6 +10796,8 @@ "callee": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 77, 84 @@ -10726,6 +10836,8 @@ { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -10764,6 +10876,8 @@ "identifier": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 77, 84 @@ -10784,6 +10898,8 @@ "resolved": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -10808,6 +10924,8 @@ "identifier": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 77, 84 @@ -10828,6 +10946,8 @@ "resolved": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 67, 74 @@ -10864,6 +10984,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -10886,6 +11008,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -10907,6 +11031,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -11009,6 +11135,8 @@ "object": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -11028,6 +11156,8 @@ "property": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 183, 184 @@ -11147,6 +11277,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -11167,6 +11299,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -11191,6 +11325,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -11211,6 +11347,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 149, 155 @@ -11240,6 +11378,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -11262,6 +11402,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -11283,6 +11425,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -11424,6 +11568,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 229, 234 @@ -11443,6 +11589,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 235, 242 @@ -11562,6 +11710,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 229, 234 @@ -11582,6 +11732,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -11606,6 +11758,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 229, 234 @@ -11626,6 +11780,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 198, 203 @@ -11652,6 +11808,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 58, 65 @@ -11675,6 +11833,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 32, 39 @@ -11702,6 +11862,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 58, 65 diff --git a/tests/fixtures/parser/ast/ts-promise02-output.json b/tests/fixtures/parser/ast/ts-promise02-output.json index b4378f1f..f9314985 100644 --- a/tests/fixtures/parser/ast/ts-promise02-output.json +++ b/tests/fixtures/parser/ast/ts-promise02-output.json @@ -180,6 +180,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 38, 45 @@ -199,6 +201,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 46, 53 @@ -398,6 +402,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -497,6 +503,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 111, 117 @@ -600,6 +608,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -741,6 +751,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 162, 167 @@ -760,6 +772,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 168, 175 @@ -937,6 +951,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 200, 207 @@ -956,6 +972,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 208, 215 @@ -1055,6 +1073,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 229, 236 @@ -1074,6 +1094,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 237, 244 @@ -1273,6 +1295,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -1372,6 +1396,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 304, 305 @@ -1475,6 +1501,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -1616,6 +1644,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 352, 357 @@ -1635,6 +1665,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 358, 365 @@ -1802,6 +1834,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -1901,6 +1935,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 415, 421 @@ -2004,6 +2040,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -2145,6 +2183,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 466, 471 @@ -2164,6 +2204,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 472, 479 @@ -2341,6 +2383,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 503, 510 @@ -2360,6 +2404,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 511, 518 @@ -2559,6 +2605,8 @@ "value": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -2658,6 +2706,8 @@ "expression": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 575, 576 @@ -2761,6 +2811,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -2902,6 +2954,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 621, 626 @@ -2921,6 +2975,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 627, 634 @@ -3098,6 +3154,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 658, 665 @@ -3117,6 +3175,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 666, 673 @@ -3316,6 +3376,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -3415,6 +3477,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 731, 737 @@ -3518,6 +3582,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -3659,6 +3725,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 782, 787 @@ -3678,6 +3746,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 788, 795 @@ -3855,6 +3925,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 819, 826 @@ -3874,6 +3946,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 827, 834 @@ -4073,6 +4147,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -4172,6 +4248,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 892, 898 @@ -4275,6 +4353,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -4416,6 +4496,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 943, 948 @@ -4435,6 +4517,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 949, 956 @@ -4612,6 +4696,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 980, 987 @@ -4631,6 +4717,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 988, 995 @@ -4830,6 +4918,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -4929,6 +5019,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1053, 1059 @@ -5032,6 +5124,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -5173,6 +5267,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1104, 1109 @@ -5192,6 +5288,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 1110, 1117 @@ -5369,6 +5467,8 @@ "object": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 1141, 1148 @@ -5388,6 +5488,8 @@ "property": { "type": "Identifier", "name": "resolve", + "decorators": [], + "optional": false, "range": [ 1149, 1156 @@ -5587,6 +5689,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -5686,6 +5790,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1214, 1220 @@ -5789,6 +5895,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -5930,6 +6038,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1265, 1270 @@ -5949,6 +6059,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 1271, 1278 diff --git a/tests/fixtures/parser/ast/ts-promise02-scope-output.json b/tests/fixtures/parser/ast/ts-promise02-scope-output.json index 045b52d1..54b481a6 100644 --- a/tests/fixtures/parser/ast/ts-promise02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-promise02-scope-output.json @@ -8610,6 +8610,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 38, 45 @@ -8633,6 +8635,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 200, 207 @@ -8656,6 +8660,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 503, 510 @@ -8679,6 +8685,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 658, 665 @@ -8702,6 +8710,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 819, 826 @@ -8725,6 +8735,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 980, 987 @@ -8748,6 +8760,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 1141, 1148 @@ -8785,6 +8799,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -8807,6 +8823,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -8828,6 +8846,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -8927,6 +8947,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 111, 117 @@ -9031,6 +9053,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 111, 117 @@ -9051,6 +9075,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -9075,6 +9101,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 111, 117 @@ -9095,6 +9123,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 84, 90 @@ -9124,6 +9154,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -9146,6 +9178,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -9167,6 +9201,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -9308,6 +9344,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 162, 167 @@ -9327,6 +9365,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 168, 175 @@ -9446,6 +9486,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 162, 167 @@ -9466,6 +9508,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -9490,6 +9534,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 162, 167 @@ -9510,6 +9556,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 131, 136 @@ -9538,6 +9586,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 229, 236 @@ -9575,6 +9625,8 @@ { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -9597,6 +9649,8 @@ "name": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -9618,6 +9672,8 @@ "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -9717,6 +9773,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 304, 305 @@ -9821,6 +9879,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 304, 305 @@ -9841,6 +9901,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -9865,6 +9927,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 304, 305 @@ -9885,6 +9949,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 281, 282 @@ -9914,6 +9980,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -9936,6 +10004,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -9957,6 +10027,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -10098,6 +10170,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 352, 357 @@ -10117,6 +10191,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 358, 365 @@ -10236,6 +10312,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 352, 357 @@ -10256,6 +10334,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -10280,6 +10360,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 352, 357 @@ -10300,6 +10382,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 320, 325 @@ -10326,6 +10410,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 229, 236 @@ -10356,6 +10442,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -10378,6 +10466,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -10399,6 +10489,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -10498,6 +10590,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 415, 421 @@ -10602,6 +10696,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 415, 421 @@ -10622,6 +10718,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -10646,6 +10744,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 415, 421 @@ -10666,6 +10766,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 388, 394 @@ -10695,6 +10797,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -10717,6 +10821,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -10738,6 +10844,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -10879,6 +10987,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 466, 471 @@ -10898,6 +11008,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 472, 479 @@ -11017,6 +11129,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 466, 471 @@ -11037,6 +11151,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -11061,6 +11177,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 466, 471 @@ -11081,6 +11199,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 435, 440 @@ -11117,6 +11237,8 @@ { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -11139,6 +11261,8 @@ "name": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -11160,6 +11284,8 @@ "value": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -11259,6 +11385,8 @@ "expression": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 575, 576 @@ -11363,6 +11491,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 575, 576 @@ -11383,6 +11513,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -11407,6 +11539,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 575, 576 @@ -11427,6 +11561,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 552, 553 @@ -11456,6 +11592,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -11478,6 +11616,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -11499,6 +11639,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -11640,6 +11782,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 621, 626 @@ -11659,6 +11803,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 627, 634 @@ -11778,6 +11924,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 621, 626 @@ -11798,6 +11946,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -11822,6 +11972,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 621, 626 @@ -11842,6 +11994,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 590, 595 @@ -11878,6 +12032,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -11900,6 +12056,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -11921,6 +12079,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -12020,6 +12180,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 731, 737 @@ -12124,6 +12286,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 731, 737 @@ -12144,6 +12308,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -12168,6 +12334,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 731, 737 @@ -12188,6 +12356,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 704, 710 @@ -12217,6 +12387,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -12239,6 +12411,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -12260,6 +12434,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -12401,6 +12577,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 782, 787 @@ -12420,6 +12598,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 788, 795 @@ -12539,6 +12719,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 782, 787 @@ -12559,6 +12741,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -12583,6 +12767,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 782, 787 @@ -12603,6 +12789,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 751, 756 @@ -12639,6 +12827,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -12661,6 +12851,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -12682,6 +12874,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -12781,6 +12975,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 892, 898 @@ -12885,6 +13081,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 892, 898 @@ -12905,6 +13103,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -12929,6 +13129,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 892, 898 @@ -12949,6 +13151,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 865, 871 @@ -12978,6 +13182,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -13000,6 +13206,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -13021,6 +13229,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -13162,6 +13372,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 943, 948 @@ -13181,6 +13393,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 949, 956 @@ -13300,6 +13514,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 943, 948 @@ -13320,6 +13536,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -13344,6 +13562,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 943, 948 @@ -13364,6 +13584,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 912, 917 @@ -13400,6 +13622,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -13422,6 +13646,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -13443,6 +13669,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -13542,6 +13770,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1053, 1059 @@ -13646,6 +13876,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1053, 1059 @@ -13666,6 +13898,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -13690,6 +13924,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1053, 1059 @@ -13710,6 +13946,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1026, 1032 @@ -13739,6 +13977,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -13761,6 +14001,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -13782,6 +14024,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -13923,6 +14167,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1104, 1109 @@ -13942,6 +14188,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 1110, 1117 @@ -14061,6 +14309,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1104, 1109 @@ -14081,6 +14331,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -14105,6 +14357,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1104, 1109 @@ -14125,6 +14379,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1073, 1078 @@ -14161,6 +14417,8 @@ { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -14183,6 +14441,8 @@ "name": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -14204,6 +14464,8 @@ "value": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -14303,6 +14565,8 @@ "expression": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1214, 1220 @@ -14407,6 +14671,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1214, 1220 @@ -14427,6 +14693,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -14451,6 +14719,8 @@ "identifier": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1214, 1220 @@ -14471,6 +14741,8 @@ "resolved": { "type": "Identifier", "name": "number", + "decorators": [], + "optional": false, "range": [ 1187, 1193 @@ -14500,6 +14772,8 @@ { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -14522,6 +14796,8 @@ "name": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -14543,6 +14819,8 @@ "error": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -14684,6 +14962,8 @@ "object": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1265, 1270 @@ -14703,6 +14983,8 @@ "property": { "type": "Identifier", "name": "message", + "decorators": [], + "optional": false, "range": [ 1271, 1278 @@ -14822,6 +15104,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1265, 1270 @@ -14842,6 +15126,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -14866,6 +15152,8 @@ "identifier": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1265, 1270 @@ -14886,6 +15174,8 @@ "resolved": { "type": "Identifier", "name": "error", + "decorators": [], + "optional": false, "range": [ 1234, 1239 @@ -14912,6 +15202,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 38, 45 @@ -14935,6 +15227,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 200, 207 @@ -14958,6 +15252,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 229, 236 @@ -14981,6 +15277,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 503, 510 @@ -15004,6 +15302,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 658, 665 @@ -15027,6 +15327,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 819, 826 @@ -15050,6 +15352,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 980, 987 @@ -15073,6 +15377,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 1141, 1148 @@ -15100,6 +15406,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 38, 45 @@ -15123,6 +15431,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 200, 207 @@ -15146,6 +15456,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 229, 236 @@ -15169,6 +15481,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 503, 510 @@ -15192,6 +15506,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 658, 665 @@ -15215,6 +15531,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 819, 826 @@ -15238,6 +15556,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 980, 987 @@ -15261,6 +15581,8 @@ "identifier": { "type": "Identifier", "name": "Promise", + "decorators": [], + "optional": false, "range": [ 1141, 1148 diff --git a/tests/fixtures/parser/ast/ts-reactive01-output.json b/tests/fixtures/parser/ast/ts-reactive01-output.json index e429ef1e..8924327b 100644 --- a/tests/fixtures/parser/ast/ts-reactive01-output.json +++ b/tests/fixtures/parser/ast/ts-reactive01-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -157,6 +160,7 @@ } } ], + "declare": false, "range": [ 23, 38 @@ -178,9 +182,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -253,6 +260,7 @@ } } ], + "declare": false, "range": [ 43, 66 @@ -273,6 +281,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -295,6 +305,8 @@ "left": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -314,6 +326,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -379,6 +393,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -401,6 +417,8 @@ "left": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -420,6 +438,8 @@ "right": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -485,6 +505,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 98, 99 @@ -507,6 +529,8 @@ "left": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -526,6 +550,8 @@ "right": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -689,6 +715,8 @@ "expression": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 144, 145 @@ -777,6 +805,8 @@ "expression": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 159, 160 @@ -869,6 +899,8 @@ "callee": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 164, 175 diff --git a/tests/fixtures/parser/ast/ts-reactive01-scope-output.json b/tests/fixtures/parser/ast/ts-reactive01-scope-output.json index 06dfd3d2..631fadc6 100644 --- a/tests/fixtures/parser/ast/ts-reactive01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8709,6 +8716,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8729,6 +8738,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8749,6 +8760,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -8769,6 +8782,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8789,6 +8804,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 159, 160 @@ -8809,6 +8826,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -8833,6 +8852,8 @@ { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -8855,6 +8876,8 @@ "name": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -8872,9 +8895,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -8953,6 +8979,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -8973,6 +9001,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -8993,6 +9023,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -9013,6 +9045,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -9037,6 +9071,8 @@ { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9059,6 +9095,8 @@ "name": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9079,6 +9117,8 @@ "left": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9098,6 +9138,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -9135,6 +9177,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -9155,6 +9199,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9179,6 +9225,8 @@ { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9201,6 +9249,8 @@ "name": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9221,6 +9271,8 @@ "left": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9240,6 +9292,8 @@ "right": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -9277,6 +9331,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 144, 145 @@ -9297,6 +9353,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9321,6 +9379,8 @@ { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9343,6 +9403,8 @@ "name": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9363,6 +9425,8 @@ "left": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9382,6 +9446,8 @@ "right": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -9419,6 +9485,8 @@ "identifier": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 164, 175 @@ -9439,6 +9507,8 @@ "resolved": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9463,6 +9533,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -9483,6 +9555,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -9503,6 +9577,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -9523,6 +9599,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -9543,6 +9621,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9563,6 +9643,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9583,6 +9665,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 79, 80 @@ -9603,6 +9687,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -9623,6 +9709,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9643,6 +9731,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9663,6 +9753,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -9683,6 +9775,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 75, 76 @@ -9703,6 +9797,8 @@ "identifier": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9723,6 +9819,8 @@ "resolved": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 @@ -9743,6 +9841,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -9763,6 +9863,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 49, 52 @@ -9783,6 +9885,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 144, 145 @@ -9803,6 +9907,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 88, 89 @@ -9823,6 +9929,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 159, 160 @@ -9843,6 +9951,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 27, 28 @@ -9863,6 +9973,8 @@ "identifier": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 164, 175 @@ -9883,6 +9995,8 @@ "resolved": { "type": "Identifier", "name": "getFunction", + "decorators": [], + "optional": false, "range": [ 101, 112 diff --git a/tests/fixtures/parser/ast/ts-reactive02-output.json b/tests/fixtures/parser/ast/ts-reactive02-output.json index 117e4f76..6a6772aa 100644 --- a/tests/fixtures/parser/ast/ts-reactive02-output.json +++ b/tests/fixtures/parser/ast/ts-reactive02-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -197,9 +201,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -250,6 +257,7 @@ } } ], + "declare": false, "range": [ 65, 80 @@ -271,9 +279,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -346,6 +357,7 @@ } } ], + "declare": false, "range": [ 85, 108 @@ -366,6 +378,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 114, 115 @@ -388,6 +402,8 @@ "left": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -407,6 +423,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 121, 122 @@ -472,6 +490,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 127, 128 @@ -494,6 +514,8 @@ "left": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -513,6 +535,8 @@ "right": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 134, 135 @@ -578,6 +602,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 140, 141 @@ -600,6 +626,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -619,6 +647,8 @@ "right": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 149, 152 @@ -685,9 +715,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -729,6 +762,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 165, 173 @@ -776,6 +811,7 @@ } } ], + "declare": false, "range": [ 155, 176 @@ -797,9 +833,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -841,6 +880,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 188, 196 @@ -888,6 +929,7 @@ } } ], + "declare": false, "range": [ 178, 199 @@ -1006,6 +1048,8 @@ "expression": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 225, 226 @@ -1094,6 +1138,8 @@ "expression": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 240, 241 @@ -1186,6 +1232,8 @@ "callee": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 245, 248 @@ -1256,6 +1304,8 @@ "expression": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 253, 254 @@ -1310,6 +1360,8 @@ "expression": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 257, 259 @@ -1364,6 +1416,8 @@ "expression": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 262, 263 @@ -1418,6 +1472,8 @@ "expression": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 266, 268 diff --git a/tests/fixtures/parser/ast/ts-reactive02-scope-output.json b/tests/fixtures/parser/ast/ts-reactive02-scope-output.json index 2a5aade6..36dc52eb 100644 --- a/tests/fixtures/parser/ast/ts-reactive02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive02-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 165, 173 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8749,6 +8761,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 188, 196 @@ -8769,6 +8783,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8793,6 +8809,8 @@ { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8815,6 +8833,8 @@ "name": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8832,9 +8852,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8891,6 +8914,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8911,6 +8936,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8931,6 +8958,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 121, 122 @@ -8951,6 +8980,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -8971,6 +9002,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 240, 241 @@ -8991,6 +9024,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -9015,6 +9050,8 @@ { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9037,6 +9074,8 @@ "name": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9054,9 +9093,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9135,6 +9177,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9155,6 +9199,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9175,6 +9221,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 149, 152 @@ -9195,6 +9243,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -9219,6 +9269,8 @@ { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -9241,6 +9293,8 @@ "name": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -9261,6 +9315,8 @@ "left": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -9280,6 +9336,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 121, 122 @@ -9317,6 +9375,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 134, 135 @@ -9337,6 +9397,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -9361,6 +9423,8 @@ { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -9383,6 +9447,8 @@ "name": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -9403,6 +9469,8 @@ "left": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -9422,6 +9490,8 @@ "right": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 134, 135 @@ -9459,6 +9529,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 225, 226 @@ -9479,6 +9551,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -9503,6 +9577,8 @@ { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -9525,6 +9601,8 @@ "name": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -9545,6 +9623,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -9564,6 +9644,8 @@ "right": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 149, 152 @@ -9601,6 +9683,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 245, 248 @@ -9621,6 +9705,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -9645,6 +9731,8 @@ { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9667,6 +9755,8 @@ "name": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9684,9 +9774,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9728,6 +9821,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 165, 173 @@ -9781,6 +9876,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9801,6 +9898,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9821,6 +9920,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 253, 254 @@ -9841,6 +9942,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9861,6 +9964,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 257, 259 @@ -9881,6 +9986,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -9905,6 +10012,8 @@ { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -9927,6 +10036,8 @@ "name": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -9944,9 +10055,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -9988,6 +10102,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 188, 196 @@ -10041,6 +10157,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10061,6 +10179,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10081,6 +10201,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 262, 263 @@ -10101,6 +10223,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10121,6 +10245,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 266, 268 @@ -10141,6 +10267,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10165,6 +10293,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -10185,6 +10315,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -10205,6 +10337,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -10225,6 +10359,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -10245,6 +10381,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -10265,6 +10403,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -10285,6 +10425,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 121, 122 @@ -10305,6 +10447,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -10325,6 +10469,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -10345,6 +10491,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -10365,6 +10513,8 @@ "identifier": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 134, 135 @@ -10385,6 +10535,8 @@ "resolved": { "type": "Identifier", "name": "y", + "decorators": [], + "optional": false, "range": [ 117, 118 @@ -10405,6 +10557,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -10425,6 +10579,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -10445,6 +10601,8 @@ "identifier": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 149, 152 @@ -10465,6 +10623,8 @@ "resolved": { "type": "Identifier", "name": "get", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -10485,6 +10645,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -10505,6 +10667,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -10525,6 +10689,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 165, 173 @@ -10545,6 +10711,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -10565,6 +10733,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10585,6 +10755,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10605,6 +10777,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 188, 196 @@ -10625,6 +10799,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -10645,6 +10821,8 @@ "identifier": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 225, 226 @@ -10665,6 +10843,8 @@ "resolved": { "type": "Identifier", "name": "z", + "decorators": [], + "optional": false, "range": [ 130, 131 @@ -10685,6 +10865,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 240, 241 @@ -10705,6 +10887,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 69, 70 @@ -10725,6 +10909,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 245, 248 @@ -10745,6 +10931,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 143, 146 @@ -10765,6 +10953,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 253, 254 @@ -10785,6 +10975,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -10805,6 +10997,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 257, 259 @@ -10825,6 +11019,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 161, 162 @@ -10845,6 +11041,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 262, 263 @@ -10865,6 +11063,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10885,6 +11085,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 266, 268 @@ -10905,6 +11107,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 diff --git a/tests/fixtures/parser/ast/ts-reactive03-output.json b/tests/fixtures/parser/ast/ts-reactive03-output.json index 506de01b..5abe2c7f 100644 --- a/tests/fixtures/parser/ast/ts-reactive03-output.json +++ b/tests/fixtures/parser/ast/ts-reactive03-output.json @@ -106,9 +106,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -134,6 +137,8 @@ "key": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 39, 40 @@ -150,6 +155,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -192,6 +198,8 @@ "key": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -208,6 +216,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -275,6 +284,7 @@ } } ], + "declare": false, "range": [ 30, 57 @@ -313,6 +323,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 63, 64 @@ -334,6 +346,8 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -342,6 +356,8 @@ "key": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -358,10 +374,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -399,6 +418,8 @@ "key": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -415,10 +436,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -469,6 +493,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -586,6 +612,8 @@ "expression": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -640,6 +668,8 @@ "expression": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 95, 96 diff --git a/tests/fixtures/parser/ast/ts-reactive03-scope-output.json b/tests/fixtures/parser/ast/ts-reactive03-scope-output.json index caf1e11c..5cafe097 100644 --- a/tests/fixtures/parser/ast/ts-reactive03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive03-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8678,6 +8685,8 @@ "key": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 39, 40 @@ -8694,6 +8703,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -8736,6 +8746,8 @@ "key": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 51, 52 @@ -8752,6 +8764,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -8825,6 +8838,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8845,6 +8860,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8865,6 +8882,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8885,6 +8904,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8905,6 +8926,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -8925,6 +8948,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -8949,6 +8974,8 @@ { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8971,6 +8998,8 @@ "name": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8990,6 +9019,8 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -8998,6 +9029,8 @@ "key": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9014,10 +9047,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9055,6 +9091,8 @@ "key": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9071,10 +9109,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9125,6 +9166,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -9162,6 +9205,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9182,6 +9227,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9206,6 +9253,8 @@ { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9228,6 +9277,8 @@ "name": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9247,6 +9298,8 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -9255,6 +9308,8 @@ "key": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9271,10 +9326,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9312,6 +9370,8 @@ "key": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9328,10 +9388,13 @@ } }, "method": false, + "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9382,6 +9445,8 @@ "right": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -9419,6 +9484,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -9439,6 +9506,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9463,6 +9532,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -9483,6 +9554,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -9503,6 +9576,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9523,6 +9598,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9543,6 +9620,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9563,6 +9642,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -9583,6 +9664,8 @@ "identifier": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -9603,6 +9686,8 @@ "resolved": { "type": "Identifier", "name": "x", + "decorators": [], + "optional": false, "range": [ 34, 35 @@ -9623,6 +9708,8 @@ "identifier": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9643,6 +9730,8 @@ "resolved": { "type": "Identifier", "name": "s", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9663,6 +9752,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 95, 96 @@ -9683,6 +9774,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 71, 72 diff --git a/tests/fixtures/parser/ast/ts-reactive04-output.json b/tests/fixtures/parser/ast/ts-reactive04-output.json index e6bf28d9..0127561a 100644 --- a/tests/fixtures/parser/ast/ts-reactive04-output.json +++ b/tests/fixtures/parser/ast/ts-reactive04-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -157,6 +160,7 @@ } } ], + "declare": false, "range": [ 23, 41 @@ -178,9 +182,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -247,6 +254,7 @@ } } ], + "declare": false, "range": [ 46, 60 @@ -267,6 +275,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 66, 67 @@ -289,6 +299,8 @@ "left": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 69, 71 @@ -308,6 +320,8 @@ "right": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 74, 76 @@ -373,6 +387,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 81, 82 @@ -395,6 +411,8 @@ "left": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -414,6 +432,8 @@ "right": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 89, 91 @@ -531,6 +551,8 @@ "expression": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -585,6 +607,8 @@ "expression": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 109, 111 diff --git a/tests/fixtures/parser/ast/ts-reactive04-scope-output.json b/tests/fixtures/parser/ast/ts-reactive04-scope-output.json index 3984e93d..f85a1c6f 100644 --- a/tests/fixtures/parser/ast/ts-reactive04-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive04-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8709,6 +8716,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8729,6 +8738,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8749,6 +8760,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 74, 76 @@ -8769,6 +8782,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8789,6 +8804,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 89, 91 @@ -8809,6 +8826,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -8833,6 +8852,8 @@ { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8889,6 +8910,8 @@ "name": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8940,9 +8963,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9015,6 +9041,8 @@ "identifier": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 69, 71 @@ -9035,6 +9063,8 @@ "resolved": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9089,6 +9119,8 @@ "identifier": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -9109,6 +9141,8 @@ "resolved": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9167,6 +9201,8 @@ { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9189,6 +9225,8 @@ "name": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9209,6 +9247,8 @@ "left": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9228,6 +9268,8 @@ "right": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 89, 91 @@ -9265,6 +9307,8 @@ "identifier": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 109, 111 @@ -9285,6 +9329,8 @@ "resolved": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9309,6 +9355,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -9329,6 +9377,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -9349,6 +9399,8 @@ "identifier": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 69, 71 @@ -9369,6 +9421,8 @@ "resolved": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9423,6 +9477,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 74, 76 @@ -9443,6 +9499,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -9463,6 +9521,8 @@ "identifier": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9483,6 +9543,8 @@ "resolved": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 @@ -9503,6 +9565,8 @@ "identifier": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 89, 91 @@ -9523,6 +9587,8 @@ "resolved": { "type": "Identifier", "name": "xx", + "decorators": [], + "optional": false, "range": [ 29, 31 @@ -9543,6 +9609,8 @@ "identifier": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -9563,6 +9631,8 @@ "resolved": { "type": "Identifier", "name": "yy", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9617,6 +9687,8 @@ "identifier": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 109, 111 @@ -9637,6 +9709,8 @@ "resolved": { "type": "Identifier", "name": "zz", + "decorators": [], + "optional": false, "range": [ 84, 86 diff --git a/tests/fixtures/parser/ast/ts-reactive05-output.json b/tests/fixtures/parser/ast/ts-reactive05-output.json index 6841d30e..9bea6d8a 100644 --- a/tests/fixtures/parser/ast/ts-reactive05-output.json +++ b/tests/fixtures/parser/ast/ts-reactive05-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -197,9 +201,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -241,6 +248,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 76, 84 @@ -288,6 +297,7 @@ } } ], + "declare": false, "range": [ 66, 87 @@ -308,6 +318,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 92, 93 @@ -330,6 +342,8 @@ "left": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -349,6 +363,8 @@ "right": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -414,6 +430,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 111, 112 @@ -436,6 +454,8 @@ "left": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -455,6 +475,8 @@ "right": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 123, 125 @@ -521,9 +543,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -565,6 +590,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 140, 148 @@ -612,6 +639,7 @@ } } ], + "declare": false, "range": [ 130, 153 @@ -684,6 +712,8 @@ "expression": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 166, 167 @@ -738,6 +768,8 @@ "expression": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 170, 172 @@ -792,6 +824,8 @@ "expression": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 175, 181 @@ -846,6 +880,8 @@ "expression": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -900,6 +936,8 @@ "expression": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 188, 190 @@ -954,6 +992,8 @@ "expression": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 193, 199 diff --git a/tests/fixtures/parser/ast/ts-reactive05-scope-output.json b/tests/fixtures/parser/ast/ts-reactive05-scope-output.json index 7dfce1ed..360ff3dc 100644 --- a/tests/fixtures/parser/ast/ts-reactive05-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive05-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 76, 84 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8749,6 +8761,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 140, 148 @@ -8769,6 +8783,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8793,6 +8809,8 @@ { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -8815,6 +8833,8 @@ "name": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -8832,9 +8852,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -8876,6 +8899,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 76, 84 @@ -8929,6 +8954,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -8949,6 +8976,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -8969,6 +8998,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -8989,6 +9020,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9009,6 +9042,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 166, 167 @@ -9029,6 +9064,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9049,6 +9086,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 170, 172 @@ -9069,6 +9108,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9089,6 +9130,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 170, 172 @@ -9109,6 +9152,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9133,6 +9178,8 @@ { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9155,6 +9202,8 @@ "name": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9175,6 +9224,8 @@ "left": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9194,6 +9245,8 @@ "right": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -9231,6 +9284,8 @@ "identifier": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 175, 181 @@ -9251,6 +9306,8 @@ "resolved": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9275,6 +9332,8 @@ { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9297,6 +9356,8 @@ "name": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9317,6 +9378,8 @@ "left": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9336,6 +9399,8 @@ "right": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 123, 125 @@ -9373,6 +9438,8 @@ "identifier": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 193, 199 @@ -9393,6 +9460,8 @@ "resolved": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9417,6 +9486,8 @@ { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9439,6 +9510,8 @@ "name": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9456,9 +9529,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9500,6 +9576,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 140, 148 @@ -9553,6 +9631,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 123, 125 @@ -9573,6 +9653,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9593,6 +9675,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9613,6 +9697,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9633,6 +9719,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -9653,6 +9741,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9673,6 +9763,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 188, 190 @@ -9693,6 +9785,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9713,6 +9807,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 188, 190 @@ -9733,6 +9829,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9757,6 +9855,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9777,6 +9877,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9797,6 +9899,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 76, 84 @@ -9817,6 +9921,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -9837,6 +9943,8 @@ "identifier": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9857,6 +9965,8 @@ "resolved": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -9877,6 +9987,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 104, 106 @@ -9897,6 +10009,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -9917,6 +10031,8 @@ "identifier": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9937,6 +10053,8 @@ "resolved": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 @@ -9957,6 +10075,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 123, 125 @@ -9977,6 +10097,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -9997,6 +10119,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -10017,6 +10141,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -10037,6 +10163,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 140, 148 @@ -10057,6 +10185,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -10077,6 +10207,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 166, 167 @@ -10097,6 +10229,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -10117,6 +10251,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 170, 172 @@ -10137,6 +10273,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 72, 73 @@ -10157,6 +10295,8 @@ "identifier": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 175, 181 @@ -10177,6 +10317,8 @@ "resolved": { "type": "Identifier", "name": "aValue", + "decorators": [], + "optional": false, "range": [ 95, 101 @@ -10197,6 +10339,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 184, 185 @@ -10217,6 +10361,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -10237,6 +10383,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 188, 190 @@ -10257,6 +10405,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 136, 137 @@ -10277,6 +10427,8 @@ "identifier": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 193, 199 @@ -10297,6 +10449,8 @@ "resolved": { "type": "Identifier", "name": "bValue", + "decorators": [], + "optional": false, "range": [ 114, 120 diff --git a/tests/fixtures/parser/ast/ts-reactive06-output.json b/tests/fixtures/parser/ast/ts-reactive06-output.json index add071a9..cd4968dc 100644 --- a/tests/fixtures/parser/ast/ts-reactive06-output.json +++ b/tests/fixtures/parser/ast/ts-reactive06-output.json @@ -124,9 +124,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -141,6 +144,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -156,6 +161,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -319,6 +327,7 @@ } } ], + "declare": false, "range": [ 27, 65 @@ -358,9 +367,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -393,6 +405,7 @@ } } ], + "declare": false, "range": [ 67, 72 @@ -413,6 +426,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 73, 74 @@ -435,6 +450,8 @@ "left": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -456,6 +473,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 80, 83 @@ -478,6 +497,8 @@ "object": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 87, 90 @@ -497,6 +518,8 @@ "property": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 91, 94 @@ -592,6 +615,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 97, 98 @@ -614,6 +639,8 @@ "left": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -635,6 +662,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 104, 107 @@ -657,6 +686,8 @@ "object": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 111, 114 @@ -676,6 +707,8 @@ "property": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -771,6 +804,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 121, 122 @@ -792,6 +827,8 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -800,6 +837,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 127, 130 @@ -816,10 +855,13 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -872,6 +914,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -898,6 +942,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 147, 150 @@ -914,6 +960,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -1084,6 +1131,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 171, 174 @@ -1106,6 +1155,8 @@ "object": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 178, 181 @@ -1125,6 +1176,8 @@ "property": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 182, 185 @@ -1209,6 +1262,8 @@ "expression": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -1263,6 +1318,8 @@ "expression": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 192, 193 diff --git a/tests/fixtures/parser/ast/ts-reactive06-scope-output.json b/tests/fixtures/parser/ast/ts-reactive06-scope-output.json index 804e274c..7367ac70 100644 --- a/tests/fixtures/parser/ast/ts-reactive06-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive06-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8625,6 +8627,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -8640,6 +8644,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8775,6 +8782,8 @@ "name": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8789,6 +8798,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -8804,6 +8815,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8934,9 +8948,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8951,6 +8968,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -8966,6 +8985,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9135,6 +9157,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9149,6 +9173,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -9164,6 +9190,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9297,6 +9326,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9311,6 +9342,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -9326,6 +9359,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9459,6 +9495,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9473,6 +9511,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -9488,6 +9528,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9621,6 +9664,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9635,6 +9680,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -9650,6 +9697,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9783,6 +9833,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 80, 83 @@ -9803,6 +9855,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9817,6 +9871,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -9832,6 +9888,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9965,6 +10024,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 87, 90 @@ -9985,6 +10046,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9999,6 +10062,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10014,6 +10079,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10147,6 +10215,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 104, 107 @@ -10167,6 +10237,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10181,6 +10253,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10196,6 +10270,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10329,6 +10406,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 111, 114 @@ -10349,6 +10428,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10363,6 +10444,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10378,6 +10461,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10511,6 +10597,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -10531,6 +10619,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10545,6 +10635,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10560,6 +10652,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10693,6 +10788,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 171, 174 @@ -10713,6 +10810,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10727,6 +10826,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10742,6 +10843,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10875,6 +10979,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 178, 181 @@ -10895,6 +11001,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10909,6 +11017,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -10924,6 +11034,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11061,6 +11174,8 @@ { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -11083,6 +11198,8 @@ "name": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -11100,9 +11217,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -11141,6 +11261,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -11161,6 +11283,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -11185,6 +11309,8 @@ { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -11207,6 +11333,8 @@ "name": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -11227,6 +11355,8 @@ "left": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -11248,6 +11378,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 104, 107 @@ -11270,6 +11402,8 @@ "object": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 111, 114 @@ -11289,6 +11423,8 @@ "property": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 115, 118 @@ -11356,6 +11492,8 @@ "identifier": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -11376,6 +11514,8 @@ "resolved": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -11400,6 +11540,8 @@ { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -11422,6 +11564,8 @@ "name": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -11441,6 +11585,8 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", + "decorators": [], + "optional": false, "properties": [ { "type": "Property", @@ -11449,6 +11595,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 127, 130 @@ -11465,10 +11613,13 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -11521,6 +11672,8 @@ "left": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -11547,6 +11700,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 147, 150 @@ -11563,6 +11718,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -11651,6 +11807,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 192, 193 @@ -11671,6 +11829,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -11695,6 +11855,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11709,6 +11871,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -11724,6 +11888,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11857,6 +12024,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11871,6 +12040,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -11886,6 +12057,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12019,6 +12193,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 76, 77 @@ -12039,6 +12215,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 71, 72 @@ -12059,6 +12237,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 80, 83 @@ -12079,6 +12259,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12093,6 +12275,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -12108,6 +12292,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12241,6 +12428,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 87, 90 @@ -12261,6 +12450,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12275,6 +12466,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -12290,6 +12483,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12423,6 +12619,8 @@ "identifier": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -12443,6 +12641,8 @@ "resolved": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -12463,6 +12663,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 104, 107 @@ -12483,6 +12685,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12497,6 +12701,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -12512,6 +12718,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12645,6 +12854,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 111, 114 @@ -12665,6 +12876,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12679,6 +12892,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -12694,6 +12909,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12827,6 +13045,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -12847,6 +13067,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 @@ -12867,6 +13089,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 138, 141 @@ -12887,6 +13111,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12901,6 +13127,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -12916,6 +13144,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13049,6 +13280,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 171, 174 @@ -13069,6 +13302,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13083,6 +13318,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -13098,6 +13335,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13231,6 +13471,8 @@ "identifier": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 178, 181 @@ -13251,6 +13493,8 @@ "resolved": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13265,6 +13509,8 @@ "key": { "type": "Identifier", "name": "bar", + "decorators": [], + "optional": false, "range": [ 38, 41 @@ -13280,6 +13526,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13413,6 +13662,8 @@ "identifier": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -13433,6 +13684,8 @@ "resolved": { "type": "Identifier", "name": "r", + "decorators": [], + "optional": false, "range": [ 100, 101 @@ -13453,6 +13706,8 @@ "identifier": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 192, 193 @@ -13473,6 +13728,8 @@ "resolved": { "type": "Identifier", "name": "n", + "decorators": [], + "optional": false, "range": [ 132, 133 diff --git a/tests/fixtures/parser/ast/ts-scope-issue01-output.json b/tests/fixtures/parser/ast/ts-scope-issue01-output.json index c2d2e9bd..ec6fd894 100644 --- a/tests/fixtures/parser/ast/ts-scope-issue01-output.json +++ b/tests/fixtures/parser/ast/ts-scope-issue01-output.json @@ -162,6 +162,8 @@ "local": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -214,9 +216,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -267,6 +272,7 @@ } } ], + "declare": false, "range": [ 152, 165 @@ -288,9 +294,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -341,6 +350,7 @@ } } ], + "declare": false, "range": [ 166, 185 @@ -361,6 +371,8 @@ "label": { "type": "Identifier", "name": "$", + "decorators": [], + "optional": false, "range": [ 186, 187 @@ -383,6 +395,8 @@ "left": { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -404,6 +418,8 @@ "left": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 201, 208 @@ -425,6 +441,8 @@ "left": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 212, 216 @@ -591,6 +609,8 @@ "expression": { "type": "Identifier", "name": "array", + "decorators": [], + "optional": false, "range": [ 241, 246 @@ -609,6 +629,8 @@ "context": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 250, 251 @@ -820,6 +842,8 @@ "name": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 293, 303 @@ -880,6 +904,8 @@ "expression": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 318, 322 diff --git a/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json b/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json index aca8ca72..41a1bb57 100644 --- a/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -8653,6 +8657,8 @@ "local": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -8690,6 +8696,8 @@ "identifier": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 293, 303 @@ -8710,6 +8718,8 @@ "resolved": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -8734,6 +8744,8 @@ { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8756,6 +8768,8 @@ "name": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8773,9 +8787,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8832,6 +8849,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8852,6 +8871,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8872,6 +8893,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 212, 216 @@ -8892,6 +8915,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8912,6 +8937,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 318, 322 @@ -8932,6 +8959,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -8956,6 +8985,8 @@ { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -8978,6 +9009,8 @@ "name": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -8995,9 +9028,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9054,6 +9090,8 @@ "identifier": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9074,6 +9112,8 @@ "resolved": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9094,6 +9134,8 @@ "identifier": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 201, 208 @@ -9114,6 +9156,8 @@ "resolved": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9138,6 +9182,8 @@ { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -9160,6 +9206,8 @@ "name": { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -9180,6 +9228,8 @@ "left": { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -9201,6 +9251,8 @@ "left": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 201, 208 @@ -9222,6 +9274,8 @@ "left": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 212, 216 @@ -9312,6 +9366,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -9332,6 +9388,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -9352,6 +9410,8 @@ "identifier": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9372,6 +9432,8 @@ "resolved": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9392,6 +9454,8 @@ "identifier": { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -9412,6 +9476,8 @@ "resolved": { "type": "Identifier", "name": "pageStart", + "decorators": [], + "optional": false, "range": [ 189, 198 @@ -9432,6 +9498,8 @@ "identifier": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 201, 208 @@ -9452,6 +9520,8 @@ "resolved": { "type": "Identifier", "name": "perPage", + "decorators": [], + "optional": false, "range": [ 172, 179 @@ -9472,6 +9542,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 212, 216 @@ -9492,6 +9564,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -9512,6 +9586,8 @@ "identifier": { "type": "Identifier", "name": "array", + "decorators": [], + "optional": false, "range": [ 241, 246 @@ -9535,6 +9611,8 @@ "identifier": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 318, 322 @@ -9555,6 +9633,8 @@ "resolved": { "type": "Identifier", "name": "page", + "decorators": [], + "optional": false, "range": [ 156, 160 @@ -9575,6 +9655,8 @@ "identifier": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 293, 303 @@ -9595,6 +9677,8 @@ "resolved": { "type": "Identifier", "name": "Pagination", + "decorators": [], + "optional": false, "range": [ 100, 110 @@ -9622,6 +9706,8 @@ { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 250, 251 @@ -9644,6 +9730,8 @@ "name": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 250, 251 @@ -9664,6 +9752,8 @@ "expression": { "type": "Identifier", "name": "array", + "decorators": [], + "optional": false, "range": [ 241, 246 @@ -9682,6 +9772,8 @@ "context": { "type": "Identifier", "name": "_", + "decorators": [], + "optional": false, "range": [ 250, 251 @@ -9892,6 +9984,8 @@ "identifier": { "type": "Identifier", "name": "array", + "decorators": [], + "optional": false, "range": [ 241, 246 @@ -9919,6 +10013,8 @@ "identifier": { "type": "Identifier", "name": "array", + "decorators": [], + "optional": false, "range": [ 241, 246 diff --git a/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json b/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json index 654c5d3c..995267aa 100644 --- a/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json +++ b/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json @@ -104,9 +104,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -157,6 +160,7 @@ } } ], + "declare": false, "range": [ 20, 40 @@ -275,6 +279,8 @@ "expression": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 62, 65 @@ -458,6 +464,8 @@ "key": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 84, 87 @@ -476,6 +484,8 @@ "value": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 84, 87 diff --git a/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json b/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json index 779dfd06..fdfb806d 100644 --- a/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8650,9 +8654,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8709,6 +8716,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8729,6 +8738,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8749,6 +8760,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 62, 65 @@ -8769,6 +8782,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8789,6 +8804,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 84, 87 @@ -8809,6 +8826,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8833,6 +8852,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8853,6 +8874,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8873,6 +8896,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 62, 65 @@ -8893,6 +8918,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 @@ -8913,6 +8940,8 @@ "identifier": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 84, 87 @@ -8933,6 +8962,8 @@ "resolved": { "type": "Identifier", "name": "src", + "decorators": [], + "optional": false, "range": [ 26, 29 diff --git a/tests/fixtures/parser/ast/ts-store01-output.json b/tests/fixtures/parser/ast/ts-store01-output.json index 325c8e68..881f1efa 100644 --- a/tests/fixtures/parser/ast/ts-store01-output.json +++ b/tests/fixtures/parser/ast/ts-store01-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -197,9 +201,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -241,6 +248,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 72, 80 @@ -288,6 +297,7 @@ } } ], + "declare": false, "range": [ 62, 83 @@ -309,9 +319,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -353,6 +366,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 95, 103 @@ -400,6 +415,7 @@ } } ], + "declare": false, "range": [ 85, 106 @@ -421,9 +437,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -474,6 +493,7 @@ } } ], + "declare": false, "range": [ 108, 124 @@ -491,9 +511,12 @@ }, { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -566,9 +589,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -576,6 +602,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -671,6 +699,7 @@ } } ], + "declare": false, "range": [ 143, 162 @@ -743,6 +772,8 @@ "expression": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 174, 176 @@ -797,6 +828,8 @@ "expression": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 179, 180 @@ -851,6 +884,8 @@ "expression": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 183, 185 @@ -905,6 +940,8 @@ "expression": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -959,6 +996,8 @@ "expression": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 192, 194 @@ -1013,6 +1052,8 @@ "expression": { "type": "Identifier", "name": "$unknown", + "decorators": [], + "optional": false, "range": [ 197, 205 diff --git a/tests/fixtures/parser/ast/ts-store01-scope-output.json b/tests/fixtures/parser/ast/ts-store01-scope-output.json index ed305b45..831b293e 100644 --- a/tests/fixtures/parser/ast/ts-store01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store01-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 72, 80 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8749,6 +8761,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 95, 103 @@ -8769,6 +8783,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8793,6 +8809,8 @@ { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8815,6 +8833,8 @@ "name": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8832,9 +8852,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8876,6 +8899,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 72, 80 @@ -8929,6 +8954,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8949,6 +8976,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -8969,6 +8998,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 174, 176 @@ -8989,6 +9020,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -9013,6 +9046,8 @@ { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9035,6 +9070,8 @@ "name": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9052,9 +9089,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9096,6 +9136,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 95, 103 @@ -9149,6 +9191,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9169,6 +9213,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9189,6 +9235,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 179, 180 @@ -9209,6 +9257,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -9233,6 +9283,8 @@ { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9255,6 +9307,8 @@ "name": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9272,9 +9326,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9331,6 +9388,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9351,6 +9410,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9371,6 +9432,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 183, 185 @@ -9391,6 +9454,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -9415,6 +9480,8 @@ { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -9437,6 +9504,8 @@ "name": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -9454,9 +9523,12 @@ }, "node": { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -9530,6 +9602,8 @@ "identifier": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9550,6 +9624,8 @@ "resolved": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -9574,6 +9650,8 @@ { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9581,6 +9659,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9648,6 +9728,8 @@ "name": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9655,6 +9737,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9717,9 +9801,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9727,6 +9814,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9828,6 +9917,8 @@ "identifier": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9835,6 +9926,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9900,6 +9993,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9907,6 +10002,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -9972,6 +10069,8 @@ "identifier": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -9992,6 +10091,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9999,6 +10100,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10064,6 +10167,8 @@ "identifier": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 192, 194 @@ -10084,6 +10189,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10091,6 +10198,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10160,6 +10269,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -10180,6 +10291,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -10200,6 +10313,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 72, 80 @@ -10220,6 +10335,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -10240,6 +10357,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -10260,6 +10379,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -10280,6 +10401,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 95, 103 @@ -10300,6 +10423,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -10320,6 +10445,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -10340,6 +10467,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -10360,6 +10489,8 @@ "identifier": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10367,6 +10498,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10432,6 +10565,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10439,6 +10574,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10504,6 +10641,8 @@ "identifier": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10524,6 +10663,8 @@ "resolved": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 131, 133 @@ -10544,6 +10685,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 174, 176 @@ -10564,6 +10707,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 68, 69 @@ -10584,6 +10729,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 179, 180 @@ -10604,6 +10751,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 91, 92 @@ -10624,6 +10773,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 183, 185 @@ -10644,6 +10795,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 114, 116 @@ -10664,6 +10817,8 @@ "identifier": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "range": [ 188, 189 @@ -10684,6 +10839,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10691,6 +10848,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10756,6 +10915,8 @@ "identifier": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 192, 194 @@ -10776,6 +10937,8 @@ "resolved": { "type": "Identifier", "name": "c", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10783,6 +10946,8 @@ "typeName": { "type": "Identifier", "name": "$c", + "decorators": [], + "optional": false, "range": [ 152, 154 @@ -10848,6 +11013,8 @@ "identifier": { "type": "Identifier", "name": "$unknown", + "decorators": [], + "optional": false, "range": [ 197, 205 @@ -10874,6 +11041,8 @@ "identifier": { "type": "Identifier", "name": "$unknown", + "decorators": [], + "optional": false, "range": [ 197, 205 @@ -10901,6 +11070,8 @@ "identifier": { "type": "Identifier", "name": "$unknown", + "decorators": [], + "optional": false, "range": [ 197, 205 diff --git a/tests/fixtures/parser/ast/ts-store02-output.json b/tests/fixtures/parser/ast/ts-store02-output.json index a7fd4c4f..e44d036f 100644 --- a/tests/fixtures/parser/ast/ts-store02-output.json +++ b/tests/fixtures/parser/ast/ts-store02-output.json @@ -183,6 +183,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -201,6 +203,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -253,9 +257,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -297,6 +304,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -344,6 +353,7 @@ } } ], + "declare": false, "range": [ 79, 100 @@ -365,9 +375,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -604,9 +617,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -648,6 +664,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 167, 175 @@ -695,6 +713,7 @@ } } ], + "declare": false, "range": [ 157, 178 @@ -716,9 +735,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -858,6 +880,8 @@ "expression": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 216, 218 @@ -912,6 +936,8 @@ "expression": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 221, 223 diff --git a/tests/fixtures/parser/ast/ts-store02-scope-output.json b/tests/fixtures/parser/ast/ts-store02-scope-output.json index ccdef136..2f82922e 100644 --- a/tests/fixtures/parser/ast/ts-store02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store02-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8749,6 +8761,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 167, 175 @@ -8769,6 +8783,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -8793,6 +8809,8 @@ { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -8815,6 +8833,8 @@ "name": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -8832,9 +8852,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -8876,6 +8899,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -8929,6 +8954,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -8949,6 +8976,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -8973,6 +9002,8 @@ { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9029,6 +9060,8 @@ "name": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9080,9 +9113,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9155,6 +9191,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 216, 218 @@ -9175,6 +9213,8 @@ "resolved": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9233,6 +9273,8 @@ { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9255,6 +9297,8 @@ "name": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9272,9 +9316,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9316,6 +9363,8 @@ "callee": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 167, 175 @@ -9369,6 +9418,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9389,6 +9440,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9413,6 +9466,8 @@ { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9469,6 +9524,8 @@ "name": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9520,9 +9577,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9595,6 +9655,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 221, 223 @@ -9615,6 +9677,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9673,6 +9737,8 @@ "identifier": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -9693,6 +9759,8 @@ "resolved": { "type": "Identifier", "name": "a", + "decorators": [], + "optional": false, "range": [ 85, 86 @@ -9713,6 +9781,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9733,6 +9803,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -9753,6 +9825,8 @@ "identifier": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9773,6 +9847,8 @@ "resolved": { "type": "Identifier", "name": "b", + "decorators": [], + "optional": false, "range": [ 163, 164 @@ -9793,6 +9869,8 @@ "identifier": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 167, 175 @@ -9813,6 +9891,8 @@ "resolved": { "type": "Identifier", "name": "writable", + "decorators": [], + "optional": false, "range": [ 46, 54 @@ -9833,6 +9913,8 @@ "identifier": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "range": [ 216, 218 @@ -9853,6 +9935,8 @@ "resolved": { "type": "Identifier", "name": "$a", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9907,6 +9991,8 @@ "identifier": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "range": [ 221, 223 @@ -9927,6 +10013,8 @@ "resolved": { "type": "Identifier", "name": "$b", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-store03-output.json b/tests/fixtures/parser/ast/ts-store03-output.json index 42a3369a..b8f436a0 100644 --- a/tests/fixtures/parser/ast/ts-store03-output.json +++ b/tests/fixtures/parser/ast/ts-store03-output.json @@ -127,6 +127,8 @@ "imported": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -145,6 +147,8 @@ "local": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -181,6 +185,8 @@ "imported": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -199,6 +205,8 @@ "local": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -251,9 +259,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -261,25 +272,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -315,6 +308,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -410,6 +423,7 @@ } } ], + "declare": false, "range": [ 72, 116 @@ -431,9 +445,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -441,25 +458,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -495,6 +494,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -590,6 +609,7 @@ } } ], + "declare": false, "range": [ 118, 156 @@ -611,9 +631,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -621,25 +644,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -675,6 +680,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -787,6 +812,7 @@ } } ], + "declare": false, "range": [ 158, 212 @@ -815,6 +841,8 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 240, 251 @@ -850,6 +878,8 @@ "expression": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 255, 265 @@ -885,6 +915,8 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 269, 285 @@ -931,11 +963,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "fn", + "decorators": [], + "optional": false, "range": [ 231, 233 @@ -1042,6 +1077,8 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 301, 312 @@ -1096,6 +1133,8 @@ "expression": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 315, 325 @@ -1150,6 +1189,8 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 328, 344 diff --git a/tests/fixtures/parser/ast/ts-store03-scope-output.json b/tests/fixtures/parser/ast/ts-store03-scope-output.json index b7b2b987..91a9b553 100644 --- a/tests/fixtures/parser/ast/ts-store03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store03-scope-output.json @@ -8611,6 +8611,8 @@ { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8633,6 +8635,8 @@ "name": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8654,6 +8658,8 @@ "imported": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8672,6 +8678,8 @@ "local": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8709,6 +8717,8 @@ "identifier": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 88, 96 @@ -8729,6 +8739,8 @@ "resolved": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -8753,6 +8765,8 @@ { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8775,6 +8789,8 @@ "name": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8796,6 +8812,8 @@ "imported": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8814,6 +8832,8 @@ "local": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8851,6 +8871,8 @@ "identifier": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 133, 141 @@ -8871,6 +8893,8 @@ "resolved": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8891,6 +8915,8 @@ "identifier": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 179, 187 @@ -8911,6 +8937,8 @@ "resolved": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -8935,6 +8963,8 @@ { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8942,25 +8972,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8996,6 +9008,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9081,6 +9113,8 @@ "name": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9088,25 +9122,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9142,6 +9158,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9222,9 +9258,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9232,25 +9271,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9286,6 +9307,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9387,6 +9428,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 240, 251 @@ -9407,6 +9450,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9414,25 +9459,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9468,6 +9495,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9551,6 +9598,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 301, 312 @@ -9571,6 +9620,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9578,25 +9629,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9632,6 +9665,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9715,6 +9768,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 301, 312 @@ -9735,6 +9790,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9742,25 +9799,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9796,6 +9835,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9883,6 +9942,8 @@ { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9890,25 +9951,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9944,6 +9987,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10029,6 +10092,8 @@ "name": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10036,25 +10101,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10090,6 +10137,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10170,9 +10237,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10180,25 +10250,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10234,6 +10286,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10335,6 +10407,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 255, 265 @@ -10355,6 +10429,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10362,25 +10438,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10416,6 +10474,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10499,6 +10577,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 315, 325 @@ -10519,6 +10599,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10526,25 +10608,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10580,6 +10644,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10663,6 +10747,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 315, 325 @@ -10683,6 +10769,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10690,25 +10778,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10744,6 +10814,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10831,6 +10921,8 @@ { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10838,25 +10930,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10884,11 +10958,31 @@ "loc": { "start": { "line": 5, - "column": 30 + "column": 30 + }, + "end": { + "line": 5, + "column": 39 + } + } + }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 }, "end": { "line": 5, - "column": 39 + "column": 30 } } }, @@ -10994,6 +11088,8 @@ "name": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11001,25 +11097,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11055,6 +11133,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11152,9 +11250,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11162,25 +11263,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11216,6 +11299,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11334,6 +11437,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 269, 285 @@ -11354,6 +11459,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11361,25 +11468,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11415,6 +11504,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11515,6 +11624,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 328, 344 @@ -11535,6 +11646,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11542,25 +11655,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11596,6 +11691,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11696,6 +11811,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 328, 344 @@ -11716,6 +11833,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11723,25 +11842,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11777,6 +11878,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11881,6 +12002,8 @@ { "type": "Identifier", "name": "fn", + "decorators": [], + "optional": false, "range": [ 231, 233 @@ -11903,6 +12026,8 @@ "name": { "type": "Identifier", "name": "fn", + "decorators": [], + "optional": false, "range": [ 231, 233 @@ -11929,6 +12054,8 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 240, 251 @@ -11964,6 +12091,8 @@ "expression": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 255, 265 @@ -11999,6 +12128,8 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 269, 285 @@ -12045,11 +12176,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "fn", + "decorators": [], + "optional": false, "range": [ 231, 233 @@ -12091,6 +12225,8 @@ "identifier": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 88, 96 @@ -12111,6 +12247,8 @@ "resolved": { "type": "Identifier", "name": "Writable", + "decorators": [], + "optional": false, "range": [ 29, 37 @@ -12131,6 +12269,8 @@ "identifier": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 133, 141 @@ -12151,6 +12291,8 @@ "resolved": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -12171,6 +12313,8 @@ "identifier": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 179, 187 @@ -12191,6 +12335,8 @@ "resolved": { "type": "Identifier", "name": "Readable", + "decorators": [], + "optional": false, "range": [ 39, 47 @@ -12211,6 +12357,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 301, 312 @@ -12231,6 +12379,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12238,25 +12388,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12292,6 +12424,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -12375,6 +12527,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 315, 325 @@ -12395,6 +12549,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12402,25 +12558,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12448,11 +12586,31 @@ "loc": { "start": { "line": 4, - "column": 24 + "column": 24 + }, + "end": { + "line": 4, + "column": 32 + } + } + }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 }, "end": { "line": 4, - "column": 32 + "column": 24 } } }, @@ -12539,6 +12697,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 328, 344 @@ -12559,6 +12719,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12566,25 +12728,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12620,6 +12764,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -12733,6 +12897,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 240, 251 @@ -12753,6 +12919,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12760,25 +12928,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12814,6 +12964,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -12897,6 +13067,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 255, 265 @@ -12917,6 +13089,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12924,25 +13098,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12978,6 +13134,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -13061,6 +13237,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 269, 285 @@ -13081,6 +13259,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13088,25 +13268,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13142,6 +13304,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -13245,6 +13427,8 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", + "decorators": [], + "optional": false, "range": [ 240, 251 @@ -13265,6 +13449,8 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13272,25 +13458,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13326,6 +13494,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "decorators": [], + "optional": false, + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -13409,6 +13597,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", + "decorators": [], + "optional": false, "range": [ 255, 265 @@ -13429,6 +13619,8 @@ "resolved": { "type": "Identifier", "name": "maybeNull", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13436,25 +13628,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13490,6 +13664,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -13573,6 +13767,8 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", + "decorators": [], + "optional": false, "range": [ 269, 285 @@ -13593,6 +13789,8 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13600,25 +13798,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13654,6 +13834,26 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "decorators": [], + "optional": false, + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 diff --git a/tests/fixtures/parser/ast/ts-use01-output.json b/tests/fixtures/parser/ast/ts-use01-output.json index 965bef68..6ab29c98 100644 --- a/tests/fixtures/parser/ast/ts-use01-output.json +++ b/tests/fixtures/parser/ast/ts-use01-output.json @@ -100,9 +100,12 @@ "body": [ { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -129,6 +132,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -140,6 +145,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 54, 57 @@ -155,6 +162,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -357,9 +367,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -381,6 +394,8 @@ "callee": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -428,6 +443,7 @@ } } ], + "declare": false, "range": [ 147, 171 @@ -458,6 +474,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 185, 188 @@ -474,6 +492,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -529,6 +548,8 @@ "callee": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -587,6 +608,8 @@ "key": { "type": "Identifier", "name": "destroy", + "decorators": [], + "optional": false, "range": [ 215, 222 @@ -603,6 +626,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -706,11 +730,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -730,6 +757,8 @@ { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -737,6 +766,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -800,6 +831,8 @@ { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -807,6 +840,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -966,6 +1001,8 @@ "name": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 267, 275 @@ -1019,6 +1056,8 @@ "object": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 315, 320 @@ -1038,6 +1077,8 @@ "property": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 321, 324 @@ -1106,6 +1147,8 @@ { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 diff --git a/tests/fixtures/parser/ast/ts-use01-scope-output.json b/tests/fixtures/parser/ast/ts-use01-scope-output.json index b67cc15d..2549d985 100644 --- a/tests/fixtures/parser/ast/ts-use01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-use01-scope-output.json @@ -478,6 +478,8 @@ "identifier": { "type": "Identifier", "name": "Parameters", + "decorators": [], + "optional": false, "range": [ 341, 351 @@ -3856,6 +3858,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -8659,6 +8663,8 @@ { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -8681,6 +8687,8 @@ "name": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -8698,9 +8706,12 @@ }, "node": { "type": "TSTypeAliasDeclaration", + "declare": false, "id": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -8727,6 +8738,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8738,6 +8751,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 54, 57 @@ -8753,6 +8768,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8950,6 +8968,8 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -8970,6 +8990,8 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -8994,6 +9016,8 @@ { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9016,6 +9040,8 @@ "name": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9043,9 +9069,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -9067,6 +9096,8 @@ "callee": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -9114,6 +9145,7 @@ } } ], + "declare": false, "range": [ 147, 171 @@ -9144,6 +9176,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 185, 188 @@ -9160,6 +9194,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -9215,6 +9250,8 @@ "callee": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -9273,6 +9310,8 @@ "key": { "type": "Identifier", "name": "destroy", + "decorators": [], + "optional": false, "range": [ 215, 222 @@ -9289,6 +9328,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -9392,11 +9432,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9416,6 +9459,8 @@ { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9423,6 +9468,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -9486,6 +9533,8 @@ { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9493,6 +9542,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -9576,6 +9627,8 @@ "identifier": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 359, 367 @@ -9596,6 +9649,8 @@ "resolved": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9616,6 +9671,8 @@ "identifier": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 267, 275 @@ -9636,6 +9693,8 @@ "resolved": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9660,6 +9719,8 @@ "identifier": { "type": "Identifier", "name": "Parameters", + "decorators": [], + "optional": false, "range": [ 341, 351 @@ -9683,6 +9744,8 @@ "identifier": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 359, 367 @@ -9703,6 +9766,8 @@ "resolved": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9723,6 +9788,8 @@ "identifier": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 267, 275 @@ -9743,6 +9810,8 @@ "resolved": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -9775,6 +9844,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9786,6 +9857,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 54, 57 @@ -9801,6 +9874,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9903,6 +9979,8 @@ "name": { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9914,6 +9992,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 54, 57 @@ -9929,6 +10009,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10030,6 +10113,8 @@ { "type": "Identifier", "name": "p", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10041,6 +10126,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 54, 57 @@ -10056,6 +10143,9 @@ } } }, + "optional": false, + "readonly": false, + "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10228,6 +10318,8 @@ { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10235,6 +10327,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -10302,6 +10396,8 @@ "name": { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10309,6 +10405,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -10381,9 +10479,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -10405,6 +10506,8 @@ "callee": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -10452,6 +10555,7 @@ } } ], + "declare": false, "range": [ 147, 171 @@ -10482,6 +10586,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 185, 188 @@ -10498,6 +10604,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -10553,6 +10660,8 @@ "callee": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -10611,6 +10720,8 @@ "key": { "type": "Identifier", "name": "destroy", + "decorators": [], + "optional": false, "range": [ 215, 222 @@ -10627,6 +10738,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -10730,11 +10842,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -10754,6 +10869,8 @@ { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10761,6 +10878,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -10824,6 +10943,8 @@ { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10831,6 +10952,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -10917,6 +11040,8 @@ { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10924,6 +11049,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -10991,6 +11118,8 @@ "name": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10998,6 +11127,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -11070,9 +11201,12 @@ "declarations": [ { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11094,6 +11228,8 @@ "callee": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -11141,6 +11277,7 @@ } } ], + "declare": false, "range": [ 147, 171 @@ -11171,6 +11308,8 @@ "key": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 185, 188 @@ -11187,6 +11326,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -11242,6 +11382,8 @@ "callee": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -11300,6 +11442,8 @@ "key": { "type": "Identifier", "name": "destroy", + "decorators": [], + "optional": false, "range": [ 215, 222 @@ -11316,6 +11460,7 @@ } }, "method": false, + "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -11419,11 +11564,14 @@ } } }, + "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", + "decorators": [], + "optional": false, "range": [ 89, 97 @@ -11443,6 +11591,8 @@ { "type": "Identifier", "name": "_node", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11450,6 +11600,8 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -11513,6 +11665,8 @@ { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11520,6 +11674,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -11603,6 +11759,8 @@ "identifier": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -11623,6 +11781,8 @@ "resolved": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11630,6 +11790,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -11699,6 +11861,8 @@ { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11721,6 +11885,8 @@ "name": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11738,9 +11904,12 @@ }, "node": { "type": "VariableDeclarator", + "definite": false, "id": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11762,6 +11931,8 @@ "callee": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -11815,6 +11986,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11835,6 +12008,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11855,6 +12030,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -11875,6 +12052,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11899,6 +12078,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -11922,6 +12103,8 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -11942,6 +12125,8 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -11962,6 +12147,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -11982,6 +12169,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -12002,6 +12191,8 @@ "identifier": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "range": [ 162, 168 @@ -12022,6 +12213,8 @@ "resolved": { "type": "Identifier", "name": "params", + "decorators": [], + "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12029,6 +12222,8 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -12094,6 +12289,8 @@ "identifier": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 176, 182 @@ -12114,6 +12311,8 @@ "resolved": { "type": "Identifier", "name": "result", + "decorators": [], + "optional": false, "range": [ 153, 159 @@ -12145,6 +12344,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -12168,6 +12369,8 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 126, 139 @@ -12188,6 +12391,8 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", + "decorators": [], + "optional": false, "range": [ 26, 39 @@ -12220,6 +12425,8 @@ { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 @@ -12242,6 +12449,8 @@ "name": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 @@ -12271,6 +12480,8 @@ "object": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 315, 320 @@ -12290,6 +12501,8 @@ "property": { "type": "Identifier", "name": "foo", + "decorators": [], + "optional": false, "range": [ 321, 324 @@ -12358,6 +12571,8 @@ { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 @@ -12396,6 +12611,8 @@ "identifier": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 315, 320 @@ -12416,6 +12633,8 @@ "resolved": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 @@ -12440,6 +12659,8 @@ "identifier": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 315, 320 @@ -12460,6 +12681,8 @@ "resolved": { "type": "Identifier", "name": "param", + "decorators": [], + "optional": false, "range": [ 297, 302 @@ -12489,6 +12712,8 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", + "decorators": [], + "optional": false, "range": [ 105, 116 @@ -12512,6 +12737,8 @@ "identifier": { "type": "Identifier", "name": "Parameters", + "decorators": [], + "optional": false, "range": [ 341, 351 diff --git a/tsconfig.json b/tsconfig.json index 86011a28..dcea3353 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "strict": true, "lib": ["es2020", "DOM"], "module": "commonjs", + "moduleResolution": "Node16", "declaration": true, "noImplicitAny": true, "noImplicitReturns": true, From 3c5579b40faa6d03afb08d13a92fe14f7f1106f8 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Thu, 20 Jul 2023 09:28:04 +0900 Subject: [PATCH 2/5] Create lazy-cups-fry.md --- .changeset/lazy-cups-fry.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lazy-cups-fry.md diff --git a/.changeset/lazy-cups-fry.md b/.changeset/lazy-cups-fry.md new file mode 100644 index 00000000..72fc40f9 --- /dev/null +++ b/.changeset/lazy-cups-fry.md @@ -0,0 +1,5 @@ +--- +"svelte-eslint-parser": patch +--- + +fix: typescript-eslint v6 compatibility From f1d887e1d35a8d1fa09a372cc10ec25a22ac4abb Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Thu, 20 Jul 2023 09:40:32 +0900 Subject: [PATCH 3/5] fix test --- tests/fixtures/parser/ast/await04-output.json | 12 - .../parser/ast/await04-scope-output.json | 39 - .../07-transition-fn/05-ts-output.json | 99 -- .../07-transition-fn/05-ts-scope-output.json | 617 --------- .../fixtures/parser/ast/i18n-test-output.json | 6 - .../parser/ast/i18n-test-scope-output.json | 16 - .../issue325-eslint-plugin-svelte-output.json | 68 +- ...325-eslint-plugin-svelte-scope-output.json | 228 +-- .../issue338-eslint-plugin-svelte-output.json | 18 - ...338-eslint-plugin-svelte-scope-output.json | 72 - .../ast/reactive-with-var04-ts-output.json | 10 - .../reactive-with-var04-ts-scope-output.json | 27 - .../parser/ast/ts-$$props01-output.json | 4 - .../parser/ast/ts-$$props01-scope-output.json | 12 - .../parser/ast/ts-$$slots01-output.json | 2 - .../parser/ast/ts-$$slots01-scope-output.json | 6 - .../ast/ts-$$slots02-no-slot-output.json | 2 - .../ts-$$slots02-no-slot-scope-output.json | 6 - .../parser/ast/ts-$$slots03-named-output.json | 2 - .../ast/ts-$$slots03-named-scope-output.json | 6 - .../parser/ast/ts-$$slots04-named-output.json | 2 - .../ast/ts-$$slots04-named-scope-output.json | 6 - .../ast/ts-await-non-promise01-output.json | 24 - .../ts-await-non-promise01-scope-output.json | 87 -- .../fixtures/parser/ast/ts-each01-output.json | 40 - .../parser/ast/ts-each01-scope-output.json | 218 --- .../parser/ast/ts-event01-output.json | 8 - .../parser/ast/ts-event01-scope-output.json | 26 - .../parser/ast/ts-event02-output.json | 8 - .../parser/ast/ts-event02-scope-output.json | 26 - .../parser/ast/ts-event03-output.json | 36 +- .../parser/ast/ts-event03-scope-output.json | 89 +- .../parser/ast/ts-event04-output.json | 6 - .../parser/ast/ts-event04-scope-output.json | 18 - .../parser/ast/ts-event05-output.json | 10 - .../parser/ast/ts-event05-scope-output.json | 32 - .../parser/ast/ts-event06-output.json | 10 - .../parser/ast/ts-event06-scope-output.json | 32 - .../parser/ast/ts-issue226-output.json | 69 - .../parser/ast/ts-issue226-scope-output.json | 263 ---- .../parser/ast/ts-newline-output.json | 30 - .../parser/ast/ts-newline-scope-output.json | 90 -- .../parser/ast/ts-not-reactive01-output.json | 24 - .../ast/ts-not-reactive01-scope-output.json | 98 -- .../parser/ast/ts-promise01-output.json | 72 +- .../parser/ast/ts-promise01-scope-output.json | 504 +++---- .../parser/ast/ts-promise02-output.json | 112 -- .../parser/ast/ts-promise02-scope-output.json | 322 ----- .../parser/ast/ts-reactive01-output.json | 32 - .../ast/ts-reactive01-scope-output.json | 114 -- .../parser/ast/ts-reactive02-output.json | 56 - .../ast/ts-reactive02-scope-output.json | 204 --- .../parser/ast/ts-reactive03-output.json | 30 - .../ast/ts-reactive03-scope-output.json | 93 -- .../parser/ast/ts-reactive04-output.json | 24 - .../ast/ts-reactive04-scope-output.json | 74 - .../parser/ast/ts-reactive05-output.json | 40 - .../ast/ts-reactive05-scope-output.json | 154 -- .../parser/ast/ts-reactive06-output.json | 57 - .../ast/ts-reactive06-scope-output.json | 257 ---- .../parser/ast/ts-scope-issue01-output.json | 26 - .../ast/ts-scope-issue01-scope-output.json | 96 -- .../ast/ts-shorthand-attr01-output.json | 10 - .../ast/ts-shorthand-attr01-scope-output.json | 31 - .../parser/ast/ts-store01-output.json | 41 - .../parser/ast/ts-store01-scope-output.json | 171 --- .../parser/ast/ts-store02-output.json | 26 - .../parser/ast/ts-store02-scope-output.json | 88 -- .../parser/ast/ts-store03-output.json | 155 +-- .../parser/ast/ts-store03-scope-output.json | 1234 +++++++---------- .../fixtures/parser/ast/ts-use01-output.json | 43 - .../parser/ast/ts-use01-scope-output.json | 227 --- tests/src/parser/test-utils.ts | 18 +- 73 files changed, 839 insertions(+), 5976 deletions(-) diff --git a/tests/fixtures/parser/ast/await04-output.json b/tests/fixtures/parser/ast/await04-output.json index aaf344d0..35c3ec69 100644 --- a/tests/fixtures/parser/ast/await04-output.json +++ b/tests/fixtures/parser/ast/await04-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -134,8 +131,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 31, 38 @@ -155,8 +150,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 39, 46 @@ -219,7 +212,6 @@ } } ], - "declare": false, "range": [ 21, 49 @@ -292,8 +284,6 @@ "expression": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -352,8 +342,6 @@ "value": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 79, 80 diff --git a/tests/fixtures/parser/ast/await04-scope-output.json b/tests/fixtures/parser/ast/await04-scope-output.json index be1c7ce1..282f2707 100644 --- a/tests/fixtures/parser/ast/await04-scope-output.json +++ b/tests/fixtures/parser/ast/await04-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8684,8 +8677,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 31, 38 @@ -8705,8 +8696,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 39, 46 @@ -8775,8 +8764,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8797,8 +8784,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8819,8 +8804,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8841,8 +8824,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8867,8 +8848,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8889,8 +8868,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8911,8 +8888,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 31, 38 @@ -8936,8 +8911,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8958,8 +8931,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8994,8 +8965,6 @@ { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -9018,8 +8987,6 @@ "name": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -9041,8 +9008,6 @@ "value": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -9108,8 +9073,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 31, 38 @@ -9137,8 +9100,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 31, 38 diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json index 273722e1..4d782217 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-output.json @@ -106,12 +106,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -196,7 +193,6 @@ } } ], - "declare": false, "range": [ 27, 55 @@ -242,12 +238,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -276,8 +269,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -297,8 +288,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 140, 150 @@ -333,8 +322,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 151, 157 @@ -415,8 +402,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -436,8 +421,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 175, 185 @@ -507,8 +490,6 @@ "property": { "type": "Identifier", "name": "nodeType", - "decorators": [], - "optional": false, "range": [ 189, 197 @@ -546,8 +527,6 @@ "object": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -567,8 +546,6 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", - "decorators": [], - "optional": false, "range": [ 207, 216 @@ -645,7 +622,6 @@ } } ], - "declare": false, "range": [ 116, 221 @@ -704,8 +680,6 @@ "argument": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -759,12 +733,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -788,8 +759,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -809,8 +778,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 269, 280 @@ -872,7 +839,6 @@ } } ], - "declare": false, "range": [ 251, 282 @@ -894,12 +860,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -923,8 +886,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -944,8 +905,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 307, 313 @@ -980,8 +939,6 @@ "right": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -1028,7 +985,6 @@ } } ], - "declare": false, "range": [ 285, 322 @@ -1056,8 +1012,6 @@ "key": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -1074,13 +1028,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -1118,8 +1069,6 @@ "key": { "type": "Identifier", "name": "tick", - "decorators": [], - "optional": false, "range": [ 351, 355 @@ -1136,7 +1085,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -1150,12 +1098,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -1183,8 +1128,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -1204,8 +1147,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -1240,8 +1181,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -1322,7 +1261,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -1348,8 +1286,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -1369,8 +1305,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -1427,8 +1361,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -1451,8 +1383,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -1472,8 +1402,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -1573,8 +1501,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1627,8 +1553,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1756,14 +1680,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -1783,8 +1704,6 @@ { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -1792,8 +1711,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -1856,8 +1773,6 @@ }, { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -1866,8 +1781,6 @@ "key": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -1884,16 +1797,12 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", - "decorators": [], "left": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -1909,7 +1818,6 @@ } } }, - "optional": false, "right": { "type": "Literal", "raw": "50", @@ -2048,8 +1956,6 @@ "expression": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "range": [ 489, 496 @@ -2098,8 +2004,6 @@ "name": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 505, 515 @@ -2143,8 +2047,6 @@ "key": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 520, 525 @@ -2161,7 +2063,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", diff --git a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json index 0b3c503d..742ede7c 100644 --- a/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json +++ b/tests/fixtures/parser/ast/docs/template-syntax/11-element-directives/07-transition-fn/05-ts-scope-output.json @@ -3832,8 +3832,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -4854,8 +4852,6 @@ "identifier": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -8663,8 +8659,6 @@ { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8721,8 +8715,6 @@ "name": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8774,12 +8766,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8870,8 +8859,6 @@ "identifier": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8926,8 +8913,6 @@ "resolved": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8982,8 +8967,6 @@ "identifier": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9038,8 +9021,6 @@ "resolved": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9094,8 +9075,6 @@ "identifier": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "range": [ 489, 496 @@ -9116,8 +9095,6 @@ "resolved": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9176,8 +9153,6 @@ { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -9200,8 +9175,6 @@ "name": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -9229,12 +9202,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -9263,8 +9233,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -9284,8 +9252,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 140, 150 @@ -9320,8 +9286,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 151, 157 @@ -9402,8 +9366,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -9423,8 +9385,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 175, 185 @@ -9494,8 +9454,6 @@ "property": { "type": "Identifier", "name": "nodeType", - "decorators": [], - "optional": false, "range": [ 189, 197 @@ -9533,8 +9491,6 @@ "object": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -9554,8 +9510,6 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", - "decorators": [], - "optional": false, "range": [ 207, 216 @@ -9632,7 +9586,6 @@ } } ], - "declare": false, "range": [ 116, 221 @@ -9691,8 +9644,6 @@ "argument": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -9746,12 +9697,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -9775,8 +9723,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -9796,8 +9742,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 269, 280 @@ -9859,7 +9803,6 @@ } } ], - "declare": false, "range": [ 251, 282 @@ -9881,12 +9824,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -9910,8 +9850,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -9931,8 +9869,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 307, 313 @@ -9967,8 +9903,6 @@ "right": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -10015,7 +9949,6 @@ } } ], - "declare": false, "range": [ 285, 322 @@ -10043,8 +9976,6 @@ "key": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -10061,13 +9992,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -10105,8 +10033,6 @@ "key": { "type": "Identifier", "name": "tick", - "decorators": [], - "optional": false, "range": [ 351, 355 @@ -10123,7 +10049,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -10137,12 +10062,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -10170,8 +10092,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -10191,8 +10111,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -10227,8 +10145,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -10309,7 +10225,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -10335,8 +10250,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -10356,8 +10269,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -10414,8 +10325,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -10438,8 +10347,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -10459,8 +10366,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -10560,8 +10465,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10614,8 +10517,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10743,14 +10644,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -10770,8 +10668,6 @@ { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10779,8 +10675,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -10843,8 +10737,6 @@ }, { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -10853,8 +10745,6 @@ "key": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -10871,16 +10761,12 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", - "decorators": [], "left": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -10896,7 +10782,6 @@ } } }, - "optional": false, "right": { "type": "Literal", "raw": "50", @@ -10985,8 +10870,6 @@ "identifier": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 505, 515 @@ -11007,8 +10890,6 @@ "resolved": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -11033,8 +10914,6 @@ "identifier": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11089,8 +10968,6 @@ "resolved": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11145,8 +11022,6 @@ "identifier": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "range": [ 489, 496 @@ -11167,8 +11042,6 @@ "resolved": { "type": "Identifier", "name": "visible", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11236,8 +11109,6 @@ { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11245,8 +11116,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -11314,8 +11183,6 @@ "name": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11323,8 +11190,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -11397,12 +11262,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -11431,8 +11293,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -11452,8 +11312,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 140, 150 @@ -11488,8 +11346,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 151, 157 @@ -11570,8 +11426,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -11591,8 +11445,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 175, 185 @@ -11662,8 +11514,6 @@ "property": { "type": "Identifier", "name": "nodeType", - "decorators": [], - "optional": false, "range": [ 189, 197 @@ -11701,8 +11551,6 @@ "object": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -11722,8 +11570,6 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", - "decorators": [], - "optional": false, "range": [ 207, 216 @@ -11800,7 +11646,6 @@ } } ], - "declare": false, "range": [ 116, 221 @@ -11859,8 +11704,6 @@ "argument": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -11914,12 +11757,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -11943,8 +11783,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -11964,8 +11802,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 269, 280 @@ -12027,7 +11863,6 @@ } } ], - "declare": false, "range": [ 251, 282 @@ -12049,12 +11884,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -12078,8 +11910,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -12099,8 +11929,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 307, 313 @@ -12135,8 +11963,6 @@ "right": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -12183,7 +12009,6 @@ } } ], - "declare": false, "range": [ 285, 322 @@ -12211,8 +12036,6 @@ "key": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -12229,13 +12052,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -12273,8 +12093,6 @@ "key": { "type": "Identifier", "name": "tick", - "decorators": [], - "optional": false, "range": [ 351, 355 @@ -12291,7 +12109,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -12305,12 +12122,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -12338,8 +12152,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -12359,8 +12171,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -12395,8 +12205,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -12477,7 +12285,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -12503,8 +12310,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -12524,8 +12329,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -12582,8 +12385,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -12606,8 +12407,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -12627,8 +12426,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -12728,8 +12525,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12782,8 +12577,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12911,14 +12704,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -12938,8 +12728,6 @@ { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12947,8 +12735,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -13011,8 +12797,6 @@ }, { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -13021,8 +12805,6 @@ "key": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -13039,16 +12821,12 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", - "decorators": [], "left": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -13064,7 +12842,6 @@ } } }, - "optional": false, "right": { "type": "Literal", "raw": "50", @@ -13153,8 +12930,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -13175,8 +12950,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13184,8 +12957,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -13251,8 +13022,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -13273,8 +13042,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13282,8 +13049,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -13349,8 +13114,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -13371,8 +13134,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13380,8 +13141,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -13447,8 +13206,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -13469,8 +13226,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13478,8 +13233,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -13549,8 +13302,6 @@ { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -13573,8 +13324,6 @@ "name": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -13602,12 +13351,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -13636,8 +13382,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -13657,8 +13401,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 140, 150 @@ -13693,8 +13435,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 151, 157 @@ -13775,8 +13515,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -13796,8 +13534,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 175, 185 @@ -13867,8 +13603,6 @@ "property": { "type": "Identifier", "name": "nodeType", - "decorators": [], - "optional": false, "range": [ 189, 197 @@ -13906,8 +13640,6 @@ "object": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -13927,8 +13659,6 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", - "decorators": [], - "optional": false, "range": [ 207, 216 @@ -14005,7 +13735,6 @@ } } ], - "declare": false, "range": [ 116, 221 @@ -14064,8 +13793,6 @@ "argument": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -14119,12 +13846,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -14148,8 +13872,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -14169,8 +13891,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 269, 280 @@ -14232,7 +13952,6 @@ } } ], - "declare": false, "range": [ 251, 282 @@ -14254,12 +13973,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -14283,8 +13999,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -14304,8 +14018,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 307, 313 @@ -14340,8 +14052,6 @@ "right": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -14388,7 +14098,6 @@ } } ], - "declare": false, "range": [ 285, 322 @@ -14416,8 +14125,6 @@ "key": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -14434,13 +14141,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -14478,8 +14182,6 @@ "key": { "type": "Identifier", "name": "tick", - "decorators": [], - "optional": false, "range": [ 351, 355 @@ -14496,7 +14198,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -14510,12 +14211,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -14543,8 +14241,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -14564,8 +14260,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -14600,8 +14294,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -14682,7 +14374,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -14708,8 +14399,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -14729,8 +14418,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -14787,8 +14474,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -14811,8 +14496,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -14832,8 +14515,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -14933,8 +14614,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -14987,8 +14666,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -15116,14 +14793,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -15143,8 +14817,6 @@ { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -15152,8 +14824,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -15216,8 +14886,6 @@ }, { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -15226,8 +14894,6 @@ "key": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -15244,16 +14910,12 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "AssignmentPattern", - "decorators": [], "left": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -15269,7 +14931,6 @@ } } }, - "optional": false, "right": { "type": "Literal", "raw": "50", @@ -15358,8 +15019,6 @@ "identifier": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -15380,8 +15039,6 @@ "resolved": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -15402,8 +15059,6 @@ "identifier": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -15424,8 +15079,6 @@ "resolved": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -15450,8 +15103,6 @@ { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15474,8 +15125,6 @@ "name": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15493,12 +15142,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15527,8 +15173,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -15548,8 +15192,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 140, 150 @@ -15584,8 +15226,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 151, 157 @@ -15666,8 +15306,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -15687,8 +15325,6 @@ "property": { "type": "Identifier", "name": "childNodes", - "decorators": [], - "optional": false, "range": [ 175, 185 @@ -15758,8 +15394,6 @@ "property": { "type": "Identifier", "name": "nodeType", - "decorators": [], - "optional": false, "range": [ 189, 197 @@ -15797,8 +15431,6 @@ "object": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -15818,8 +15450,6 @@ "property": { "type": "Identifier", "name": "TEXT_NODE", - "decorators": [], - "optional": false, "range": [ 207, 216 @@ -15902,8 +15532,6 @@ "identifier": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15924,8 +15552,6 @@ "resolved": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15946,8 +15572,6 @@ "identifier": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -15968,8 +15592,6 @@ "resolved": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -15994,8 +15616,6 @@ { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16018,8 +15638,6 @@ "name": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16037,12 +15655,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16066,8 +15681,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -16087,8 +15700,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 269, 280 @@ -16156,8 +15767,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16178,8 +15787,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16200,8 +15807,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -16222,8 +15827,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16244,8 +15847,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -16266,8 +15867,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16288,8 +15887,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -16310,8 +15907,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -16336,8 +15931,6 @@ { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16360,8 +15953,6 @@ "name": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16379,12 +15970,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16408,8 +15996,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -16429,8 +16015,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 307, 313 @@ -16465,8 +16049,6 @@ "right": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -16519,8 +16101,6 @@ "identifier": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16541,8 +16121,6 @@ "resolved": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16563,8 +16141,6 @@ "identifier": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -16585,8 +16161,6 @@ "resolved": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -16611,8 +16185,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -16636,8 +16208,6 @@ "identifier": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -16658,8 +16228,6 @@ "resolved": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -16680,8 +16248,6 @@ "identifier": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -16702,8 +16268,6 @@ "resolved": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -16724,8 +16288,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 135, 139 @@ -16746,8 +16308,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16755,8 +16315,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -16822,8 +16380,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 170, 174 @@ -16844,8 +16400,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -16853,8 +16407,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -16920,8 +16472,6 @@ "identifier": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -16945,8 +16495,6 @@ "identifier": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 230, 235 @@ -16967,8 +16515,6 @@ "resolved": { "type": "Identifier", "name": "valid", - "decorators": [], - "optional": false, "range": [ 122, 127 @@ -16989,8 +16535,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -17011,8 +16555,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -17033,8 +16575,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 264, 268 @@ -17055,8 +16595,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17064,8 +16602,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -17131,8 +16667,6 @@ "identifier": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -17153,8 +16687,6 @@ "resolved": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -17175,8 +16707,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 302, 306 @@ -17197,8 +16727,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -17219,8 +16747,6 @@ "identifier": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 316, 321 @@ -17241,8 +16767,6 @@ "resolved": { "type": "Identifier", "name": "speed", - "decorators": [], - "optional": false, "range": [ 98, 103 @@ -17263,8 +16787,6 @@ "identifier": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 338, 346 @@ -17285,8 +16807,6 @@ "resolved": { "type": "Identifier", "name": "duration", - "decorators": [], - "optional": false, "range": [ 291, 299 @@ -17314,8 +16834,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17372,8 +16890,6 @@ "name": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17435,12 +16951,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -17468,8 +16981,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -17489,8 +17000,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -17525,8 +17034,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -17607,7 +17114,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -17633,8 +17139,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -17654,8 +17158,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -17712,8 +17214,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -17736,8 +17236,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -17757,8 +17255,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -17858,8 +17354,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17912,8 +17406,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -17986,8 +17478,6 @@ "identifier": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -18008,8 +17498,6 @@ "resolved": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18068,8 +17556,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18126,8 +17612,6 @@ "name": { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18189,12 +17673,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -18222,8 +17703,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -18243,8 +17722,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -18279,8 +17756,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -18361,7 +17836,6 @@ } } ], - "declare": false, "range": [ 388, 418 @@ -18387,8 +17861,6 @@ "object": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -18408,8 +17880,6 @@ "property": { "type": "Identifier", "name": "textContent", - "decorators": [], - "optional": false, "range": [ 428, 439 @@ -18466,8 +17936,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -18490,8 +17958,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -18511,8 +17977,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 447, 452 @@ -18612,8 +18076,6 @@ { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18666,8 +18128,6 @@ { "type": "Identifier", "name": "_u", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -18743,8 +18203,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -18767,8 +18225,6 @@ "name": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -18786,12 +18242,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -18819,8 +18272,6 @@ "object": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -18840,8 +18291,6 @@ "property": { "type": "Identifier", "name": "length", - "decorators": [], - "optional": false, "range": [ 406, 412 @@ -18876,8 +18325,6 @@ "right": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -18964,8 +18411,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -18986,8 +18431,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -19008,8 +18451,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -19030,8 +18471,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -19056,8 +18495,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -19078,8 +18515,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -19100,8 +18535,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -19122,8 +18555,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -19144,8 +18575,6 @@ "identifier": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "range": [ 415, 416 @@ -19166,8 +18595,6 @@ "resolved": { "type": "Identifier", "name": "t", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -19222,8 +18649,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -19244,8 +18669,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -19253,8 +18676,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -19320,8 +18741,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -19342,8 +18761,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -19364,8 +18781,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 456, 457 @@ -19386,8 +18801,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 394, 395 @@ -19411,8 +18824,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 401, 405 @@ -19433,8 +18844,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -19455,8 +18864,6 @@ "identifier": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "range": [ 423, 427 @@ -19477,8 +18884,6 @@ "resolved": { "type": "Identifier", "name": "node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -19486,8 +18891,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -19553,8 +18956,6 @@ "identifier": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 442, 446 @@ -19575,8 +18976,6 @@ "resolved": { "type": "Identifier", "name": "text", - "decorators": [], - "optional": false, "range": [ 257, 261 @@ -19601,8 +19000,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -19626,8 +19023,6 @@ "identifier": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 @@ -19657,8 +19052,6 @@ "identifier": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 505, 515 @@ -19679,8 +19072,6 @@ "resolved": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -19704,8 +19095,6 @@ "identifier": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 505, 515 @@ -19726,8 +19115,6 @@ "resolved": { "type": "Identifier", "name": "typewriter", - "decorators": [], - "optional": false, "range": [ 67, 77 @@ -19752,8 +19139,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 83, 94 @@ -19777,8 +19162,6 @@ "identifier": { "type": "Identifier", "name": "Node", - "decorators": [], - "optional": false, "range": [ 202, 206 diff --git a/tests/fixtures/parser/ast/i18n-test-output.json b/tests/fixtures/parser/ast/i18n-test-output.json index c73992ba..95245a12 100644 --- a/tests/fixtures/parser/ast/i18n-test-output.json +++ b/tests/fixtures/parser/ast/i18n-test-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -380,8 +376,6 @@ "callee": { "type": "Identifier", "name": "$_", - "decorators": [], - "optional": false, "range": [ 103, 105 diff --git a/tests/fixtures/parser/ast/i18n-test-scope-output.json b/tests/fixtures/parser/ast/i18n-test-scope-output.json index ce0fd89d..8785843d 100644 --- a/tests/fixtures/parser/ast/i18n-test-scope-output.json +++ b/tests/fixtures/parser/ast/i18n-test-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "$_", - "decorators": [], - "optional": false, "range": [ 103, 105 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 @@ -8765,8 +8753,6 @@ "identifier": { "type": "Identifier", "name": "$_", - "decorators": [], - "optional": false, "range": [ 103, 105 @@ -8787,8 +8773,6 @@ "resolved": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 32, 33 diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json index 250b2642..28b7ba5e 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json @@ -106,12 +106,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -214,7 +211,6 @@ } } ], - "declare": false, "range": [ 30, 60 @@ -256,12 +252,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -302,8 +295,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -323,8 +314,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -394,8 +383,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -431,8 +418,6 @@ "callee": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -501,8 +486,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -557,7 +540,25 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -593,26 +594,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, "range": [ 119, 134 @@ -674,7 +655,6 @@ } } ], - "declare": false, "range": [ 72, 224 @@ -767,8 +747,6 @@ "argument": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 242, 249 @@ -834,8 +812,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 300, 307 @@ -855,8 +831,6 @@ "callee": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 286, 299 @@ -931,8 +905,6 @@ "value": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -973,8 +945,6 @@ "expression": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 357, 363 diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json index eaf8fab7..e314018b 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json @@ -406,8 +406,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 119, 126 @@ -8637,8 +8635,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8731,8 +8727,6 @@ "name": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8820,12 +8814,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8934,8 +8925,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9026,8 +9015,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9118,8 +9105,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 242, 249 @@ -9140,8 +9125,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9232,8 +9215,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 300, 307 @@ -9254,8 +9235,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9350,8 +9329,6 @@ { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9374,8 +9351,6 @@ "name": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9393,12 +9368,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9439,8 +9411,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -9460,8 +9430,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -9531,8 +9499,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -9568,8 +9534,6 @@ "callee": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -9638,8 +9602,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9694,7 +9656,25 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9730,26 +9710,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, "range": [ 119, 134 @@ -9817,8 +9777,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9839,8 +9797,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9861,8 +9817,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9883,8 +9837,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9905,8 +9857,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 286, 299 @@ -9927,8 +9877,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9953,8 +9901,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9975,8 +9921,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -9997,8 +9941,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 242, 249 @@ -10019,8 +9961,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10118,8 +10058,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10176,8 +10114,6 @@ "name": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10252,8 +10188,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -10273,8 +10207,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -10344,8 +10276,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -10381,8 +10311,6 @@ "callee": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -10451,8 +10379,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10507,7 +10433,25 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10543,26 +10487,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, "range": [ 119, 134 @@ -10615,8 +10539,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -10637,8 +10559,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10697,8 +10617,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 119, 126 @@ -10722,8 +10640,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -10754,8 +10670,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -10778,8 +10692,6 @@ "name": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -10809,8 +10721,6 @@ { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -10830,8 +10740,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -10901,8 +10809,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -10941,8 +10847,6 @@ "identifier": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -10963,8 +10867,6 @@ "resolved": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -10989,8 +10891,6 @@ "identifier": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 188, 195 @@ -11011,8 +10911,6 @@ "resolved": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 167, 174 @@ -11033,8 +10931,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -11055,8 +10951,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11114,8 +11008,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 196, 203 @@ -11136,8 +11028,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11196,8 +11086,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 119, 126 @@ -11221,8 +11109,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -11259,8 +11145,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 286, 299 @@ -11281,8 +11165,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -11303,8 +11185,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 300, 307 @@ -11325,8 +11205,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11431,8 +11309,6 @@ { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -11455,8 +11331,6 @@ "name": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -11478,8 +11352,6 @@ "value": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -11520,8 +11392,6 @@ "expression": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 357, 363 @@ -11593,8 +11463,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 357, 363 @@ -11615,8 +11483,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -11641,8 +11507,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 357, 363 @@ -11663,8 +11527,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 340, 346 @@ -11691,8 +11553,6 @@ "identifier": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 286, 299 @@ -11713,8 +11573,6 @@ "resolved": { "type": "Identifier", "name": "formatMessage", - "decorators": [], - "optional": false, "range": [ 78, 91 @@ -11735,8 +11593,6 @@ "identifier": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 300, 307 @@ -11757,8 +11613,6 @@ "resolved": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11853,8 +11707,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 119, 126 @@ -11878,8 +11730,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 @@ -11907,8 +11757,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 159, 166 diff --git a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json index 5a7f7727..0caf4928 100644 --- a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json +++ b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-output.json @@ -106,12 +106,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -232,7 +229,6 @@ } } ], - "declare": false, "range": [ 28, 58 @@ -272,12 +268,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -302,8 +295,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 71, 78 @@ -323,8 +314,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 79, 86 @@ -387,7 +376,6 @@ } } ], - "declare": false, "range": [ 61, 89 @@ -460,8 +448,6 @@ "expression": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 109, 110 @@ -520,8 +506,6 @@ "value": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 119, 120 @@ -564,8 +548,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 129, 132 diff --git a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json index 5abf1e53..1bcaa1c9 100644 --- a/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json +++ b/tests/fixtures/parser/ast/issue338-eslint-plugin-svelte-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8705,8 +8703,6 @@ "name": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8794,12 +8790,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8926,8 +8919,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9018,8 +9009,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9110,8 +9099,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9202,8 +9189,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9294,8 +9279,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 129, 132 @@ -9316,8 +9299,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9412,8 +9393,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9436,8 +9415,6 @@ "name": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9455,12 +9432,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9485,8 +9459,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 71, 78 @@ -9506,8 +9478,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 79, 86 @@ -9576,8 +9546,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9598,8 +9566,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9620,8 +9586,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 109, 110 @@ -9642,8 +9606,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9668,8 +9630,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9760,8 +9720,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9852,8 +9810,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9874,8 +9830,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9896,8 +9850,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 71, 78 @@ -9921,8 +9873,6 @@ "identifier": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 109, 110 @@ -9943,8 +9893,6 @@ "resolved": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "range": [ 67, 68 @@ -9979,8 +9927,6 @@ { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 119, 120 @@ -10003,8 +9949,6 @@ "name": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 119, 120 @@ -10026,8 +9970,6 @@ "value": { "type": "Identifier", "name": "v", - "decorators": [], - "optional": false, "range": [ 119, 120 @@ -10070,8 +10012,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 129, 132 @@ -10201,8 +10141,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 129, 132 @@ -10223,8 +10161,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10333,8 +10269,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 129, 132 @@ -10355,8 +10289,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10451,8 +10383,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 71, 78 @@ -10480,8 +10410,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 71, 78 diff --git a/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json b/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json index a623d0b5..d23dfd54 100644 --- a/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json +++ b/tests/fixtures/parser/ast/reactive-with-var04-ts-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -176,7 +173,6 @@ } } ], - "declare": false, "range": [ 23, 38 @@ -197,8 +193,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 43, 44 @@ -224,8 +218,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 56, 59 @@ -379,8 +371,6 @@ "expression": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 82, 85 diff --git a/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json b/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json index 1fb1a6ed..91f04c6c 100644 --- a/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json +++ b/tests/fixtures/parser/ast/reactive-with-var04-ts-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8669,8 +8667,6 @@ "name": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8722,12 +8718,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8800,8 +8793,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 56, 59 @@ -8822,8 +8813,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8878,8 +8867,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 82, 85 @@ -8900,8 +8887,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8960,8 +8945,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 82, 85 @@ -8982,8 +8965,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9044,8 +9025,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 56, 59 @@ -9066,8 +9045,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9125,8 +9102,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 56, 59 @@ -9147,8 +9122,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-$$props01-output.json b/tests/fixtures/parser/ast/ts-$$props01-output.json index b8f9492d..958c6abc 100644 --- a/tests/fixtures/parser/ast/ts-$$props01-output.json +++ b/tests/fixtures/parser/ast/ts-$$props01-output.json @@ -103,8 +103,6 @@ "expression": { "type": "Identifier", "name": "$$props", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -140,8 +138,6 @@ "expression": { "type": "Identifier", "name": "$$restProps", - "decorators": [], - "optional": false, "range": [ 35, 46 diff --git a/tests/fixtures/parser/ast/ts-$$props01-scope-output.json b/tests/fixtures/parser/ast/ts-$$props01-scope-output.json index dbbd579f..68e2d37a 100644 --- a/tests/fixtures/parser/ast/ts-$$props01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$props01-scope-output.json @@ -8596,8 +8596,6 @@ "identifier": { "type": "Identifier", "name": "$$props", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8628,8 +8626,6 @@ "identifier": { "type": "Identifier", "name": "$$restProps", - "decorators": [], - "optional": false, "range": [ 35, 46 @@ -8662,8 +8658,6 @@ "identifier": { "type": "Identifier", "name": "$$props", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8687,8 +8681,6 @@ "identifier": { "type": "Identifier", "name": "$$restProps", - "decorators": [], - "optional": false, "range": [ 35, 46 @@ -8715,8 +8707,6 @@ "identifier": { "type": "Identifier", "name": "$$props", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8740,8 +8730,6 @@ "identifier": { "type": "Identifier", "name": "$$restProps", - "decorators": [], - "optional": false, "range": [ 35, 46 diff --git a/tests/fixtures/parser/ast/ts-$$slots01-output.json b/tests/fixtures/parser/ast/ts-$$slots01-output.json index c42a0955..5689b674 100644 --- a/tests/fixtures/parser/ast/ts-$$slots01-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots01-output.json @@ -103,8 +103,6 @@ "expression": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json index 416c2aa5..d84f16d2 100644 --- a/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots01-scope-output.json @@ -8590,8 +8590,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8636,8 +8634,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8664,8 +8660,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json index f41a83a8..24dbb472 100644 --- a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-output.json @@ -103,8 +103,6 @@ "expression": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json index 416c2aa5..d84f16d2 100644 --- a/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots02-no-slot-scope-output.json @@ -8590,8 +8590,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8636,8 +8634,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8664,8 +8660,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots03-named-output.json b/tests/fixtures/parser/ast/ts-$$slots03-named-output.json index f66b2fd2..a47054d7 100644 --- a/tests/fixtures/parser/ast/ts-$$slots03-named-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots03-named-output.json @@ -103,8 +103,6 @@ "expression": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json index 416c2aa5..d84f16d2 100644 --- a/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots03-named-scope-output.json @@ -8590,8 +8590,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8636,8 +8634,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8664,8 +8660,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots04-named-output.json b/tests/fixtures/parser/ast/ts-$$slots04-named-output.json index f1d92e50..270a43df 100644 --- a/tests/fixtures/parser/ast/ts-$$slots04-named-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots04-named-output.json @@ -103,8 +103,6 @@ "expression": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json b/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json index 416c2aa5..d84f16d2 100644 --- a/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json +++ b/tests/fixtures/parser/ast/ts-$$slots04-named-scope-output.json @@ -8590,8 +8590,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8636,8 +8634,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 @@ -8664,8 +8660,6 @@ "identifier": { "type": "Identifier", "name": "$$slots", - "decorators": [], - "optional": false, "range": [ 23, 30 diff --git a/tests/fixtures/parser/ast/ts-await-non-promise01-output.json b/tests/fixtures/parser/ast/ts-await-non-promise01-output.json index 63b6a34e..1600d867 100644 --- a/tests/fixtures/parser/ast/ts-await-non-promise01-output.json +++ b/tests/fixtures/parser/ast/ts-await-non-promise01-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -151,8 +148,6 @@ "typeName": { "type": "Identifier", "name": "const", - "decorators": [], - "optional": false, "range": [ 41, 46 @@ -214,7 +209,6 @@ } } ], - "declare": false, "range": [ 20, 46 @@ -310,8 +304,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -411,8 +403,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 103, 109 @@ -550,8 +540,6 @@ "expression": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 133, 136 @@ -574,8 +562,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -675,8 +661,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 164, 165 @@ -840,8 +824,6 @@ "object": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 189, 192 @@ -861,8 +843,6 @@ "property": { "type": "Identifier", "name": "slice", - "decorators": [], - "optional": false, "range": [ 193, 198 @@ -916,8 +896,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -1017,8 +995,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 229, 230 diff --git a/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json b/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json index 07a21b0c..a3725c01 100644 --- a/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-await-non-promise01-scope-output.json @@ -8584,8 +8584,6 @@ "identifier": { "type": "Identifier", "name": "const", - "decorators": [], - "optional": false, "range": [ 41, 46 @@ -8637,8 +8635,6 @@ { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8661,8 +8657,6 @@ "name": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8680,12 +8674,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8727,8 +8718,6 @@ "typeName": { "type": "Identifier", "name": "const", - "decorators": [], - "optional": false, "range": [ 41, 46 @@ -8796,8 +8785,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8818,8 +8805,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8840,8 +8825,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 133, 136 @@ -8862,8 +8845,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8884,8 +8865,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 189, 192 @@ -8906,8 +8885,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8932,8 +8909,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8954,8 +8929,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8976,8 +8949,6 @@ "identifier": { "type": "Identifier", "name": "const", - "decorators": [], - "optional": false, "range": [ 41, 46 @@ -9001,8 +8972,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 133, 136 @@ -9023,8 +8992,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -9045,8 +9012,6 @@ "identifier": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 189, 192 @@ -9067,8 +9032,6 @@ "resolved": { "type": "Identifier", "name": "str", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -9096,8 +9059,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -9120,8 +9081,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -9143,8 +9102,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -9244,8 +9201,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 103, 109 @@ -9350,8 +9305,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 103, 109 @@ -9372,8 +9325,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -9398,8 +9349,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 103, 109 @@ -9420,8 +9369,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 76, 82 @@ -9451,8 +9398,6 @@ { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -9475,8 +9420,6 @@ "name": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -9498,8 +9441,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -9599,8 +9540,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 164, 165 @@ -9705,8 +9644,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 164, 165 @@ -9727,8 +9664,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -9753,8 +9688,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 164, 165 @@ -9775,8 +9708,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 142, 143 @@ -9806,8 +9737,6 @@ { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -9830,8 +9759,6 @@ "name": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -9853,8 +9780,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -9954,8 +9879,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 229, 230 @@ -10060,8 +9983,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 229, 230 @@ -10082,8 +10003,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -10108,8 +10027,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 229, 230 @@ -10130,8 +10047,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 207, 208 @@ -10158,8 +10073,6 @@ "identifier": { "type": "Identifier", "name": "const", - "decorators": [], - "optional": false, "range": [ 41, 46 diff --git a/tests/fixtures/parser/ast/ts-each01-output.json b/tests/fixtures/parser/ast/ts-each01-output.json index 34fe1d3d..01290af5 100644 --- a/tests/fixtures/parser/ast/ts-each01-output.json +++ b/tests/fixtures/parser/ast/ts-each01-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -210,7 +207,6 @@ } } ], - "declare": false, "range": [ 23, 48 @@ -232,12 +228,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -251,8 +244,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -268,9 +259,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -326,8 +314,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -343,9 +329,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -490,7 +473,6 @@ } } ], - "declare": false, "range": [ 53, 97 @@ -562,8 +544,6 @@ "expression": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "range": [ 115, 119 @@ -582,8 +562,6 @@ "context": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -608,8 +586,6 @@ "expression": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 131, 132 @@ -680,8 +656,6 @@ "expression": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "range": [ 149, 154 @@ -700,8 +674,6 @@ "context": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -720,8 +692,6 @@ "index": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -743,8 +713,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -764,8 +732,6 @@ "property": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 176, 178 @@ -803,8 +769,6 @@ "expression": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 186, 191 @@ -844,8 +808,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 193, 197 @@ -865,8 +827,6 @@ "property": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 198, 202 diff --git a/tests/fixtures/parser/ast/ts-each01-scope-output.json b/tests/fixtures/parser/ast/ts-each01-scope-output.json index 56225565..a61b17f0 100644 --- a/tests/fixtures/parser/ast/ts-each01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-each01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8686,8 +8684,6 @@ "name": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8756,12 +8752,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8868,8 +8861,6 @@ "identifier": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8941,8 +8932,6 @@ "resolved": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9014,8 +9003,6 @@ "identifier": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "range": [ 115, 119 @@ -9036,8 +9023,6 @@ "resolved": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9113,8 +9098,6 @@ { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9128,8 +9111,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -9145,9 +9126,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9203,8 +9181,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9220,9 +9196,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9340,8 +9313,6 @@ "name": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9355,8 +9326,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -9372,9 +9341,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9430,8 +9396,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9447,9 +9411,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9562,12 +9523,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9581,8 +9539,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -9598,9 +9554,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9656,8 +9609,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9673,9 +9624,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9826,8 +9774,6 @@ "identifier": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9841,8 +9787,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -9858,9 +9802,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9916,8 +9857,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9933,9 +9872,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10051,8 +9987,6 @@ "resolved": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10066,8 +10000,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -10083,9 +10015,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10141,8 +10070,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -10158,9 +10085,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10276,8 +10200,6 @@ "identifier": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "range": [ 149, 154 @@ -10298,8 +10220,6 @@ "resolved": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10313,8 +10233,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -10330,9 +10248,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10388,8 +10303,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -10405,9 +10318,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10527,8 +10437,6 @@ "identifier": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10600,8 +10508,6 @@ "resolved": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10673,8 +10579,6 @@ "identifier": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10688,8 +10592,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -10705,9 +10607,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10763,8 +10662,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -10780,9 +10677,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10898,8 +10792,6 @@ "resolved": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10913,8 +10805,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -10930,9 +10820,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10988,8 +10875,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -11005,9 +10890,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11123,8 +11005,6 @@ "identifier": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "range": [ 115, 119 @@ -11145,8 +11025,6 @@ "resolved": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11218,8 +11096,6 @@ "identifier": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "range": [ 149, 154 @@ -11240,8 +11116,6 @@ "resolved": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11255,8 +11129,6 @@ "key": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 67, 69 @@ -11272,9 +11144,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11330,8 +11199,6 @@ "key": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -11347,9 +11214,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11472,8 +11336,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -11496,8 +11358,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -11518,8 +11378,6 @@ "expression": { "type": "Identifier", "name": "list", - "decorators": [], - "optional": false, "range": [ 115, 119 @@ -11538,8 +11396,6 @@ "context": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -11564,8 +11420,6 @@ "expression": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 131, 132 @@ -11620,8 +11474,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 131, 132 @@ -11642,8 +11494,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -11668,8 +11518,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 131, 132 @@ -11690,8 +11538,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 123, 124 @@ -11721,8 +11567,6 @@ { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -11745,8 +11589,6 @@ "name": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -11767,8 +11609,6 @@ "expression": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "range": [ 149, 154 @@ -11787,8 +11627,6 @@ "context": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -11807,8 +11645,6 @@ "index": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -11830,8 +11666,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -11851,8 +11685,6 @@ "property": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 176, 178 @@ -11890,8 +11722,6 @@ "expression": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 186, 191 @@ -11931,8 +11761,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 193, 197 @@ -11952,8 +11780,6 @@ "property": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 198, 202 @@ -12023,8 +11849,6 @@ "identifier": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -12045,8 +11869,6 @@ "resolved": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -12067,8 +11889,6 @@ "identifier": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 193, 197 @@ -12089,8 +11909,6 @@ "resolved": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -12115,8 +11933,6 @@ { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -12139,8 +11955,6 @@ "name": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -12161,8 +11975,6 @@ "expression": { "type": "Identifier", "name": "items", - "decorators": [], - "optional": false, "range": [ 149, 154 @@ -12181,8 +11993,6 @@ "context": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -12201,8 +12011,6 @@ "index": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -12224,8 +12032,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -12245,8 +12051,6 @@ "property": { "type": "Identifier", "name": "id", - "decorators": [], - "optional": false, "range": [ 176, 178 @@ -12284,8 +12088,6 @@ "expression": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 186, 191 @@ -12325,8 +12127,6 @@ "object": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 193, 197 @@ -12346,8 +12146,6 @@ "property": { "type": "Identifier", "name": "name", - "decorators": [], - "optional": false, "range": [ 198, 202 @@ -12417,8 +12215,6 @@ "identifier": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 186, 191 @@ -12439,8 +12235,6 @@ "resolved": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -12465,8 +12259,6 @@ "identifier": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -12487,8 +12279,6 @@ "resolved": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 @@ -12509,8 +12299,6 @@ "identifier": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 186, 191 @@ -12531,8 +12319,6 @@ "resolved": { "type": "Identifier", "name": "index", - "decorators": [], - "optional": false, "range": [ 164, 169 @@ -12553,8 +12339,6 @@ "identifier": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 193, 197 @@ -12575,8 +12359,6 @@ "resolved": { "type": "Identifier", "name": "item", - "decorators": [], - "optional": false, "range": [ 158, 162 diff --git a/tests/fixtures/parser/ast/ts-event01-output.json b/tests/fixtures/parser/ast/ts-event01-output.json index eac6e02c..419c27cf 100644 --- a/tests/fixtures/parser/ast/ts-event01-output.json +++ b/tests/fixtures/parser/ast/ts-event01-output.json @@ -126,8 +126,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -316,8 +314,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 87, 88 @@ -438,8 +434,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 106, 115 @@ -525,8 +519,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 127, 128 diff --git a/tests/fixtures/parser/ast/ts-event01-scope-output.json b/tests/fixtures/parser/ast/ts-event01-scope-output.json index 4a4c1d3a..e403fef7 100644 --- a/tests/fixtures/parser/ast/ts-event01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8657,8 +8653,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8696,8 +8690,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 106, 115 @@ -8718,8 +8710,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8744,8 +8734,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 106, 115 @@ -8766,8 +8754,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8795,8 +8781,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 87, 88 @@ -8819,8 +8803,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 87, 88 @@ -8864,8 +8846,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 87, 88 @@ -8915,8 +8895,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 127, 128 @@ -8939,8 +8917,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 127, 128 @@ -8984,8 +8960,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 127, 128 diff --git a/tests/fixtures/parser/ast/ts-event02-output.json b/tests/fixtures/parser/ast/ts-event02-output.json index 5766dc7e..e19e0bea 100644 --- a/tests/fixtures/parser/ast/ts-event02-output.json +++ b/tests/fixtures/parser/ast/ts-event02-output.json @@ -126,8 +126,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -316,8 +314,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -438,8 +434,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 114, 123 @@ -525,8 +519,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 135, 136 diff --git a/tests/fixtures/parser/ast/ts-event02-scope-output.json b/tests/fixtures/parser/ast/ts-event02-scope-output.json index 19a3218f..4aa33f0c 100644 --- a/tests/fixtures/parser/ast/ts-event02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event02-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -8657,8 +8653,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -8696,8 +8690,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 114, 123 @@ -8718,8 +8710,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -8744,8 +8734,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 114, 123 @@ -8766,8 +8754,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 38, 47 @@ -8795,8 +8781,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -8819,8 +8803,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -8864,8 +8846,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -8915,8 +8895,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 135, 136 @@ -8939,8 +8917,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 135, 136 @@ -8984,8 +8960,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 135, 136 diff --git a/tests/fixtures/parser/ast/ts-event03-output.json b/tests/fixtures/parser/ast/ts-event03-output.json index 62cc63c8..26df8365 100644 --- a/tests/fixtures/parser/ast/ts-event03-output.json +++ b/tests/fixtures/parser/ast/ts-event03-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -201,12 +197,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -228,8 +221,6 @@ "callee": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 85, 106 @@ -246,7 +237,7 @@ } }, "optional": false, - "typeArguments": { + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -258,8 +249,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 117, 120 @@ -275,9 +264,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -333,8 +319,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -350,9 +334,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -465,7 +446,6 @@ } } ], - "declare": false, "range": [ 72, 158 @@ -528,8 +508,6 @@ "callee": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 163, 167 @@ -704,8 +682,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 217, 218 @@ -725,8 +701,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 219, 232 @@ -795,8 +769,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -988,8 +960,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 275, 276 @@ -1009,8 +979,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 277, 290 @@ -1079,8 +1047,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 diff --git a/tests/fixtures/parser/ast/ts-event03-scope-output.json b/tests/fixtures/parser/ast/ts-event03-scope-output.json index 08e065bd..f1647e70 100644 --- a/tests/fixtures/parser/ast/ts-event03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event03-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 85, 106 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -8765,8 +8753,6 @@ { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -8789,8 +8775,6 @@ "name": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -8808,12 +8792,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -8835,8 +8816,6 @@ "callee": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 85, 106 @@ -8853,7 +8832,7 @@ } }, "optional": false, - "typeArguments": { + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8865,8 +8844,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 117, 120 @@ -8882,9 +8859,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8940,8 +8914,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -8957,9 +8929,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9078,8 +9047,6 @@ "identifier": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9100,8 +9067,6 @@ "resolved": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9122,8 +9087,6 @@ "identifier": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 163, 167 @@ -9144,8 +9107,6 @@ "resolved": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9170,8 +9131,6 @@ "identifier": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9192,8 +9151,6 @@ "resolved": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9214,8 +9171,6 @@ "identifier": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 85, 106 @@ -9236,8 +9191,6 @@ "resolved": { "type": "Identifier", "name": "createEventDispatcher", - "decorators": [], - "optional": false, "range": [ 31, 52 @@ -9258,8 +9211,6 @@ "identifier": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 163, 167 @@ -9280,8 +9231,6 @@ "resolved": { "type": "Identifier", "name": "emit", - "decorators": [], - "optional": false, "range": [ 78, 82 @@ -9309,8 +9258,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -9333,8 +9280,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -9364,8 +9309,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 217, 218 @@ -9385,8 +9328,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 219, 232 @@ -9455,8 +9396,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -9495,8 +9434,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 217, 218 @@ -9517,8 +9454,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -9543,8 +9478,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 217, 218 @@ -9565,8 +9498,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 208, 209 @@ -9596,8 +9527,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 @@ -9620,8 +9549,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 @@ -9651,8 +9578,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 275, 276 @@ -9672,8 +9597,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 277, 290 @@ -9742,8 +9665,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 @@ -9782,8 +9703,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 275, 276 @@ -9804,8 +9723,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 @@ -9830,8 +9747,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 275, 276 @@ -9852,8 +9767,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 266, 267 diff --git a/tests/fixtures/parser/ast/ts-event04-output.json b/tests/fixtures/parser/ast/ts-event04-output.json index 475a9bc2..3f9ce536 100644 --- a/tests/fixtures/parser/ast/ts-event04-output.json +++ b/tests/fixtures/parser/ast/ts-event04-output.json @@ -225,8 +225,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 60, 61 @@ -246,8 +244,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 62, 75 @@ -316,8 +312,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 diff --git a/tests/fixtures/parser/ast/ts-event04-scope-output.json b/tests/fixtures/parser/ast/ts-event04-scope-output.json index f0c05b06..74124279 100644 --- a/tests/fixtures/parser/ast/ts-event04-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event04-scope-output.json @@ -8616,8 +8616,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -8640,8 +8638,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -8671,8 +8667,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 60, 61 @@ -8692,8 +8686,6 @@ "property": { "type": "Identifier", "name": "currentTarget", - "decorators": [], - "optional": false, "range": [ 62, 75 @@ -8762,8 +8754,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -8802,8 +8792,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 60, 61 @@ -8824,8 +8812,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -8850,8 +8836,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 60, 61 @@ -8872,8 +8856,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 51, 52 diff --git a/tests/fixtures/parser/ast/ts-event05-output.json b/tests/fixtures/parser/ast/ts-event05-output.json index 81b8850a..9a13d315 100644 --- a/tests/fixtures/parser/ast/ts-event05-output.json +++ b/tests/fixtures/parser/ast/ts-event05-output.json @@ -126,8 +126,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -231,8 +229,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -304,8 +300,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 347, 348 @@ -325,8 +319,6 @@ "property": { "type": "Identifier", "name": "detail", - "decorators": [], - "optional": false, "range": [ 349, 355 @@ -395,8 +387,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event05-scope-output.json b/tests/fixtures/parser/ast/ts-event05-scope-output.json index 08c40326..8e7f7f4c 100644 --- a/tests/fixtures/parser/ast/ts-event05-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event05-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8657,8 +8653,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8696,8 +8690,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -8718,8 +8710,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8744,8 +8734,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -8766,8 +8754,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8795,8 +8781,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8819,8 +8803,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8850,8 +8832,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 347, 348 @@ -8871,8 +8851,6 @@ "property": { "type": "Identifier", "name": "detail", - "decorators": [], - "optional": false, "range": [ 349, 355 @@ -8941,8 +8919,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8981,8 +8957,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 347, 348 @@ -9003,8 +8977,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -9029,8 +9001,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 347, 348 @@ -9051,8 +9021,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event06-output.json b/tests/fixtures/parser/ast/ts-event06-output.json index a803fcc7..ca339e8c 100644 --- a/tests/fixtures/parser/ast/ts-event06-output.json +++ b/tests/fixtures/parser/ast/ts-event06-output.json @@ -126,8 +126,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -231,8 +229,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -304,8 +300,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 140, 141 @@ -325,8 +319,6 @@ "property": { "type": "Identifier", "name": "detail", - "decorators": [], - "optional": false, "range": [ 142, 148 @@ -395,8 +387,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-event06-scope-output.json b/tests/fixtures/parser/ast/ts-event06-scope-output.json index e14c03d7..7ab94575 100644 --- a/tests/fixtures/parser/ast/ts-event06-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event06-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8657,8 +8653,6 @@ "local": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8696,8 +8690,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -8718,8 +8710,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8744,8 +8734,6 @@ "identifier": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 86, 95 @@ -8766,8 +8754,6 @@ "resolved": { "type": "Identifier", "name": "Component", - "decorators": [], - "optional": false, "range": [ 30, 39 @@ -8795,8 +8781,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8819,8 +8803,6 @@ "name": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8850,8 +8832,6 @@ "object": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 140, 141 @@ -8871,8 +8851,6 @@ "property": { "type": "Identifier", "name": "detail", - "decorators": [], - "optional": false, "range": [ 142, 148 @@ -8941,8 +8919,6 @@ { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -8981,8 +8957,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 140, 141 @@ -9003,8 +8977,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 @@ -9029,8 +9001,6 @@ "identifier": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 140, 141 @@ -9051,8 +9021,6 @@ "resolved": { "type": "Identifier", "name": "e", - "decorators": [], - "optional": false, "range": [ 105, 106 diff --git a/tests/fixtures/parser/ast/ts-issue226-output.json b/tests/fixtures/parser/ast/ts-issue226-output.json index 21937223..918e5895 100644 --- a/tests/fixtures/parser/ast/ts-issue226-output.json +++ b/tests/fixtures/parser/ast/ts-issue226-output.json @@ -100,12 +100,9 @@ "body": [ { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -130,8 +127,6 @@ "key": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 42, 50 @@ -147,9 +142,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -236,12 +228,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -252,8 +241,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -382,7 +369,6 @@ } } ], - "declare": false, "range": [ 62, 95 @@ -404,12 +390,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -437,8 +420,6 @@ "object": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 139, 140 @@ -458,8 +439,6 @@ "property": { "type": "Identifier", "name": "toString", - "decorators": [], - "optional": false, "range": [ 141, 149 @@ -513,8 +492,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -525,8 +502,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -652,7 +627,6 @@ } } ], - "declare": false, "range": [ 97, 151 @@ -679,8 +653,6 @@ "object": { "type": "Identifier", "name": "console", - "decorators": [], - "optional": false, "range": [ 216, 223 @@ -700,8 +672,6 @@ "property": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 224, 229 @@ -752,8 +722,6 @@ "left": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 184, 188 @@ -780,8 +748,6 @@ "key": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 193, 201 @@ -798,7 +764,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -945,8 +910,6 @@ "callee": { "type": "Identifier", "name": "fetch", - "decorators": [], - "optional": false, "range": [ 153, 158 @@ -982,8 +945,6 @@ "property": { "type": "Identifier", "name": "then", - "decorators": [], - "optional": false, "range": [ 171, 175 @@ -1034,8 +995,6 @@ "property": { "type": "Identifier", "name": "catch", - "decorators": [], - "optional": false, "range": [ 210, 215 @@ -1102,8 +1061,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 232, 233 @@ -1126,8 +1083,6 @@ "left": { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -1174,8 +1129,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 277, 281 @@ -1195,8 +1148,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 282, 290 @@ -1231,8 +1182,6 @@ "callee": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 265, 276 @@ -1272,8 +1221,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 248, 252 @@ -1293,8 +1240,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 254, 262 @@ -1406,12 +1351,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -1460,8 +1402,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 352, 356 @@ -1481,8 +1421,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 357, 365 @@ -1517,8 +1455,6 @@ "callee": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 340, 351 @@ -1558,8 +1494,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 323, 327 @@ -1579,8 +1513,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 329, 337 @@ -1676,7 +1608,6 @@ } } ], - "declare": false, "range": [ 300, 374 diff --git a/tests/fixtures/parser/ast/ts-issue226-scope-output.json b/tests/fixtures/parser/ast/ts-issue226-scope-output.json index cb090894..7b05ad74 100644 --- a/tests/fixtures/parser/ast/ts-issue226-scope-output.json +++ b/tests/fixtures/parser/ast/ts-issue226-scope-output.json @@ -238,8 +238,6 @@ "identifier": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -8637,8 +8635,6 @@ { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -8661,8 +8657,6 @@ "name": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -8680,12 +8674,9 @@ }, "node": { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -8710,8 +8701,6 @@ "key": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 42, 50 @@ -8727,9 +8716,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8817,8 +8803,6 @@ "identifier": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -8839,8 +8823,6 @@ "resolved": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -8865,8 +8847,6 @@ { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8877,8 +8857,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -8979,8 +8957,6 @@ "name": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8991,8 +8967,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9088,12 +9062,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9104,8 +9075,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9240,8 +9209,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9252,8 +9219,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9352,8 +9317,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9364,8 +9327,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9464,8 +9425,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 184, 188 @@ -9486,8 +9445,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9498,8 +9455,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9598,8 +9553,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 248, 252 @@ -9620,8 +9573,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9632,8 +9583,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9732,8 +9681,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 277, 281 @@ -9754,8 +9701,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9766,8 +9711,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -9866,8 +9809,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 323, 327 @@ -9888,8 +9829,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9900,8 +9839,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -10000,8 +9937,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 352, 356 @@ -10022,8 +9957,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10034,8 +9967,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -10138,8 +10069,6 @@ { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10162,8 +10091,6 @@ "name": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10181,12 +10108,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10214,8 +10138,6 @@ "object": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 139, 140 @@ -10235,8 +10157,6 @@ "property": { "type": "Identifier", "name": "toString", - "decorators": [], - "optional": false, "range": [ 141, 149 @@ -10290,8 +10210,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10302,8 +10220,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -10435,8 +10351,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10457,8 +10371,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10479,8 +10391,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 265, 276 @@ -10501,8 +10411,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10523,8 +10431,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 340, 351 @@ -10545,8 +10451,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -10571,8 +10475,6 @@ { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -10595,8 +10497,6 @@ "name": { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -10617,8 +10517,6 @@ "left": { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -10665,8 +10563,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 277, 281 @@ -10686,8 +10582,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 282, 290 @@ -10722,8 +10616,6 @@ "callee": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 265, 276 @@ -10763,8 +10655,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 248, 252 @@ -10784,8 +10674,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 254, 262 @@ -10871,8 +10759,6 @@ { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -10895,8 +10781,6 @@ "name": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -10914,12 +10798,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -10968,8 +10849,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 352, 356 @@ -10989,8 +10868,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 357, 365 @@ -11025,8 +10902,6 @@ "callee": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 340, 351 @@ -11066,8 +10941,6 @@ "object": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 323, 327 @@ -11087,8 +10960,6 @@ "property": { "type": "Identifier", "name": "start_at", - "decorators": [], - "optional": false, "range": [ 329, 337 @@ -11190,8 +11061,6 @@ "identifier": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -11212,8 +11081,6 @@ "resolved": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -11238,8 +11105,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11250,8 +11115,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -11350,8 +11213,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11362,8 +11223,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -11462,8 +11321,6 @@ "identifier": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -11484,8 +11341,6 @@ "resolved": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 24, 33 @@ -11506,8 +11361,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -11528,8 +11381,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -11550,8 +11401,6 @@ "identifier": { "type": "Identifier", "name": "fetch", - "decorators": [], - "optional": false, "range": [ 153, 158 @@ -11575,8 +11424,6 @@ "identifier": { "type": "Identifier", "name": "console", - "decorators": [], - "optional": false, "range": [ 216, 223 @@ -11600,8 +11447,6 @@ "identifier": { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -11622,8 +11467,6 @@ "resolved": { "type": "Identifier", "name": "startDate", - "decorators": [], - "optional": false, "range": [ 235, 244 @@ -11644,8 +11487,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 248, 252 @@ -11666,8 +11507,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11678,8 +11517,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -11778,8 +11615,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 265, 276 @@ -11800,8 +11635,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -11822,8 +11655,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 277, 281 @@ -11844,8 +11675,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11856,8 +11685,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -11956,8 +11783,6 @@ "identifier": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -11978,8 +11803,6 @@ "resolved": { "type": "Identifier", "name": "endDate", - "decorators": [], - "optional": false, "range": [ 306, 313 @@ -12007,8 +11830,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12019,8 +11840,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12121,8 +11940,6 @@ "name": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12133,8 +11950,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12240,8 +12055,6 @@ "object": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 139, 140 @@ -12261,8 +12074,6 @@ "property": { "type": "Identifier", "name": "toString", - "decorators": [], - "optional": false, "range": [ 141, 149 @@ -12316,8 +12127,6 @@ { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12328,8 +12137,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12446,8 +12253,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 139, 140 @@ -12468,8 +12273,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12480,8 +12283,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12584,8 +12385,6 @@ "identifier": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12609,8 +12408,6 @@ "identifier": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "range": [ 139, 140 @@ -12631,8 +12428,6 @@ "resolved": { "type": "Identifier", "name": "i", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12643,8 +12438,6 @@ "typeName": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12746,8 +12539,6 @@ "identifier": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -12777,8 +12568,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 184, 188 @@ -12799,8 +12588,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12811,8 +12598,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -12914,8 +12699,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 184, 188 @@ -12936,8 +12719,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12948,8 +12729,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -13054,8 +12833,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 323, 327 @@ -13076,8 +12853,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13088,8 +12863,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -13188,8 +12961,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 340, 351 @@ -13210,8 +12981,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -13232,8 +13001,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 352, 356 @@ -13254,8 +13021,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13266,8 +13031,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -13369,8 +13132,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 323, 327 @@ -13391,8 +13152,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13403,8 +13162,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -13503,8 +13260,6 @@ "identifier": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 340, 351 @@ -13525,8 +13280,6 @@ "resolved": { "type": "Identifier", "name": "lightFormat", - "decorators": [], - "optional": false, "range": [ 103, 114 @@ -13547,8 +13300,6 @@ "identifier": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "range": [ 352, 356 @@ -13569,8 +13320,6 @@ "resolved": { "type": "Identifier", "name": "info", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13581,8 +13330,6 @@ "typeName": { "type": "Identifier", "name": "EventInfo", - "decorators": [], - "optional": false, "range": [ 72, 81 @@ -13685,8 +13432,6 @@ "identifier": { "type": "Identifier", "name": "Date", - "decorators": [], - "optional": false, "range": [ 121, 125 @@ -13710,8 +13455,6 @@ "identifier": { "type": "Identifier", "name": "fetch", - "decorators": [], - "optional": false, "range": [ 153, 158 @@ -13735,8 +13478,6 @@ "identifier": { "type": "Identifier", "name": "console", - "decorators": [], - "optional": false, "range": [ 216, 223 @@ -13764,8 +13505,6 @@ "identifier": { "type": "Identifier", "name": "fetch", - "decorators": [], - "optional": false, "range": [ 153, 158 @@ -13789,8 +13528,6 @@ "identifier": { "type": "Identifier", "name": "console", - "decorators": [], - "optional": false, "range": [ 216, 223 diff --git a/tests/fixtures/parser/ast/ts-newline-output.json b/tests/fixtures/parser/ast/ts-newline-output.json index 6386c749..50eb925b 100644 --- a/tests/fixtures/parser/ast/ts-newline-output.json +++ b/tests/fixtures/parser/ast/ts-newline-output.json @@ -103,8 +103,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 19, 20 @@ -127,8 +125,6 @@ "left": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -214,8 +210,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 43, 44 @@ -238,8 +232,6 @@ "left": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -325,8 +317,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 66, 67 @@ -349,8 +339,6 @@ "left": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -436,8 +424,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -460,8 +446,6 @@ "left": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -547,8 +531,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -571,8 +553,6 @@ "left": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -710,8 +690,6 @@ "expression": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 154, 166 @@ -748,8 +726,6 @@ "expression": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 168, 180 @@ -786,8 +762,6 @@ "expression": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 182, 194 @@ -824,8 +798,6 @@ "expression": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 196, 208 @@ -862,8 +834,6 @@ "expression": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 210, 222 diff --git a/tests/fixtures/parser/ast/ts-newline-scope-output.json b/tests/fixtures/parser/ast/ts-newline-scope-output.json index 17130acd..b32ee564 100644 --- a/tests/fixtures/parser/ast/ts-newline-scope-output.json +++ b/tests/fixtures/parser/ast/ts-newline-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -8657,8 +8653,6 @@ "left": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -8716,8 +8710,6 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 154, 166 @@ -8738,8 +8730,6 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -8764,8 +8754,6 @@ { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -8788,8 +8776,6 @@ "name": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -8810,8 +8796,6 @@ "left": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -8869,8 +8853,6 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 168, 180 @@ -8891,8 +8873,6 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -8917,8 +8897,6 @@ { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -8941,8 +8919,6 @@ "name": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -8963,8 +8939,6 @@ "left": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -9022,8 +8996,6 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 182, 194 @@ -9044,8 +9016,6 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -9070,8 +9040,6 @@ { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9094,8 +9062,6 @@ "name": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9116,8 +9082,6 @@ "left": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9175,8 +9139,6 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 196, 208 @@ -9197,8 +9159,6 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9223,8 +9183,6 @@ { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9247,8 +9205,6 @@ "name": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9269,8 +9225,6 @@ "left": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9328,8 +9282,6 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 210, 222 @@ -9350,8 +9302,6 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9376,8 +9326,6 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -9398,8 +9346,6 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -9420,8 +9366,6 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -9442,8 +9386,6 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -9464,8 +9406,6 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -9486,8 +9426,6 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -9508,8 +9446,6 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9530,8 +9466,6 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9552,8 +9486,6 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9574,8 +9506,6 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 @@ -9596,8 +9526,6 @@ "identifier": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 154, 166 @@ -9618,8 +9546,6 @@ "resolved": { "type": "Identifier", "name": "aWithNewline", - "decorators": [], - "optional": false, "range": [ 22, 34 @@ -9640,8 +9566,6 @@ "identifier": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 168, 180 @@ -9662,8 +9586,6 @@ "resolved": { "type": "Identifier", "name": "bWithNewline", - "decorators": [], - "optional": false, "range": [ 46, 58 @@ -9684,8 +9606,6 @@ "identifier": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 182, 194 @@ -9706,8 +9626,6 @@ "resolved": { "type": "Identifier", "name": "cWithNewline", - "decorators": [], - "optional": false, "range": [ 69, 81 @@ -9728,8 +9646,6 @@ "identifier": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 196, 208 @@ -9750,8 +9666,6 @@ "resolved": { "type": "Identifier", "name": "dWithNewline", - "decorators": [], - "optional": false, "range": [ 95, 107 @@ -9772,8 +9686,6 @@ "identifier": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 210, 222 @@ -9794,8 +9706,6 @@ "resolved": { "type": "Identifier", "name": "eWithNewline", - "decorators": [], - "optional": false, "range": [ 120, 132 diff --git a/tests/fixtures/parser/ast/ts-not-reactive01-output.json b/tests/fixtures/parser/ast/ts-not-reactive01-output.json index e1e26662..3085e69f 100644 --- a/tests/fixtures/parser/ast/ts-not-reactive01-output.json +++ b/tests/fixtures/parser/ast/ts-not-reactive01-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -160,7 +157,6 @@ } } ], - "declare": false, "range": [ 19, 33 @@ -182,12 +178,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -199,8 +192,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -217,8 +208,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -348,7 +337,6 @@ } } ], - "declare": false, "range": [ 34, 65 @@ -369,8 +357,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 66, 67 @@ -396,8 +382,6 @@ "object": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 69, 72 @@ -417,8 +401,6 @@ "property": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 73, 76 @@ -453,8 +435,6 @@ "right": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 79, 82 @@ -575,8 +555,6 @@ "object": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 94, 97 @@ -596,8 +574,6 @@ "property": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 98, 101 diff --git a/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json b/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json index 7a1af57e..46c4fdd1 100644 --- a/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-not-reactive01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8716,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8738,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8760,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 79, 82 @@ -8782,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -8808,8 +8793,6 @@ { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8821,8 +8804,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -8839,8 +8820,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8943,8 +8922,6 @@ "name": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8956,8 +8933,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -8974,8 +8949,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9073,12 +9046,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9090,8 +9060,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9108,8 +9076,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9245,8 +9211,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9258,8 +9222,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9276,8 +9238,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9378,8 +9338,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9391,8 +9349,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9409,8 +9365,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9511,8 +9465,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 69, 72 @@ -9533,8 +9485,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9546,8 +9496,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9564,8 +9512,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9666,8 +9612,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 94, 97 @@ -9688,8 +9632,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9701,8 +9643,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9719,8 +9659,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9825,8 +9763,6 @@ "identifier": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -9847,8 +9783,6 @@ "resolved": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -9869,8 +9803,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9882,8 +9814,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -9900,8 +9830,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10002,8 +9930,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10015,8 +9941,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -10033,8 +9957,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10135,8 +10057,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 69, 72 @@ -10157,8 +10077,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10170,8 +10088,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -10188,8 +10104,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10290,8 +10204,6 @@ "identifier": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 79, 82 @@ -10312,8 +10224,6 @@ "resolved": { "type": "Identifier", "name": "num", - "decorators": [], - "optional": false, "range": [ 25, 28 @@ -10334,8 +10244,6 @@ "identifier": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "range": [ 94, 97 @@ -10356,8 +10264,6 @@ "resolved": { "type": "Identifier", "name": "obj", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10369,8 +10275,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 46, 49 @@ -10387,8 +10291,6 @@ } }, "optional": true, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-promise01-output.json b/tests/fixtures/parser/ast/ts-promise01-output.json index be9e72bd..7cb103c3 100644 --- a/tests/fixtures/parser/ast/ts-promise01-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-output.json @@ -104,17 +104,32 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -126,8 +141,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -143,9 +156,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -227,26 +237,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -311,8 +301,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 86, 87 @@ -329,7 +317,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -385,8 +372,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 77, 84 @@ -425,8 +410,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -462,8 +445,6 @@ "callee": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 58, 65 @@ -510,7 +491,6 @@ } } ], - "declare": false, "range": [ 20, 94 @@ -583,8 +563,6 @@ "expression": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "range": [ 114, 121 @@ -753,8 +731,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -857,8 +833,6 @@ "object": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -878,8 +852,6 @@ "property": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 183, 184 @@ -998,8 +970,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -1141,8 +1111,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 229, 234 @@ -1162,8 +1130,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 235, 242 diff --git a/tests/fixtures/parser/ast/ts-promise01-scope-output.json b/tests/fixtures/parser/ast/ts-promise01-scope-output.json index a2a68601..e41c68eb 100644 --- a/tests/fixtures/parser/ast/ts-promise01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-scope-output.json @@ -406,8 +406,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 32, 39 @@ -8637,13 +8635,29 @@ { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8655,8 +8669,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -8672,9 +8684,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8756,26 +8765,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -8828,13 +8817,29 @@ "name": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8846,8 +8851,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -8863,9 +8866,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8947,26 +8947,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -9014,17 +8994,32 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9036,8 +9031,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -9053,9 +9046,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9137,26 +9127,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -9221,8 +9191,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 86, 87 @@ -9239,7 +9207,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -9295,8 +9262,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 77, 84 @@ -9335,8 +9300,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -9372,8 +9335,6 @@ "callee": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 58, 65 @@ -9426,13 +9387,29 @@ "identifier": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9444,8 +9421,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -9461,9 +9436,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9545,26 +9517,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -9615,13 +9567,29 @@ "resolved": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9633,8 +9601,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -9650,9 +9616,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9734,26 +9697,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -9804,8 +9747,6 @@ "identifier": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "range": [ 114, 121 @@ -9826,13 +9767,29 @@ "resolved": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9844,8 +9801,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -9861,9 +9816,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9945,26 +9897,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -10019,13 +9951,29 @@ "identifier": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10037,8 +9985,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -10054,9 +10000,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10138,26 +10081,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -10208,13 +10131,29 @@ "resolved": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10226,8 +10165,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -10243,9 +10180,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10327,26 +10261,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -10397,8 +10311,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 58, 65 @@ -10422,8 +10334,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 32, 39 @@ -10447,8 +10357,6 @@ "identifier": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "range": [ 114, 121 @@ -10469,13 +10377,29 @@ "resolved": { "type": "Identifier", "name": "promise", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10487,8 +10411,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 41, 42 @@ -10504,9 +10426,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10588,26 +10507,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Promise", - "decorators": [], - "optional": false, - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, "range": [ 32, 51 @@ -10665,8 +10564,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -10689,8 +10586,6 @@ "name": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -10722,8 +10617,6 @@ "key": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 86, 87 @@ -10740,7 +10633,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -10796,8 +10688,6 @@ "callee": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 77, 84 @@ -10836,8 +10726,6 @@ { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -10876,8 +10764,6 @@ "identifier": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 77, 84 @@ -10898,8 +10784,6 @@ "resolved": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -10924,8 +10808,6 @@ "identifier": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 77, 84 @@ -10946,8 +10828,6 @@ "resolved": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 67, 74 @@ -10984,8 +10864,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -11008,8 +10886,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -11031,8 +10907,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -11135,8 +11009,6 @@ "object": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -11156,8 +11028,6 @@ "property": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 183, 184 @@ -11277,8 +11147,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -11299,8 +11167,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -11325,8 +11191,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -11347,8 +11211,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 149, 155 @@ -11378,8 +11240,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -11402,8 +11262,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -11425,8 +11283,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -11568,8 +11424,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 229, 234 @@ -11589,8 +11443,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 235, 242 @@ -11710,8 +11562,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 229, 234 @@ -11732,8 +11582,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -11758,8 +11606,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 229, 234 @@ -11780,8 +11626,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 198, 203 @@ -11808,8 +11652,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 58, 65 @@ -11833,8 +11675,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 32, 39 @@ -11862,8 +11702,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 58, 65 diff --git a/tests/fixtures/parser/ast/ts-promise02-output.json b/tests/fixtures/parser/ast/ts-promise02-output.json index f9314985..b4378f1f 100644 --- a/tests/fixtures/parser/ast/ts-promise02-output.json +++ b/tests/fixtures/parser/ast/ts-promise02-output.json @@ -180,8 +180,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 38, 45 @@ -201,8 +199,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 46, 53 @@ -402,8 +398,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -503,8 +497,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 111, 117 @@ -608,8 +600,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -751,8 +741,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 162, 167 @@ -772,8 +760,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 168, 175 @@ -951,8 +937,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 200, 207 @@ -972,8 +956,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 208, 215 @@ -1073,8 +1055,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 229, 236 @@ -1094,8 +1074,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 237, 244 @@ -1295,8 +1273,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -1396,8 +1372,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 304, 305 @@ -1501,8 +1475,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -1644,8 +1616,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 352, 357 @@ -1665,8 +1635,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 358, 365 @@ -1834,8 +1802,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -1935,8 +1901,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 415, 421 @@ -2040,8 +2004,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -2183,8 +2145,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 466, 471 @@ -2204,8 +2164,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 472, 479 @@ -2383,8 +2341,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 503, 510 @@ -2404,8 +2360,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 511, 518 @@ -2605,8 +2559,6 @@ "value": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -2706,8 +2658,6 @@ "expression": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 575, 576 @@ -2811,8 +2761,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -2954,8 +2902,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 621, 626 @@ -2975,8 +2921,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 627, 634 @@ -3154,8 +3098,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 658, 665 @@ -3175,8 +3117,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 666, 673 @@ -3376,8 +3316,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -3477,8 +3415,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 731, 737 @@ -3582,8 +3518,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -3725,8 +3659,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 782, 787 @@ -3746,8 +3678,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 788, 795 @@ -3925,8 +3855,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 819, 826 @@ -3946,8 +3874,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 827, 834 @@ -4147,8 +4073,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -4248,8 +4172,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 892, 898 @@ -4353,8 +4275,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -4496,8 +4416,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 943, 948 @@ -4517,8 +4435,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 949, 956 @@ -4696,8 +4612,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 980, 987 @@ -4717,8 +4631,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 988, 995 @@ -4918,8 +4830,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -5019,8 +4929,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1053, 1059 @@ -5124,8 +5032,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -5267,8 +5173,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1104, 1109 @@ -5288,8 +5192,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 1110, 1117 @@ -5467,8 +5369,6 @@ "object": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 1141, 1148 @@ -5488,8 +5388,6 @@ "property": { "type": "Identifier", "name": "resolve", - "decorators": [], - "optional": false, "range": [ 1149, 1156 @@ -5689,8 +5587,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -5790,8 +5686,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1214, 1220 @@ -5895,8 +5789,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -6038,8 +5930,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1265, 1270 @@ -6059,8 +5949,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 1271, 1278 diff --git a/tests/fixtures/parser/ast/ts-promise02-scope-output.json b/tests/fixtures/parser/ast/ts-promise02-scope-output.json index 54b481a6..045b52d1 100644 --- a/tests/fixtures/parser/ast/ts-promise02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-promise02-scope-output.json @@ -8610,8 +8610,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 38, 45 @@ -8635,8 +8633,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 200, 207 @@ -8660,8 +8656,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 503, 510 @@ -8685,8 +8679,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 658, 665 @@ -8710,8 +8702,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 819, 826 @@ -8735,8 +8725,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 980, 987 @@ -8760,8 +8748,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 1141, 1148 @@ -8799,8 +8785,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -8823,8 +8807,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -8846,8 +8828,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -8947,8 +8927,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 111, 117 @@ -9053,8 +9031,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 111, 117 @@ -9075,8 +9051,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -9101,8 +9075,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 111, 117 @@ -9123,8 +9095,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 84, 90 @@ -9154,8 +9124,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -9178,8 +9146,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -9201,8 +9167,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -9344,8 +9308,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 162, 167 @@ -9365,8 +9327,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 168, 175 @@ -9486,8 +9446,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 162, 167 @@ -9508,8 +9466,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -9534,8 +9490,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 162, 167 @@ -9556,8 +9510,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 131, 136 @@ -9586,8 +9538,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 229, 236 @@ -9625,8 +9575,6 @@ { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -9649,8 +9597,6 @@ "name": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -9672,8 +9618,6 @@ "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -9773,8 +9717,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 304, 305 @@ -9879,8 +9821,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 304, 305 @@ -9901,8 +9841,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -9927,8 +9865,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 304, 305 @@ -9949,8 +9885,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 281, 282 @@ -9980,8 +9914,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -10004,8 +9936,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -10027,8 +9957,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -10170,8 +10098,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 352, 357 @@ -10191,8 +10117,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 358, 365 @@ -10312,8 +10236,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 352, 357 @@ -10334,8 +10256,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -10360,8 +10280,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 352, 357 @@ -10382,8 +10300,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 320, 325 @@ -10410,8 +10326,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 229, 236 @@ -10442,8 +10356,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -10466,8 +10378,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -10489,8 +10399,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -10590,8 +10498,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 415, 421 @@ -10696,8 +10602,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 415, 421 @@ -10718,8 +10622,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -10744,8 +10646,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 415, 421 @@ -10766,8 +10666,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 388, 394 @@ -10797,8 +10695,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -10821,8 +10717,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -10844,8 +10738,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -10987,8 +10879,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 466, 471 @@ -11008,8 +10898,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 472, 479 @@ -11129,8 +11017,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 466, 471 @@ -11151,8 +11037,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -11177,8 +11061,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 466, 471 @@ -11199,8 +11081,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 435, 440 @@ -11237,8 +11117,6 @@ { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -11261,8 +11139,6 @@ "name": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -11284,8 +11160,6 @@ "value": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -11385,8 +11259,6 @@ "expression": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 575, 576 @@ -11491,8 +11363,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 575, 576 @@ -11513,8 +11383,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -11539,8 +11407,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 575, 576 @@ -11561,8 +11427,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 552, 553 @@ -11592,8 +11456,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -11616,8 +11478,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -11639,8 +11499,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -11782,8 +11640,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 621, 626 @@ -11803,8 +11659,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 627, 634 @@ -11924,8 +11778,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 621, 626 @@ -11946,8 +11798,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -11972,8 +11822,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 621, 626 @@ -11994,8 +11842,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 590, 595 @@ -12032,8 +11878,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -12056,8 +11900,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -12079,8 +11921,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -12180,8 +12020,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 731, 737 @@ -12286,8 +12124,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 731, 737 @@ -12308,8 +12144,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -12334,8 +12168,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 731, 737 @@ -12356,8 +12188,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 704, 710 @@ -12387,8 +12217,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -12411,8 +12239,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -12434,8 +12260,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -12577,8 +12401,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 782, 787 @@ -12598,8 +12420,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 788, 795 @@ -12719,8 +12539,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 782, 787 @@ -12741,8 +12559,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -12767,8 +12583,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 782, 787 @@ -12789,8 +12603,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 751, 756 @@ -12827,8 +12639,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -12851,8 +12661,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -12874,8 +12682,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -12975,8 +12781,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 892, 898 @@ -13081,8 +12885,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 892, 898 @@ -13103,8 +12905,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -13129,8 +12929,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 892, 898 @@ -13151,8 +12949,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 865, 871 @@ -13182,8 +12978,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -13206,8 +13000,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -13229,8 +13021,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -13372,8 +13162,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 943, 948 @@ -13393,8 +13181,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 949, 956 @@ -13514,8 +13300,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 943, 948 @@ -13536,8 +13320,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -13562,8 +13344,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 943, 948 @@ -13584,8 +13364,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 912, 917 @@ -13622,8 +13400,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -13646,8 +13422,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -13669,8 +13443,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -13770,8 +13542,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1053, 1059 @@ -13876,8 +13646,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1053, 1059 @@ -13898,8 +13666,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -13924,8 +13690,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1053, 1059 @@ -13946,8 +13710,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1026, 1032 @@ -13977,8 +13739,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -14001,8 +13761,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -14024,8 +13782,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -14167,8 +13923,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1104, 1109 @@ -14188,8 +13942,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 1110, 1117 @@ -14309,8 +14061,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1104, 1109 @@ -14331,8 +14081,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -14357,8 +14105,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1104, 1109 @@ -14379,8 +14125,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1073, 1078 @@ -14417,8 +14161,6 @@ { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -14441,8 +14183,6 @@ "name": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -14464,8 +14204,6 @@ "value": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -14565,8 +14303,6 @@ "expression": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1214, 1220 @@ -14671,8 +14407,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1214, 1220 @@ -14693,8 +14427,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -14719,8 +14451,6 @@ "identifier": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1214, 1220 @@ -14741,8 +14471,6 @@ "resolved": { "type": "Identifier", "name": "number", - "decorators": [], - "optional": false, "range": [ 1187, 1193 @@ -14772,8 +14500,6 @@ { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -14796,8 +14522,6 @@ "name": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -14819,8 +14543,6 @@ "error": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -14962,8 +14684,6 @@ "object": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1265, 1270 @@ -14983,8 +14703,6 @@ "property": { "type": "Identifier", "name": "message", - "decorators": [], - "optional": false, "range": [ 1271, 1278 @@ -15104,8 +14822,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1265, 1270 @@ -15126,8 +14842,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -15152,8 +14866,6 @@ "identifier": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1265, 1270 @@ -15174,8 +14886,6 @@ "resolved": { "type": "Identifier", "name": "error", - "decorators": [], - "optional": false, "range": [ 1234, 1239 @@ -15202,8 +14912,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 38, 45 @@ -15227,8 +14935,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 200, 207 @@ -15252,8 +14958,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 229, 236 @@ -15277,8 +14981,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 503, 510 @@ -15302,8 +15004,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 658, 665 @@ -15327,8 +15027,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 819, 826 @@ -15352,8 +15050,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 980, 987 @@ -15377,8 +15073,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 1141, 1148 @@ -15406,8 +15100,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 38, 45 @@ -15431,8 +15123,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 200, 207 @@ -15456,8 +15146,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 229, 236 @@ -15481,8 +15169,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 503, 510 @@ -15506,8 +15192,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 658, 665 @@ -15531,8 +15215,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 819, 826 @@ -15556,8 +15238,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 980, 987 @@ -15581,8 +15261,6 @@ "identifier": { "type": "Identifier", "name": "Promise", - "decorators": [], - "optional": false, "range": [ 1141, 1148 diff --git a/tests/fixtures/parser/ast/ts-reactive01-output.json b/tests/fixtures/parser/ast/ts-reactive01-output.json index 8924327b..e429ef1e 100644 --- a/tests/fixtures/parser/ast/ts-reactive01-output.json +++ b/tests/fixtures/parser/ast/ts-reactive01-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -160,7 +157,6 @@ } } ], - "declare": false, "range": [ 23, 38 @@ -182,12 +178,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -260,7 +253,6 @@ } } ], - "declare": false, "range": [ 43, 66 @@ -281,8 +273,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -305,8 +295,6 @@ "left": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -326,8 +314,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -393,8 +379,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -417,8 +401,6 @@ "left": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -438,8 +420,6 @@ "right": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -505,8 +485,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 98, 99 @@ -529,8 +507,6 @@ "left": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -550,8 +526,6 @@ "right": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -715,8 +689,6 @@ "expression": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 144, 145 @@ -805,8 +777,6 @@ "expression": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 159, 160 @@ -899,8 +869,6 @@ "callee": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 164, 175 diff --git a/tests/fixtures/parser/ast/ts-reactive01-scope-output.json b/tests/fixtures/parser/ast/ts-reactive01-scope-output.json index 631fadc6..06dfd3d2 100644 --- a/tests/fixtures/parser/ast/ts-reactive01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8716,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8738,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8760,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -8782,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8804,8 +8789,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 159, 160 @@ -8826,8 +8809,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -8852,8 +8833,6 @@ { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -8876,8 +8855,6 @@ "name": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -8895,12 +8872,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -8979,8 +8953,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9001,8 +8973,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9023,8 +8993,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -9045,8 +9013,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9071,8 +9037,6 @@ { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9095,8 +9059,6 @@ "name": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9117,8 +9079,6 @@ "left": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9138,8 +9098,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -9177,8 +9135,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -9199,8 +9155,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9225,8 +9179,6 @@ { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9249,8 +9201,6 @@ "name": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9271,8 +9221,6 @@ "left": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9292,8 +9240,6 @@ "right": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -9331,8 +9277,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 144, 145 @@ -9353,8 +9297,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9379,8 +9321,6 @@ { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9403,8 +9343,6 @@ "name": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9425,8 +9363,6 @@ "left": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9446,8 +9382,6 @@ "right": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -9485,8 +9419,6 @@ "identifier": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 164, 175 @@ -9507,8 +9439,6 @@ "resolved": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9533,8 +9463,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -9555,8 +9483,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -9577,8 +9503,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9599,8 +9523,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9621,8 +9543,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9643,8 +9563,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9665,8 +9583,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 79, 80 @@ -9687,8 +9603,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -9709,8 +9623,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9731,8 +9643,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9753,8 +9663,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -9775,8 +9683,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 75, 76 @@ -9797,8 +9703,6 @@ "identifier": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9819,8 +9723,6 @@ "resolved": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 @@ -9841,8 +9743,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -9863,8 +9763,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 49, 52 @@ -9885,8 +9783,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 144, 145 @@ -9907,8 +9803,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 88, 89 @@ -9929,8 +9823,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 159, 160 @@ -9951,8 +9843,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 27, 28 @@ -9973,8 +9863,6 @@ "identifier": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 164, 175 @@ -9995,8 +9883,6 @@ "resolved": { "type": "Identifier", "name": "getFunction", - "decorators": [], - "optional": false, "range": [ 101, 112 diff --git a/tests/fixtures/parser/ast/ts-reactive02-output.json b/tests/fixtures/parser/ast/ts-reactive02-output.json index 6a6772aa..117e4f76 100644 --- a/tests/fixtures/parser/ast/ts-reactive02-output.json +++ b/tests/fixtures/parser/ast/ts-reactive02-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -201,12 +197,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -257,7 +250,6 @@ } } ], - "declare": false, "range": [ 65, 80 @@ -279,12 +271,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -357,7 +346,6 @@ } } ], - "declare": false, "range": [ 85, 108 @@ -378,8 +366,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 114, 115 @@ -402,8 +388,6 @@ "left": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -423,8 +407,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 121, 122 @@ -490,8 +472,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 127, 128 @@ -514,8 +494,6 @@ "left": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -535,8 +513,6 @@ "right": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 134, 135 @@ -602,8 +578,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 140, 141 @@ -626,8 +600,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -647,8 +619,6 @@ "right": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 149, 152 @@ -715,12 +685,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -762,8 +729,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 165, 173 @@ -811,7 +776,6 @@ } } ], - "declare": false, "range": [ 155, 176 @@ -833,12 +797,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -880,8 +841,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 188, 196 @@ -929,7 +888,6 @@ } } ], - "declare": false, "range": [ 178, 199 @@ -1048,8 +1006,6 @@ "expression": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 225, 226 @@ -1138,8 +1094,6 @@ "expression": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 240, 241 @@ -1232,8 +1186,6 @@ "callee": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 245, 248 @@ -1304,8 +1256,6 @@ "expression": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 253, 254 @@ -1360,8 +1310,6 @@ "expression": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 257, 259 @@ -1416,8 +1364,6 @@ "expression": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 262, 263 @@ -1472,8 +1418,6 @@ "expression": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 266, 268 diff --git a/tests/fixtures/parser/ast/ts-reactive02-scope-output.json b/tests/fixtures/parser/ast/ts-reactive02-scope-output.json index 36dc52eb..2a5aade6 100644 --- a/tests/fixtures/parser/ast/ts-reactive02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive02-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 165, 173 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8761,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 188, 196 @@ -8783,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8809,8 +8793,6 @@ { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8833,8 +8815,6 @@ "name": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8852,12 +8832,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8914,8 +8891,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8936,8 +8911,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -8958,8 +8931,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 121, 122 @@ -8980,8 +8951,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -9002,8 +8971,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 240, 241 @@ -9024,8 +8991,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -9050,8 +9015,6 @@ { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9074,8 +9037,6 @@ "name": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9093,12 +9054,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9177,8 +9135,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9199,8 +9155,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9221,8 +9175,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 149, 152 @@ -9243,8 +9195,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -9269,8 +9219,6 @@ { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -9293,8 +9241,6 @@ "name": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -9315,8 +9261,6 @@ "left": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -9336,8 +9280,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 121, 122 @@ -9375,8 +9317,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 134, 135 @@ -9397,8 +9337,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -9423,8 +9361,6 @@ { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -9447,8 +9383,6 @@ "name": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -9469,8 +9403,6 @@ "left": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -9490,8 +9422,6 @@ "right": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 134, 135 @@ -9529,8 +9459,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 225, 226 @@ -9551,8 +9479,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -9577,8 +9503,6 @@ { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -9601,8 +9525,6 @@ "name": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -9623,8 +9545,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -9644,8 +9564,6 @@ "right": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 149, 152 @@ -9683,8 +9601,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 245, 248 @@ -9705,8 +9621,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -9731,8 +9645,6 @@ { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9755,8 +9667,6 @@ "name": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9774,12 +9684,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9821,8 +9728,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 165, 173 @@ -9876,8 +9781,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9898,8 +9801,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9920,8 +9821,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 253, 254 @@ -9942,8 +9841,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -9964,8 +9861,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 257, 259 @@ -9986,8 +9881,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -10012,8 +9905,6 @@ { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10036,8 +9927,6 @@ "name": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10055,12 +9944,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10102,8 +9988,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 188, 196 @@ -10157,8 +10041,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10179,8 +10061,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10201,8 +10081,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 262, 263 @@ -10223,8 +10101,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10245,8 +10121,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 266, 268 @@ -10267,8 +10141,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10293,8 +10165,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -10315,8 +10185,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -10337,8 +10205,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -10359,8 +10225,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -10381,8 +10245,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -10403,8 +10265,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -10425,8 +10285,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 121, 122 @@ -10447,8 +10305,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -10469,8 +10325,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -10491,8 +10345,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -10513,8 +10365,6 @@ "identifier": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 134, 135 @@ -10535,8 +10385,6 @@ "resolved": { "type": "Identifier", "name": "y", - "decorators": [], - "optional": false, "range": [ 117, 118 @@ -10557,8 +10405,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -10579,8 +10425,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -10601,8 +10445,6 @@ "identifier": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 149, 152 @@ -10623,8 +10465,6 @@ "resolved": { "type": "Identifier", "name": "get", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -10645,8 +10485,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -10667,8 +10505,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -10689,8 +10525,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 165, 173 @@ -10711,8 +10545,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -10733,8 +10565,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10755,8 +10585,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10777,8 +10605,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 188, 196 @@ -10799,8 +10625,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -10821,8 +10645,6 @@ "identifier": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 225, 226 @@ -10843,8 +10665,6 @@ "resolved": { "type": "Identifier", "name": "z", - "decorators": [], - "optional": false, "range": [ 130, 131 @@ -10865,8 +10685,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 240, 241 @@ -10887,8 +10705,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 69, 70 @@ -10909,8 +10725,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 245, 248 @@ -10931,8 +10745,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 143, 146 @@ -10953,8 +10765,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 253, 254 @@ -10975,8 +10785,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -10997,8 +10805,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 257, 259 @@ -11019,8 +10825,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 161, 162 @@ -11041,8 +10845,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 262, 263 @@ -11063,8 +10865,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -11085,8 +10885,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 266, 268 @@ -11107,8 +10905,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 diff --git a/tests/fixtures/parser/ast/ts-reactive03-output.json b/tests/fixtures/parser/ast/ts-reactive03-output.json index 5abe2c7f..506de01b 100644 --- a/tests/fixtures/parser/ast/ts-reactive03-output.json +++ b/tests/fixtures/parser/ast/ts-reactive03-output.json @@ -106,12 +106,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -137,8 +134,6 @@ "key": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 39, 40 @@ -155,7 +150,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -198,8 +192,6 @@ "key": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -216,7 +208,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -284,7 +275,6 @@ } } ], - "declare": false, "range": [ 30, 57 @@ -323,8 +313,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 63, 64 @@ -346,8 +334,6 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -356,8 +342,6 @@ "key": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -374,13 +358,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -418,8 +399,6 @@ "key": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -436,13 +415,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -493,8 +469,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -612,8 +586,6 @@ "expression": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -668,8 +640,6 @@ "expression": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 95, 96 diff --git a/tests/fixtures/parser/ast/ts-reactive03-scope-output.json b/tests/fixtures/parser/ast/ts-reactive03-scope-output.json index 5cafe097..caf1e11c 100644 --- a/tests/fixtures/parser/ast/ts-reactive03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive03-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8685,8 +8678,6 @@ "key": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 39, 40 @@ -8703,7 +8694,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -8746,8 +8736,6 @@ "key": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 51, 52 @@ -8764,7 +8752,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -8838,8 +8825,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8860,8 +8845,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8882,8 +8865,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8904,8 +8885,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8926,8 +8905,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -8948,8 +8925,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -8974,8 +8949,6 @@ { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8998,8 +8971,6 @@ "name": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9019,8 +8990,6 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -9029,8 +8998,6 @@ "key": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9047,13 +9014,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9091,8 +9055,6 @@ "key": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9109,13 +9071,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9166,8 +9125,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -9205,8 +9162,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9227,8 +9182,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9253,8 +9206,6 @@ { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9277,8 +9228,6 @@ "name": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9298,8 +9247,6 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -9308,8 +9255,6 @@ "key": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9326,13 +9271,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9370,8 +9312,6 @@ "key": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9388,13 +9328,10 @@ } }, "method": false, - "optional": false, "shorthand": true, "value": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9445,8 +9382,6 @@ "right": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -9484,8 +9419,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -9506,8 +9439,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9532,8 +9463,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -9554,8 +9483,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -9576,8 +9503,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9598,8 +9523,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9620,8 +9543,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9642,8 +9563,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -9664,8 +9583,6 @@ "identifier": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -9686,8 +9603,6 @@ "resolved": { "type": "Identifier", "name": "x", - "decorators": [], - "optional": false, "range": [ 34, 35 @@ -9708,8 +9623,6 @@ "identifier": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9730,8 +9643,6 @@ "resolved": { "type": "Identifier", "name": "s", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9752,8 +9663,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 95, 96 @@ -9774,8 +9683,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 71, 72 diff --git a/tests/fixtures/parser/ast/ts-reactive04-output.json b/tests/fixtures/parser/ast/ts-reactive04-output.json index 0127561a..e6bf28d9 100644 --- a/tests/fixtures/parser/ast/ts-reactive04-output.json +++ b/tests/fixtures/parser/ast/ts-reactive04-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -160,7 +157,6 @@ } } ], - "declare": false, "range": [ 23, 41 @@ -182,12 +178,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -254,7 +247,6 @@ } } ], - "declare": false, "range": [ 46, 60 @@ -275,8 +267,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 66, 67 @@ -299,8 +289,6 @@ "left": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 69, 71 @@ -320,8 +308,6 @@ "right": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 74, 76 @@ -387,8 +373,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 81, 82 @@ -411,8 +395,6 @@ "left": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -432,8 +414,6 @@ "right": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 89, 91 @@ -551,8 +531,6 @@ "expression": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -607,8 +585,6 @@ "expression": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 109, 111 diff --git a/tests/fixtures/parser/ast/ts-reactive04-scope-output.json b/tests/fixtures/parser/ast/ts-reactive04-scope-output.json index f85a1c6f..3984e93d 100644 --- a/tests/fixtures/parser/ast/ts-reactive04-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive04-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8716,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8738,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8760,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 74, 76 @@ -8782,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8804,8 +8789,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 89, 91 @@ -8826,8 +8809,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -8852,8 +8833,6 @@ { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8910,8 +8889,6 @@ "name": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8963,12 +8940,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9041,8 +9015,6 @@ "identifier": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 69, 71 @@ -9063,8 +9035,6 @@ "resolved": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9119,8 +9089,6 @@ "identifier": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -9141,8 +9109,6 @@ "resolved": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9201,8 +9167,6 @@ { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9225,8 +9189,6 @@ "name": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9247,8 +9209,6 @@ "left": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9268,8 +9228,6 @@ "right": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 89, 91 @@ -9307,8 +9265,6 @@ "identifier": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 109, 111 @@ -9329,8 +9285,6 @@ "resolved": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9355,8 +9309,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -9377,8 +9329,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -9399,8 +9349,6 @@ "identifier": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 69, 71 @@ -9421,8 +9369,6 @@ "resolved": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9477,8 +9423,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 74, 76 @@ -9499,8 +9443,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -9521,8 +9463,6 @@ "identifier": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9543,8 +9483,6 @@ "resolved": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 @@ -9565,8 +9503,6 @@ "identifier": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 89, 91 @@ -9587,8 +9523,6 @@ "resolved": { "type": "Identifier", "name": "xx", - "decorators": [], - "optional": false, "range": [ 29, 31 @@ -9609,8 +9543,6 @@ "identifier": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -9631,8 +9563,6 @@ "resolved": { "type": "Identifier", "name": "yy", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9687,8 +9617,6 @@ "identifier": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 109, 111 @@ -9709,8 +9637,6 @@ "resolved": { "type": "Identifier", "name": "zz", - "decorators": [], - "optional": false, "range": [ 84, 86 diff --git a/tests/fixtures/parser/ast/ts-reactive05-output.json b/tests/fixtures/parser/ast/ts-reactive05-output.json index 9bea6d8a..6841d30e 100644 --- a/tests/fixtures/parser/ast/ts-reactive05-output.json +++ b/tests/fixtures/parser/ast/ts-reactive05-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -201,12 +197,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -248,8 +241,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 76, 84 @@ -297,7 +288,6 @@ } } ], - "declare": false, "range": [ 66, 87 @@ -318,8 +308,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 92, 93 @@ -342,8 +330,6 @@ "left": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -363,8 +349,6 @@ "right": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -430,8 +414,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 111, 112 @@ -454,8 +436,6 @@ "left": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -475,8 +455,6 @@ "right": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 123, 125 @@ -543,12 +521,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -590,8 +565,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 140, 148 @@ -639,7 +612,6 @@ } } ], - "declare": false, "range": [ 130, 153 @@ -712,8 +684,6 @@ "expression": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 166, 167 @@ -768,8 +738,6 @@ "expression": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 170, 172 @@ -824,8 +792,6 @@ "expression": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 175, 181 @@ -880,8 +846,6 @@ "expression": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -936,8 +900,6 @@ "expression": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 188, 190 @@ -992,8 +954,6 @@ "expression": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 193, 199 diff --git a/tests/fixtures/parser/ast/ts-reactive05-scope-output.json b/tests/fixtures/parser/ast/ts-reactive05-scope-output.json index 360ff3dc..7dfce1ed 100644 --- a/tests/fixtures/parser/ast/ts-reactive05-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive05-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 76, 84 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8761,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 140, 148 @@ -8783,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8809,8 +8793,6 @@ { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -8833,8 +8815,6 @@ "name": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -8852,12 +8832,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -8899,8 +8876,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 76, 84 @@ -8954,8 +8929,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -8976,8 +8949,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -8998,8 +8969,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -9020,8 +8989,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9042,8 +9009,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 166, 167 @@ -9064,8 +9029,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9086,8 +9049,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 170, 172 @@ -9108,8 +9069,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9130,8 +9089,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 170, 172 @@ -9152,8 +9109,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9178,8 +9133,6 @@ { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9202,8 +9155,6 @@ "name": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9224,8 +9175,6 @@ "left": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9245,8 +9194,6 @@ "right": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -9284,8 +9231,6 @@ "identifier": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 175, 181 @@ -9306,8 +9251,6 @@ "resolved": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9332,8 +9275,6 @@ { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -9356,8 +9297,6 @@ "name": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -9378,8 +9317,6 @@ "left": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -9399,8 +9336,6 @@ "right": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 123, 125 @@ -9438,8 +9373,6 @@ "identifier": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 193, 199 @@ -9460,8 +9393,6 @@ "resolved": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -9486,8 +9417,6 @@ { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9510,8 +9439,6 @@ "name": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9529,12 +9456,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9576,8 +9500,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 140, 148 @@ -9631,8 +9553,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 123, 125 @@ -9653,8 +9573,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9675,8 +9593,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9697,8 +9613,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9719,8 +9633,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -9741,8 +9653,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9763,8 +9673,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 188, 190 @@ -9785,8 +9693,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9807,8 +9713,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 188, 190 @@ -9829,8 +9733,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -9855,8 +9757,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9877,8 +9777,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -9899,8 +9797,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 76, 84 @@ -9921,8 +9817,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -9943,8 +9837,6 @@ "identifier": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9965,8 +9857,6 @@ "resolved": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -9987,8 +9877,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 104, 106 @@ -10009,8 +9897,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -10031,8 +9917,6 @@ "identifier": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -10053,8 +9937,6 @@ "resolved": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 @@ -10075,8 +9957,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 123, 125 @@ -10097,8 +9977,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -10119,8 +9997,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -10141,8 +10017,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -10163,8 +10037,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 140, 148 @@ -10185,8 +10057,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -10207,8 +10077,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 166, 167 @@ -10229,8 +10097,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -10251,8 +10117,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 170, 172 @@ -10273,8 +10137,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 72, 73 @@ -10295,8 +10157,6 @@ "identifier": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 175, 181 @@ -10317,8 +10177,6 @@ "resolved": { "type": "Identifier", "name": "aValue", - "decorators": [], - "optional": false, "range": [ 95, 101 @@ -10339,8 +10197,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 184, 185 @@ -10361,8 +10217,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -10383,8 +10237,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 188, 190 @@ -10405,8 +10257,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 136, 137 @@ -10427,8 +10277,6 @@ "identifier": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 193, 199 @@ -10449,8 +10297,6 @@ "resolved": { "type": "Identifier", "name": "bValue", - "decorators": [], - "optional": false, "range": [ 114, 120 diff --git a/tests/fixtures/parser/ast/ts-reactive06-output.json b/tests/fixtures/parser/ast/ts-reactive06-output.json index cd4968dc..add071a9 100644 --- a/tests/fixtures/parser/ast/ts-reactive06-output.json +++ b/tests/fixtures/parser/ast/ts-reactive06-output.json @@ -124,12 +124,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -144,8 +141,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -161,9 +156,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -327,7 +319,6 @@ } } ], - "declare": false, "range": [ 27, 65 @@ -367,12 +358,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -405,7 +393,6 @@ } } ], - "declare": false, "range": [ 67, 72 @@ -426,8 +413,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 73, 74 @@ -450,8 +435,6 @@ "left": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -473,8 +456,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 80, 83 @@ -497,8 +478,6 @@ "object": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 87, 90 @@ -518,8 +497,6 @@ "property": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 91, 94 @@ -615,8 +592,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 97, 98 @@ -639,8 +614,6 @@ "left": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -662,8 +635,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 104, 107 @@ -686,8 +657,6 @@ "object": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 111, 114 @@ -707,8 +676,6 @@ "property": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -804,8 +771,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 121, 122 @@ -827,8 +792,6 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -837,8 +800,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 127, 130 @@ -855,13 +816,10 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -914,8 +872,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -942,8 +898,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 147, 150 @@ -960,7 +914,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -1131,8 +1084,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 171, 174 @@ -1155,8 +1106,6 @@ "object": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 178, 181 @@ -1176,8 +1125,6 @@ "property": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 182, 185 @@ -1262,8 +1209,6 @@ "expression": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -1318,8 +1263,6 @@ "expression": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 192, 193 diff --git a/tests/fixtures/parser/ast/ts-reactive06-scope-output.json b/tests/fixtures/parser/ast/ts-reactive06-scope-output.json index 7367ac70..804e274c 100644 --- a/tests/fixtures/parser/ast/ts-reactive06-scope-output.json +++ b/tests/fixtures/parser/ast/ts-reactive06-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8627,8 +8625,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -8644,9 +8640,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8782,8 +8775,6 @@ "name": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8798,8 +8789,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -8815,9 +8804,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8948,12 +8934,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8968,8 +8951,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -8985,9 +8966,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9157,8 +9135,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9173,8 +9149,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -9190,9 +9164,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9326,8 +9297,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9342,8 +9311,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -9359,9 +9326,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9495,8 +9459,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9511,8 +9473,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -9528,9 +9488,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9664,8 +9621,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9680,8 +9635,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -9697,9 +9650,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9833,8 +9783,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 80, 83 @@ -9855,8 +9803,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9871,8 +9817,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -9888,9 +9832,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10024,8 +9965,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 87, 90 @@ -10046,8 +9985,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10062,8 +9999,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -10079,9 +10014,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10215,8 +10147,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 104, 107 @@ -10237,8 +10167,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10253,8 +10181,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -10270,9 +10196,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10406,8 +10329,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 111, 114 @@ -10428,8 +10349,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10444,8 +10363,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -10461,9 +10378,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10597,8 +10511,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -10619,8 +10531,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10635,8 +10545,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -10652,9 +10560,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10788,8 +10693,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 171, 174 @@ -10810,8 +10713,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10826,8 +10727,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -10843,9 +10742,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10979,8 +10875,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 178, 181 @@ -11001,8 +10895,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11017,8 +10909,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -11034,9 +10924,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11174,8 +11061,6 @@ { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -11198,8 +11083,6 @@ "name": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -11217,12 +11100,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -11261,8 +11141,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -11283,8 +11161,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -11309,8 +11185,6 @@ { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -11333,8 +11207,6 @@ "name": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -11355,8 +11227,6 @@ "left": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -11378,8 +11248,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 104, 107 @@ -11402,8 +11270,6 @@ "object": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 111, 114 @@ -11423,8 +11289,6 @@ "property": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 115, 118 @@ -11492,8 +11356,6 @@ "identifier": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -11514,8 +11376,6 @@ "resolved": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -11540,8 +11400,6 @@ { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -11564,8 +11422,6 @@ "name": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -11585,8 +11441,6 @@ "type": "AssignmentExpression", "left": { "type": "ObjectPattern", - "decorators": [], - "optional": false, "properties": [ { "type": "Property", @@ -11595,8 +11449,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 127, 130 @@ -11613,13 +11465,10 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -11672,8 +11521,6 @@ "left": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -11700,8 +11547,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 147, 150 @@ -11718,7 +11563,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -11807,8 +11651,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 192, 193 @@ -11829,8 +11671,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -11855,8 +11695,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11871,8 +11709,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -11888,9 +11724,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12024,8 +11857,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12040,8 +11871,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -12057,9 +11886,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12193,8 +12019,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 76, 77 @@ -12215,8 +12039,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 71, 72 @@ -12237,8 +12059,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 80, 83 @@ -12259,8 +12079,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12275,8 +12093,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -12292,9 +12108,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12428,8 +12241,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 87, 90 @@ -12450,8 +12261,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12466,8 +12275,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -12483,9 +12290,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12619,8 +12423,6 @@ "identifier": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -12641,8 +12443,6 @@ "resolved": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -12663,8 +12463,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 104, 107 @@ -12685,8 +12483,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12701,8 +12497,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -12718,9 +12512,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12854,8 +12645,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 111, 114 @@ -12876,8 +12665,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12892,8 +12679,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -12909,9 +12694,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13045,8 +12827,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -13067,8 +12847,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 @@ -13089,8 +12867,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 138, 141 @@ -13111,8 +12887,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13127,8 +12901,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -13144,9 +12916,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13280,8 +13049,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 171, 174 @@ -13302,8 +13069,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13318,8 +13083,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -13335,9 +13098,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13471,8 +13231,6 @@ "identifier": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 178, 181 @@ -13493,8 +13251,6 @@ "resolved": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13509,8 +13265,6 @@ "key": { "type": "Identifier", "name": "bar", - "decorators": [], - "optional": false, "range": [ 38, 41 @@ -13526,9 +13280,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13662,8 +13413,6 @@ "identifier": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -13684,8 +13433,6 @@ "resolved": { "type": "Identifier", "name": "r", - "decorators": [], - "optional": false, "range": [ 100, 101 @@ -13706,8 +13453,6 @@ "identifier": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 192, 193 @@ -13728,8 +13473,6 @@ "resolved": { "type": "Identifier", "name": "n", - "decorators": [], - "optional": false, "range": [ 132, 133 diff --git a/tests/fixtures/parser/ast/ts-scope-issue01-output.json b/tests/fixtures/parser/ast/ts-scope-issue01-output.json index ec6fd894..c2d2e9bd 100644 --- a/tests/fixtures/parser/ast/ts-scope-issue01-output.json +++ b/tests/fixtures/parser/ast/ts-scope-issue01-output.json @@ -162,8 +162,6 @@ "local": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -216,12 +214,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -272,7 +267,6 @@ } } ], - "declare": false, "range": [ 152, 165 @@ -294,12 +288,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -350,7 +341,6 @@ } } ], - "declare": false, "range": [ 166, 185 @@ -371,8 +361,6 @@ "label": { "type": "Identifier", "name": "$", - "decorators": [], - "optional": false, "range": [ 186, 187 @@ -395,8 +383,6 @@ "left": { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -418,8 +404,6 @@ "left": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 201, 208 @@ -441,8 +425,6 @@ "left": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 212, 216 @@ -609,8 +591,6 @@ "expression": { "type": "Identifier", "name": "array", - "decorators": [], - "optional": false, "range": [ 241, 246 @@ -629,8 +609,6 @@ "context": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 250, 251 @@ -842,8 +820,6 @@ "name": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 293, 303 @@ -904,8 +880,6 @@ "expression": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 318, 322 diff --git a/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json b/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json index 41a1bb57..aca8ca72 100644 --- a/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-scope-issue01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -8657,8 +8653,6 @@ "local": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -8696,8 +8690,6 @@ "identifier": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 293, 303 @@ -8718,8 +8710,6 @@ "resolved": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -8744,8 +8734,6 @@ { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8768,8 +8756,6 @@ "name": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8787,12 +8773,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8849,8 +8832,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8871,8 +8852,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8893,8 +8872,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 212, 216 @@ -8915,8 +8892,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8937,8 +8912,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 318, 322 @@ -8959,8 +8932,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -8985,8 +8956,6 @@ { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9009,8 +8978,6 @@ "name": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9028,12 +8995,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9090,8 +9054,6 @@ "identifier": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9112,8 +9074,6 @@ "resolved": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9134,8 +9094,6 @@ "identifier": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 201, 208 @@ -9156,8 +9114,6 @@ "resolved": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9182,8 +9138,6 @@ { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -9206,8 +9160,6 @@ "name": { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -9228,8 +9180,6 @@ "left": { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -9251,8 +9201,6 @@ "left": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 201, 208 @@ -9274,8 +9222,6 @@ "left": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 212, 216 @@ -9366,8 +9312,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -9388,8 +9332,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -9410,8 +9352,6 @@ "identifier": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9432,8 +9372,6 @@ "resolved": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9454,8 +9392,6 @@ "identifier": { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -9476,8 +9412,6 @@ "resolved": { "type": "Identifier", "name": "pageStart", - "decorators": [], - "optional": false, "range": [ 189, 198 @@ -9498,8 +9432,6 @@ "identifier": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 201, 208 @@ -9520,8 +9452,6 @@ "resolved": { "type": "Identifier", "name": "perPage", - "decorators": [], - "optional": false, "range": [ 172, 179 @@ -9542,8 +9472,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 212, 216 @@ -9564,8 +9492,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -9586,8 +9512,6 @@ "identifier": { "type": "Identifier", "name": "array", - "decorators": [], - "optional": false, "range": [ 241, 246 @@ -9611,8 +9535,6 @@ "identifier": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 318, 322 @@ -9633,8 +9555,6 @@ "resolved": { "type": "Identifier", "name": "page", - "decorators": [], - "optional": false, "range": [ 156, 160 @@ -9655,8 +9575,6 @@ "identifier": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 293, 303 @@ -9677,8 +9595,6 @@ "resolved": { "type": "Identifier", "name": "Pagination", - "decorators": [], - "optional": false, "range": [ 100, 110 @@ -9706,8 +9622,6 @@ { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 250, 251 @@ -9730,8 +9644,6 @@ "name": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 250, 251 @@ -9752,8 +9664,6 @@ "expression": { "type": "Identifier", "name": "array", - "decorators": [], - "optional": false, "range": [ 241, 246 @@ -9772,8 +9682,6 @@ "context": { "type": "Identifier", "name": "_", - "decorators": [], - "optional": false, "range": [ 250, 251 @@ -9984,8 +9892,6 @@ "identifier": { "type": "Identifier", "name": "array", - "decorators": [], - "optional": false, "range": [ 241, 246 @@ -10013,8 +9919,6 @@ "identifier": { "type": "Identifier", "name": "array", - "decorators": [], - "optional": false, "range": [ 241, 246 diff --git a/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json b/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json index 995267aa..654c5d3c 100644 --- a/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json +++ b/tests/fixtures/parser/ast/ts-shorthand-attr01-output.json @@ -104,12 +104,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -160,7 +157,6 @@ } } ], - "declare": false, "range": [ 20, 40 @@ -279,8 +275,6 @@ "expression": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 62, 65 @@ -464,8 +458,6 @@ "key": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 84, 87 @@ -484,8 +476,6 @@ "value": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 84, 87 diff --git a/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json b/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json index fdfb806d..779dfd06 100644 --- a/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-shorthand-attr01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8654,12 +8650,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8716,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8738,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8760,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 62, 65 @@ -8782,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8804,8 +8789,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 84, 87 @@ -8826,8 +8809,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8852,8 +8833,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8874,8 +8853,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8896,8 +8873,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 62, 65 @@ -8918,8 +8893,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 @@ -8940,8 +8913,6 @@ "identifier": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 84, 87 @@ -8962,8 +8933,6 @@ "resolved": { "type": "Identifier", "name": "src", - "decorators": [], - "optional": false, "range": [ 26, 29 diff --git a/tests/fixtures/parser/ast/ts-store01-output.json b/tests/fixtures/parser/ast/ts-store01-output.json index 881f1efa..325c8e68 100644 --- a/tests/fixtures/parser/ast/ts-store01-output.json +++ b/tests/fixtures/parser/ast/ts-store01-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -201,12 +197,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -248,8 +241,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 72, 80 @@ -297,7 +288,6 @@ } } ], - "declare": false, "range": [ 62, 83 @@ -319,12 +309,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -366,8 +353,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 95, 103 @@ -415,7 +400,6 @@ } } ], - "declare": false, "range": [ 85, 106 @@ -437,12 +421,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -493,7 +474,6 @@ } } ], - "declare": false, "range": [ 108, 124 @@ -511,12 +491,9 @@ }, { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -589,12 +566,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -602,8 +576,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -699,7 +671,6 @@ } } ], - "declare": false, "range": [ 143, 162 @@ -772,8 +743,6 @@ "expression": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 174, 176 @@ -828,8 +797,6 @@ "expression": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 179, 180 @@ -884,8 +851,6 @@ "expression": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 183, 185 @@ -940,8 +905,6 @@ "expression": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -996,8 +959,6 @@ "expression": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 192, 194 @@ -1052,8 +1013,6 @@ "expression": { "type": "Identifier", "name": "$unknown", - "decorators": [], - "optional": false, "range": [ 197, 205 diff --git a/tests/fixtures/parser/ast/ts-store01-scope-output.json b/tests/fixtures/parser/ast/ts-store01-scope-output.json index 831b293e..ed305b45 100644 --- a/tests/fixtures/parser/ast/ts-store01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store01-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 72, 80 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8761,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 95, 103 @@ -8783,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8809,8 +8793,6 @@ { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8833,8 +8815,6 @@ "name": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8852,12 +8832,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8899,8 +8876,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 72, 80 @@ -8954,8 +8929,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8976,8 +8949,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -8998,8 +8969,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 174, 176 @@ -9020,8 +8989,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -9046,8 +9013,6 @@ { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9070,8 +9035,6 @@ "name": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9089,12 +9052,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9136,8 +9096,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 95, 103 @@ -9191,8 +9149,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9213,8 +9169,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9235,8 +9189,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 179, 180 @@ -9257,8 +9209,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -9283,8 +9233,6 @@ { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9307,8 +9255,6 @@ "name": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9326,12 +9272,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9388,8 +9331,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9410,8 +9351,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9432,8 +9371,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 183, 185 @@ -9454,8 +9391,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -9480,8 +9415,6 @@ { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -9504,8 +9437,6 @@ "name": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -9523,12 +9454,9 @@ }, "node": { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -9602,8 +9530,6 @@ "identifier": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -9624,8 +9550,6 @@ "resolved": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -9650,8 +9574,6 @@ { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9659,8 +9581,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -9728,8 +9648,6 @@ "name": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9737,8 +9655,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -9801,12 +9717,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9814,8 +9727,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -9917,8 +9828,6 @@ "identifier": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9926,8 +9835,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -9993,8 +9900,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10002,8 +9907,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10069,8 +9972,6 @@ "identifier": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -10091,8 +9992,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10100,8 +9999,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10167,8 +10064,6 @@ "identifier": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 192, 194 @@ -10189,8 +10084,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10198,8 +10091,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10269,8 +10160,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -10291,8 +10180,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -10313,8 +10200,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 72, 80 @@ -10335,8 +10220,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -10357,8 +10240,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -10379,8 +10260,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -10401,8 +10280,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 95, 103 @@ -10423,8 +10300,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -10445,8 +10320,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -10467,8 +10340,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -10489,8 +10360,6 @@ "identifier": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10498,8 +10367,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10565,8 +10432,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10574,8 +10439,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10641,8 +10504,6 @@ "identifier": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10663,8 +10524,6 @@ "resolved": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 131, 133 @@ -10685,8 +10544,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 174, 176 @@ -10707,8 +10564,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 68, 69 @@ -10729,8 +10584,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 179, 180 @@ -10751,8 +10604,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 91, 92 @@ -10773,8 +10624,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 183, 185 @@ -10795,8 +10644,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 114, 116 @@ -10817,8 +10664,6 @@ "identifier": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "range": [ 188, 189 @@ -10839,8 +10684,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10848,8 +10691,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -10915,8 +10756,6 @@ "identifier": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 192, 194 @@ -10937,8 +10776,6 @@ "resolved": { "type": "Identifier", "name": "c", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10946,8 +10783,6 @@ "typeName": { "type": "Identifier", "name": "$c", - "decorators": [], - "optional": false, "range": [ 152, 154 @@ -11013,8 +10848,6 @@ "identifier": { "type": "Identifier", "name": "$unknown", - "decorators": [], - "optional": false, "range": [ 197, 205 @@ -11041,8 +10874,6 @@ "identifier": { "type": "Identifier", "name": "$unknown", - "decorators": [], - "optional": false, "range": [ 197, 205 @@ -11070,8 +10901,6 @@ "identifier": { "type": "Identifier", "name": "$unknown", - "decorators": [], - "optional": false, "range": [ 197, 205 diff --git a/tests/fixtures/parser/ast/ts-store02-output.json b/tests/fixtures/parser/ast/ts-store02-output.json index e44d036f..a7fd4c4f 100644 --- a/tests/fixtures/parser/ast/ts-store02-output.json +++ b/tests/fixtures/parser/ast/ts-store02-output.json @@ -183,8 +183,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -203,8 +201,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -257,12 +253,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -304,8 +297,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -353,7 +344,6 @@ } } ], - "declare": false, "range": [ 79, 100 @@ -375,12 +365,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -617,12 +604,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -664,8 +648,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 167, 175 @@ -713,7 +695,6 @@ } } ], - "declare": false, "range": [ 157, 178 @@ -735,12 +716,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -880,8 +858,6 @@ "expression": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 216, 218 @@ -936,8 +912,6 @@ "expression": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 221, 223 diff --git a/tests/fixtures/parser/ast/ts-store02-scope-output.json b/tests/fixtures/parser/ast/ts-store02-scope-output.json index 2f82922e..ccdef136 100644 --- a/tests/fixtures/parser/ast/ts-store02-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store02-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8761,8 +8749,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 167, 175 @@ -8783,8 +8769,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -8809,8 +8793,6 @@ { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -8833,8 +8815,6 @@ "name": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -8852,12 +8832,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -8899,8 +8876,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -8954,8 +8929,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -8976,8 +8949,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -9002,8 +8973,6 @@ { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9060,8 +9029,6 @@ "name": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9113,12 +9080,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9191,8 +9155,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 216, 218 @@ -9213,8 +9175,6 @@ "resolved": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9273,8 +9233,6 @@ { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9297,8 +9255,6 @@ "name": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9316,12 +9272,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9363,8 +9316,6 @@ "callee": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 167, 175 @@ -9418,8 +9369,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9440,8 +9389,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9466,8 +9413,6 @@ { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9524,8 +9469,6 @@ "name": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9577,12 +9520,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9655,8 +9595,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 221, 223 @@ -9677,8 +9615,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9737,8 +9673,6 @@ "identifier": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -9759,8 +9693,6 @@ "resolved": { "type": "Identifier", "name": "a", - "decorators": [], - "optional": false, "range": [ 85, 86 @@ -9781,8 +9713,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9803,8 +9733,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -9825,8 +9753,6 @@ "identifier": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9847,8 +9773,6 @@ "resolved": { "type": "Identifier", "name": "b", - "decorators": [], - "optional": false, "range": [ 163, 164 @@ -9869,8 +9793,6 @@ "identifier": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 167, 175 @@ -9891,8 +9813,6 @@ "resolved": { "type": "Identifier", "name": "writable", - "decorators": [], - "optional": false, "range": [ 46, 54 @@ -9913,8 +9833,6 @@ "identifier": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "range": [ 216, 218 @@ -9935,8 +9853,6 @@ "resolved": { "type": "Identifier", "name": "$a", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9991,8 +9907,6 @@ "identifier": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "range": [ 221, 223 @@ -10013,8 +9927,6 @@ "resolved": { "type": "Identifier", "name": "$b", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { diff --git a/tests/fixtures/parser/ast/ts-store03-output.json b/tests/fixtures/parser/ast/ts-store03-output.json index b8f436a0..42a3369a 100644 --- a/tests/fixtures/parser/ast/ts-store03-output.json +++ b/tests/fixtures/parser/ast/ts-store03-output.json @@ -127,8 +127,6 @@ "imported": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -147,8 +145,6 @@ "local": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -185,8 +181,6 @@ "imported": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -205,8 +199,6 @@ "local": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -259,12 +251,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -272,7 +261,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -308,26 +315,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -423,7 +410,6 @@ } } ], - "declare": false, "range": [ 72, 116 @@ -445,12 +431,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -458,7 +441,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -494,26 +495,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -609,7 +590,6 @@ } } ], - "declare": false, "range": [ 118, 156 @@ -631,12 +611,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -644,7 +621,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -680,26 +675,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -812,7 +787,6 @@ } } ], - "declare": false, "range": [ 158, 212 @@ -841,8 +815,6 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 240, 251 @@ -878,8 +850,6 @@ "expression": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 255, 265 @@ -915,8 +885,6 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 269, 285 @@ -963,14 +931,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "fn", - "decorators": [], - "optional": false, "range": [ 231, 233 @@ -1077,8 +1042,6 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 301, 312 @@ -1133,8 +1096,6 @@ "expression": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 315, 325 @@ -1189,8 +1150,6 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 328, 344 diff --git a/tests/fixtures/parser/ast/ts-store03-scope-output.json b/tests/fixtures/parser/ast/ts-store03-scope-output.json index 91a9b553..b7b2b987 100644 --- a/tests/fixtures/parser/ast/ts-store03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store03-scope-output.json @@ -8611,8 +8611,6 @@ { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8635,8 +8633,6 @@ "name": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8658,8 +8654,6 @@ "imported": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8678,8 +8672,6 @@ "local": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8717,8 +8709,6 @@ "identifier": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 88, 96 @@ -8739,8 +8729,6 @@ "resolved": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -8765,8 +8753,6 @@ { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8789,8 +8775,6 @@ "name": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8812,8 +8796,6 @@ "imported": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8832,8 +8814,6 @@ "local": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8871,8 +8851,6 @@ "identifier": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 133, 141 @@ -8893,8 +8871,6 @@ "resolved": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8915,8 +8891,6 @@ "identifier": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 179, 187 @@ -8937,8 +8911,6 @@ "resolved": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -8963,8 +8935,6 @@ { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8972,7 +8942,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9008,26 +8996,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9113,8 +9081,6 @@ "name": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9122,7 +9088,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9158,26 +9142,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9258,12 +9222,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9271,7 +9232,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9307,26 +9286,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9428,8 +9387,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 240, 251 @@ -9450,8 +9407,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9459,7 +9414,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9495,26 +9468,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9598,8 +9551,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 301, 312 @@ -9620,8 +9571,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9629,7 +9578,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9665,26 +9632,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9768,8 +9715,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 301, 312 @@ -9790,8 +9735,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9799,7 +9742,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9835,26 +9796,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -9942,8 +9883,6 @@ { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9951,7 +9890,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9987,26 +9944,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10092,8 +10029,6 @@ "name": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10101,7 +10036,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10137,26 +10090,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10237,12 +10170,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10250,7 +10180,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10286,26 +10234,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10407,8 +10335,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 255, 265 @@ -10429,8 +10355,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10438,7 +10362,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10474,26 +10416,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10577,8 +10499,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 315, 325 @@ -10599,8 +10519,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10608,7 +10526,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10644,26 +10580,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10747,8 +10663,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 315, 325 @@ -10769,8 +10683,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10778,7 +10690,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10814,26 +10744,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -10921,8 +10831,6 @@ { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10930,7 +10838,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10958,31 +10884,11 @@ "loc": { "start": { "line": 5, - "column": 30 - }, - "end": { - "line": 5, - "column": 39 - } - } - }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 + "column": 30 }, "end": { "line": 5, - "column": 30 + "column": 39 } } }, @@ -11088,8 +10994,6 @@ "name": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11097,7 +11001,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11133,26 +11055,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -11250,12 +11152,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11263,7 +11162,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11299,26 +11216,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -11437,8 +11334,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 269, 285 @@ -11459,8 +11354,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11468,7 +11361,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11504,26 +11415,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -11624,8 +11515,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 328, 344 @@ -11646,8 +11535,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11655,7 +11542,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11691,26 +11596,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -11811,8 +11696,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 328, 344 @@ -11833,8 +11716,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11842,7 +11723,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11878,26 +11777,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -12002,8 +11881,6 @@ { "type": "Identifier", "name": "fn", - "decorators": [], - "optional": false, "range": [ 231, 233 @@ -12026,8 +11903,6 @@ "name": { "type": "Identifier", "name": "fn", - "decorators": [], - "optional": false, "range": [ 231, 233 @@ -12054,8 +11929,6 @@ "expression": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 240, 251 @@ -12091,8 +11964,6 @@ "expression": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 255, 265 @@ -12128,8 +11999,6 @@ "expression": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 269, 285 @@ -12176,14 +12045,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "fn", - "decorators": [], - "optional": false, "range": [ 231, 233 @@ -12225,8 +12091,6 @@ "identifier": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 88, 96 @@ -12247,8 +12111,6 @@ "resolved": { "type": "Identifier", "name": "Writable", - "decorators": [], - "optional": false, "range": [ 29, 37 @@ -12269,8 +12131,6 @@ "identifier": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 133, 141 @@ -12291,8 +12151,6 @@ "resolved": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -12313,8 +12171,6 @@ "identifier": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 179, 187 @@ -12335,8 +12191,6 @@ "resolved": { "type": "Identifier", "name": "Readable", - "decorators": [], - "optional": false, "range": [ 39, 47 @@ -12357,8 +12211,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 301, 312 @@ -12379,8 +12231,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12388,7 +12238,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12424,26 +12292,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -12527,8 +12375,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 315, 325 @@ -12549,8 +12395,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12558,7 +12402,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12586,31 +12448,11 @@ "loc": { "start": { "line": 4, - "column": 24 - }, - "end": { - "line": 4, - "column": 32 - } - } - }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 + "column": 24 }, "end": { "line": 4, - "column": 24 + "column": 32 } } }, @@ -12697,8 +12539,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 328, 344 @@ -12719,8 +12559,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12728,7 +12566,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12764,26 +12620,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -12897,8 +12733,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 240, 251 @@ -12919,8 +12753,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12928,7 +12760,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12964,26 +12814,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -13067,8 +12897,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 255, 265 @@ -13089,8 +12917,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13098,7 +12924,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13134,26 +12978,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -13237,8 +13061,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 269, 285 @@ -13259,8 +13081,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13268,7 +13088,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13304,26 +13142,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 @@ -13427,8 +13245,6 @@ "identifier": { "type": "Identifier", "name": "$maybeUndef", - "decorators": [], - "optional": false, "range": [ 240, 251 @@ -13449,8 +13265,6 @@ "resolved": { "type": "Identifier", "name": "maybeUndef", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13458,7 +13272,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13494,26 +13326,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Writable", - "decorators": [], - "optional": false, - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, "range": [ 88, 104 @@ -13597,8 +13409,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNull", - "decorators": [], - "optional": false, "range": [ 255, 265 @@ -13619,8 +13429,6 @@ "resolved": { "type": "Identifier", "name": "maybeNull", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13628,7 +13436,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13664,26 +13490,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, "range": [ 133, 149 @@ -13767,8 +13573,6 @@ "identifier": { "type": "Identifier", "name": "$maybeNullAndStr", - "decorators": [], - "optional": false, "range": [ 269, 285 @@ -13789,8 +13593,6 @@ "resolved": { "type": "Identifier", "name": "maybeNullAndStr", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -13798,7 +13600,25 @@ "types": [ { "type": "TSTypeReference", - "typeArguments": { + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + "typeParameters": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13834,26 +13654,6 @@ } } }, - "typeName": { - "type": "Identifier", - "name": "Readable", - "decorators": [], - "optional": false, - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, "range": [ 179, 196 diff --git a/tests/fixtures/parser/ast/ts-use01-output.json b/tests/fixtures/parser/ast/ts-use01-output.json index 6ab29c98..965bef68 100644 --- a/tests/fixtures/parser/ast/ts-use01-output.json +++ b/tests/fixtures/parser/ast/ts-use01-output.json @@ -100,12 +100,9 @@ "body": [ { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -132,8 +129,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -145,8 +140,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 54, 57 @@ -162,9 +155,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -367,12 +357,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -394,8 +381,6 @@ "callee": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -443,7 +428,6 @@ } } ], - "declare": false, "range": [ 147, 171 @@ -474,8 +458,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 185, 188 @@ -492,7 +474,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -548,8 +529,6 @@ "callee": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -608,8 +587,6 @@ "key": { "type": "Identifier", "name": "destroy", - "decorators": [], - "optional": false, "range": [ 215, 222 @@ -626,7 +603,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -730,14 +706,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -757,8 +730,6 @@ { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -766,8 +737,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -831,8 +800,6 @@ { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -840,8 +807,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -1001,8 +966,6 @@ "name": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 267, 275 @@ -1056,8 +1019,6 @@ "object": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 315, 320 @@ -1077,8 +1038,6 @@ "property": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 321, 324 @@ -1147,8 +1106,6 @@ { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 diff --git a/tests/fixtures/parser/ast/ts-use01-scope-output.json b/tests/fixtures/parser/ast/ts-use01-scope-output.json index 2549d985..b67cc15d 100644 --- a/tests/fixtures/parser/ast/ts-use01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-use01-scope-output.json @@ -478,8 +478,6 @@ "identifier": { "type": "Identifier", "name": "Parameters", - "decorators": [], - "optional": false, "range": [ 341, 351 @@ -3858,8 +3856,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -8663,8 +8659,6 @@ { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -8687,8 +8681,6 @@ "name": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -8706,12 +8698,9 @@ }, "node": { "type": "TSTypeAliasDeclaration", - "declare": false, "id": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -8738,8 +8727,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8751,8 +8738,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 54, 57 @@ -8768,9 +8753,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -8968,8 +8950,6 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -8990,8 +8970,6 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -9016,8 +8994,6 @@ { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9040,8 +9016,6 @@ "name": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9069,12 +9043,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -9096,8 +9067,6 @@ "callee": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -9145,7 +9114,6 @@ } } ], - "declare": false, "range": [ 147, 171 @@ -9176,8 +9144,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 185, 188 @@ -9194,7 +9160,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -9250,8 +9215,6 @@ "callee": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -9310,8 +9273,6 @@ "key": { "type": "Identifier", "name": "destroy", - "decorators": [], - "optional": false, "range": [ 215, 222 @@ -9328,7 +9289,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -9432,14 +9392,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9459,8 +9416,6 @@ { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9468,8 +9423,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -9533,8 +9486,6 @@ { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9542,8 +9493,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -9627,8 +9576,6 @@ "identifier": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 359, 367 @@ -9649,8 +9596,6 @@ "resolved": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9671,8 +9616,6 @@ "identifier": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 267, 275 @@ -9693,8 +9636,6 @@ "resolved": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9719,8 +9660,6 @@ "identifier": { "type": "Identifier", "name": "Parameters", - "decorators": [], - "optional": false, "range": [ 341, 351 @@ -9744,8 +9683,6 @@ "identifier": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 359, 367 @@ -9766,8 +9703,6 @@ "resolved": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9788,8 +9723,6 @@ "identifier": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 267, 275 @@ -9810,8 +9743,6 @@ "resolved": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -9844,8 +9775,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9857,8 +9786,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 54, 57 @@ -9874,9 +9801,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9979,8 +9903,6 @@ "name": { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -9992,8 +9914,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 54, 57 @@ -10009,9 +9929,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10113,8 +10030,6 @@ { "type": "Identifier", "name": "p", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10126,8 +10041,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 54, 57 @@ -10143,9 +10056,6 @@ } } }, - "optional": false, - "readonly": false, - "static": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10318,8 +10228,6 @@ { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10327,8 +10235,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -10396,8 +10302,6 @@ "name": { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10405,8 +10309,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -10479,12 +10381,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -10506,8 +10405,6 @@ "callee": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -10555,7 +10452,6 @@ } } ], - "declare": false, "range": [ 147, 171 @@ -10586,8 +10482,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 185, 188 @@ -10604,7 +10498,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -10660,8 +10553,6 @@ "callee": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -10720,8 +10611,6 @@ "key": { "type": "Identifier", "name": "destroy", - "decorators": [], - "optional": false, "range": [ 215, 222 @@ -10738,7 +10627,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -10842,14 +10730,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -10869,8 +10754,6 @@ { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10878,8 +10761,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -10943,8 +10824,6 @@ { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -10952,8 +10831,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -11040,8 +10917,6 @@ { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11049,8 +10924,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -11118,8 +10991,6 @@ "name": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11127,8 +10998,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -11201,12 +11070,9 @@ "declarations": [ { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -11228,8 +11094,6 @@ "callee": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -11277,7 +11141,6 @@ } } ], - "declare": false, "range": [ 147, 171 @@ -11308,8 +11171,6 @@ "key": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 185, 188 @@ -11326,7 +11187,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "Literal", @@ -11382,8 +11242,6 @@ "callee": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -11442,8 +11300,6 @@ "key": { "type": "Identifier", "name": "destroy", - "decorators": [], - "optional": false, "range": [ 215, 222 @@ -11460,7 +11316,6 @@ } }, "method": false, - "optional": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -11564,14 +11419,11 @@ } } }, - "declare": false, "expression": false, "generator": false, "id": { "type": "Identifier", "name": "myAction", - "decorators": [], - "optional": false, "range": [ 89, 97 @@ -11591,8 +11443,6 @@ { "type": "Identifier", "name": "_node", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11600,8 +11450,6 @@ "typeName": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -11665,8 +11513,6 @@ { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11674,8 +11520,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -11759,8 +11603,6 @@ "identifier": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -11781,8 +11623,6 @@ "resolved": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -11790,8 +11630,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -11861,8 +11699,6 @@ { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -11885,8 +11721,6 @@ "name": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -11904,12 +11738,9 @@ }, "node": { "type": "VariableDeclarator", - "definite": false, "id": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -11931,8 +11762,6 @@ "callee": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -11986,8 +11815,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12008,8 +11835,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12030,8 +11855,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -12052,8 +11875,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12078,8 +11899,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -12103,8 +11922,6 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -12125,8 +11942,6 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -12147,8 +11962,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12169,8 +11982,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12191,8 +12002,6 @@ "identifier": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "range": [ 162, 168 @@ -12213,8 +12022,6 @@ "resolved": { "type": "Identifier", "name": "params", - "decorators": [], - "optional": false, "typeAnnotation": { "type": "TSTypeAnnotation", "typeAnnotation": { @@ -12222,8 +12029,6 @@ "typeName": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -12289,8 +12094,6 @@ "identifier": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 176, 182 @@ -12311,8 +12114,6 @@ "resolved": { "type": "Identifier", "name": "result", - "decorators": [], - "optional": false, "range": [ 153, 159 @@ -12344,8 +12145,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -12369,8 +12168,6 @@ "identifier": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 126, 139 @@ -12391,8 +12188,6 @@ "resolved": { "type": "Identifier", "name": "MyActionParam", - "decorators": [], - "optional": false, "range": [ 26, 39 @@ -12425,8 +12220,6 @@ { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 @@ -12449,8 +12242,6 @@ "name": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 @@ -12480,8 +12271,6 @@ "object": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 315, 320 @@ -12501,8 +12290,6 @@ "property": { "type": "Identifier", "name": "foo", - "decorators": [], - "optional": false, "range": [ 321, 324 @@ -12571,8 +12358,6 @@ { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 @@ -12611,8 +12396,6 @@ "identifier": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 315, 320 @@ -12633,8 +12416,6 @@ "resolved": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 @@ -12659,8 +12440,6 @@ "identifier": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 315, 320 @@ -12681,8 +12460,6 @@ "resolved": { "type": "Identifier", "name": "param", - "decorators": [], - "optional": false, "range": [ 297, 302 @@ -12712,8 +12489,6 @@ "identifier": { "type": "Identifier", "name": "HTMLElement", - "decorators": [], - "optional": false, "range": [ 105, 116 @@ -12737,8 +12512,6 @@ "identifier": { "type": "Identifier", "name": "Parameters", - "decorators": [], - "optional": false, "range": [ 341, 351 diff --git a/tests/src/parser/test-utils.ts b/tests/src/parser/test-utils.ts index 7ce3fd9d..1141a8b6 100644 --- a/tests/src/parser/test-utils.ts +++ b/tests/src/parser/test-utils.ts @@ -243,9 +243,17 @@ function nodeReplacer(key: string, value: any): any { if (key === "parent") { return undefined; } - if (key === "assertions" && Array.isArray(value) && value.length === 0) { + if ( + (key === "assertions" || key === "decorators") && + Array.isArray(value) && + value.length === 0 + ) { return undefined; } + if (key === "definite" && value === false) { + return undefined; + } + if (value instanceof RegExp) { return String(value); } @@ -253,7 +261,13 @@ function nodeReplacer(key: string, value: any): any { return null; // Make it null so it can be checked on node8. // return `${String(value)}n` } - return normalizeObject(value); + const obj = normalizeObject(value); + if (obj?.type === "Identifier" && obj?.optional === false) { + const copy = { ...obj }; + delete copy.optional; + return copy; + } + return obj; } type SvelteKeysType = { From 060d0a4142d274d729e5db778265c899bb25fc8f Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Thu, 20 Jul 2023 09:59:28 +0900 Subject: [PATCH 4/5] fix testcase --- .../issue325-eslint-plugin-svelte-output.json | 38 +- ...325-eslint-plugin-svelte-scope-output.json | 76 +- .../parser/ast/ts-event03-output.json | 2 +- .../parser/ast/ts-event03-scope-output.json | 2 +- .../parser/ast/ts-promise01-output.json | 38 +- .../parser/ast/ts-promise01-scope-output.json | 342 +++--- .../parser/ast/ts-store03-output.json | 114 +- .../parser/ast/ts-store03-scope-output.json | 1034 ++++++++--------- tests/src/parser/test-utils.ts | 50 +- 9 files changed, 865 insertions(+), 831 deletions(-) diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json index 28b7ba5e..7cda1a69 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-output.json @@ -540,25 +540,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -594,6 +576,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 diff --git a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json index e314018b..5ea43ea8 100644 --- a/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json +++ b/tests/fixtures/parser/ast/issue325-eslint-plugin-svelte-scope-output.json @@ -9656,25 +9656,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9710,6 +9692,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 @@ -10433,25 +10433,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 119, - 126 - ], - "loc": { - "start": { - "line": 3, - "column": 58 - }, - "end": { - "line": 3, - "column": 65 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10487,6 +10469,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 119, + 126 + ], + "loc": { + "start": { + "line": 3, + "column": 58 + }, + "end": { + "line": 3, + "column": 65 + } + } + }, "range": [ 119, 134 diff --git a/tests/fixtures/parser/ast/ts-event03-output.json b/tests/fixtures/parser/ast/ts-event03-output.json index 26df8365..dbd1d8f4 100644 --- a/tests/fixtures/parser/ast/ts-event03-output.json +++ b/tests/fixtures/parser/ast/ts-event03-output.json @@ -237,7 +237,7 @@ } }, "optional": false, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { diff --git a/tests/fixtures/parser/ast/ts-event03-scope-output.json b/tests/fixtures/parser/ast/ts-event03-scope-output.json index f1647e70..eeb73d4d 100644 --- a/tests/fixtures/parser/ast/ts-event03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-event03-scope-output.json @@ -8832,7 +8832,7 @@ } }, "optional": false, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { diff --git a/tests/fixtures/parser/ast/ts-promise01-output.json b/tests/fixtures/parser/ast/ts-promise01-output.json index 7cb103c3..107f6348 100644 --- a/tests/fixtures/parser/ast/ts-promise01-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-output.json @@ -111,25 +111,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -237,6 +219,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 diff --git a/tests/fixtures/parser/ast/ts-promise01-scope-output.json b/tests/fixtures/parser/ast/ts-promise01-scope-output.json index e41c68eb..f87aaa4a 100644 --- a/tests/fixtures/parser/ast/ts-promise01-scope-output.json +++ b/tests/fixtures/parser/ast/ts-promise01-scope-output.json @@ -8639,25 +8639,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8765,6 +8747,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -8821,25 +8821,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8947,6 +8929,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9001,25 +9001,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9127,6 +9109,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9391,25 +9391,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9517,6 +9499,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9571,25 +9571,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9697,6 +9679,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9771,25 +9771,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9897,6 +9879,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -9955,25 +9955,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10081,6 +10063,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -10135,25 +10135,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10261,6 +10243,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 @@ -10381,25 +10381,7 @@ "type": "TSTypeAnnotation", "typeAnnotation": { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Promise", - "range": [ - 32, - 39 - ], - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10507,6 +10489,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Promise", + "range": [ + 32, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 13 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, "range": [ 32, 51 diff --git a/tests/fixtures/parser/ast/ts-store03-output.json b/tests/fixtures/parser/ast/ts-store03-output.json index 42a3369a..f5c30d10 100644 --- a/tests/fixtures/parser/ast/ts-store03-output.json +++ b/tests/fixtures/parser/ast/ts-store03-output.json @@ -261,25 +261,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -315,6 +297,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -441,25 +441,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -495,6 +477,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -621,25 +621,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -675,6 +657,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 diff --git a/tests/fixtures/parser/ast/ts-store03-scope-output.json b/tests/fixtures/parser/ast/ts-store03-scope-output.json index b7b2b987..beb8b598 100644 --- a/tests/fixtures/parser/ast/ts-store03-scope-output.json +++ b/tests/fixtures/parser/ast/ts-store03-scope-output.json @@ -8942,25 +8942,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -8996,6 +8978,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9088,25 +9088,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9142,6 +9124,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9232,25 +9232,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9286,6 +9268,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9414,25 +9414,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9468,6 +9450,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9578,25 +9578,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9632,6 +9614,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9742,25 +9742,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9796,6 +9778,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -9890,25 +9890,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -9944,6 +9926,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10036,25 +10036,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10090,6 +10072,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10180,25 +10180,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10234,6 +10216,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10362,25 +10362,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10416,6 +10398,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10526,25 +10526,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10580,6 +10562,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10690,25 +10690,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10744,6 +10726,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -10838,25 +10838,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -10884,11 +10866,29 @@ "loc": { "start": { "line": 5, - "column": 30 + "column": 30 + }, + "end": { + "line": 5, + "column": 39 + } + } + }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 }, "end": { "line": 5, - "column": 39 + "column": 30 } } }, @@ -11001,25 +11001,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11055,6 +11037,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11162,25 +11162,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11216,6 +11198,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11361,25 +11361,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11415,6 +11397,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11542,25 +11542,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11596,6 +11578,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -11723,25 +11723,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -11777,6 +11759,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -12238,25 +12238,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12292,6 +12274,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -12402,25 +12402,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12448,11 +12430,29 @@ "loc": { "start": { "line": 4, - "column": 24 + "column": 24 + }, + "end": { + "line": 4, + "column": 32 + } + } + }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 }, "end": { "line": 4, - "column": 32 + "column": 24 } } }, @@ -12566,25 +12566,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12620,6 +12602,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -12760,25 +12760,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12814,6 +12796,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -12924,25 +12924,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -12978,6 +12960,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -13088,25 +13088,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13142,6 +13124,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 @@ -13272,25 +13272,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Writable", - "range": [ - 88, - 96 - ], - "loc": { - "start": { - "line": 3, - "column": 17 - }, - "end": { - "line": 3, - "column": 25 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13326,6 +13308,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Writable", + "range": [ + 88, + 96 + ], + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, "range": [ 88, 104 @@ -13436,25 +13436,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 133, - 141 - ], - "loc": { - "start": { - "line": 4, - "column": 16 - }, - "end": { - "line": 4, - "column": 24 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13490,6 +13472,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 133, + 141 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, "range": [ 133, 149 @@ -13600,25 +13600,7 @@ "types": [ { "type": "TSTypeReference", - "typeName": { - "type": "Identifier", - "name": "Readable", - "range": [ - 179, - 187 - ], - "loc": { - "start": { - "line": 5, - "column": 22 - }, - "end": { - "line": 5, - "column": 30 - } - } - }, - "typeParameters": { + "typeArguments": { "type": "TSTypeParameterInstantiation", "params": [ { @@ -13654,6 +13636,24 @@ } } }, + "typeName": { + "type": "Identifier", + "name": "Readable", + "range": [ + 179, + 187 + ], + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, "range": [ 179, 196 diff --git a/tests/src/parser/test-utils.ts b/tests/src/parser/test-utils.ts index 1141a8b6..57dc7306 100644 --- a/tests/src/parser/test-utils.ts +++ b/tests/src/parser/test-utils.ts @@ -236,10 +236,15 @@ export function normalizeError(error: any): any { }; } +/* eslint-disable complexity -- ignore */ /** * Remove `parent` properties from the given AST. */ -function nodeReplacer(key: string, value: any): any { +function nodeReplacer( + /* eslint-enable complexity -- ignore */ + key: string, + value: any, +): any { if (key === "parent") { return undefined; } @@ -248,9 +253,11 @@ function nodeReplacer(key: string, value: any): any { Array.isArray(value) && value.length === 0 ) { + // Node types changed in typescript-eslint v6. return undefined; } - if (key === "definite" && value === false) { + if ((key === "definite" || key === "declare") && value === false) { + // Node types changed in typescript-eslint v6. return undefined; } @@ -261,13 +268,40 @@ function nodeReplacer(key: string, value: any): any { return null; // Make it null so it can be checked on node8. // return `${String(value)}n` } - const obj = normalizeObject(value); - if (obj?.type === "Identifier" && obj?.optional === false) { - const copy = { ...obj }; - delete copy.optional; - return copy; + let obj = value; + if (obj) { + if ( + (obj.type === "Identifier" || + obj.type === "Property" || + obj.type === "ObjectPattern" || + obj.type === "AssignmentPattern") && + obj.optional === false + ) { + // Node types changed in typescript-eslint v6. + obj = { ...obj }; + delete obj.optional; + } + if ( + (obj.type === "TSTypeReference" || obj.type === "CallExpression") && + obj.typeParameters + ) { + // Node types changed in typescript-eslint v6. + const copy = { ...obj }; + copy.typeArguments = obj.typeParameters; + delete copy.typeParameters; + obj = copy; + } + if (obj.type === "TSPropertySignature") { + // Node types changed in typescript-eslint v6. + obj = { ...obj }; + for (const k of ["optional", "readonly", "static"]) { + if (obj[k] === false) { + delete obj[k]; + } + } + } } - return obj; + return normalizeObject(obj); } type SvelteKeysType = { From 7e99449425e76b04f568e3505a0a345e874e8410 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Thu, 20 Jul 2023 10:04:05 +0900 Subject: [PATCH 5/5] fix ci --- .github/workflows/NodeCI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml index f9fbef42..68d592bb 100644 --- a/.github/workflows/NodeCI.yml +++ b/.github/workflows/NodeCI.yml @@ -49,7 +49,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Svelte v3 run: |+ - pnpm install -D svelte@3 + pnpm install -D svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 rm -rf node_modules - name: Install Packages run: pnpm install @@ -109,7 +109,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install eslint v7 run: |+ - pnpm install -D eslint@7 svelte@3 + pnpm install -D eslint@7 svelte@3 @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5 rm -rf node_modules - name: Install Packages run: pnpm install