From 9bf2557193828a89d08305bf53b5fee37f13295a Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 24 Dec 2022 00:13:56 -0500 Subject: [PATCH 1/8] feat(typescript-estree): remove optionality from AST boolean properties --- .../declaration/FunctionDeclaration/spec.ts | 1 - .../src/declaration/TSDeclareFunction/spec.ts | 3 +- .../src/declaration/TSEnumDeclaration/spec.ts | 6 +- .../TSInterfaceDeclaration/spec.ts | 3 +- .../declaration/TSModuleDeclaration/spec.ts | 6 +- .../TSTypeAliasDeclaration/spec.ts | 3 +- .../declaration/VariableDeclaration/spec.ts | 3 +- .../ast-spec/src/element/Property/spec.ts | 2 +- .../ast-spec/src/element/TSEnumMember/spec.ts | 4 +- .../src/element/TSIndexSignature/spec.ts | 6 +- .../src/element/TSMethodSignature/spec.ts | 8 +- .../src/element/TSPropertySignature/spec.ts | 8 +- .../src/expression/Identifier/spec.ts | 2 +- .../src/parameter/ArrayPattern/spec.ts | 2 +- .../src/parameter/AssignmentPattern/spec.ts | 2 +- .../src/parameter/ObjectPattern/spec.ts | 2 +- .../src/parameter/RestElement/spec.ts | 2 +- .../src/parameter/TSParameterProperty/spec.ts | 8 +- .../src/special/VariableDeclarator/spec.ts | 2 +- packages/typescript-estree/src/convert.ts | 64 +++++-- .../lib/__snapshots__/convert.test.ts.snap | 8 + .../lib/__snapshots__/parse.test.ts.snap | 64 +++++++ .../__snapshots__/semanticInfo.test.ts.snap | 10 ++ .../block-trailing-comment.src.js.shot | 1 + .../comment-within-condition.src.js.shot | 1 + ...export-default-anonymous-class.src.js.shot | 1 + .../comments/jsdoc-comment.src.js.shot | 3 + .../jsx-attr-and-text-with-url.src.js.shot | 3 + .../comments/jsx-block-comment.src.js.shot | 3 + .../jsx-comment-after-jsx.src.js.shot | 3 + ...comment-after-self-closing-jsx.src.js.shot | 3 + ...sx-generic-with-comment-in-tag.src.js.shot | 3 + .../jsx-tag-comment-after-prop.src.js.shot | 3 + .../comments/jsx-tag-comments.src.js.shot | 3 + ...ext-with-multiline-non-comment.src.js.shot | 3 + .../comments/jsx-text-with-url.src.js.shot | 15 ++ .../jsx-with-greather-than.src.js.shot | 4 + .../comments/jsx-with-operators.src.js.shot | 4 + .../mix-line-and-block-comments.src.js.shot | 3 + .../comments/no-comment-regex.src.js.shot | 3 + .../comments/no-comment-template.src.js.shot | 4 + .../surrounding-call-comments.src.js.shot | 2 + .../surrounding-debugger-comments.src.js.shot | 1 + .../surrounding-return-comments.src.js.shot | 1 + .../surrounding-throw-comments.src.js.shot | 1 + ...urrounding-while-loop-comments.src.js.shot | 4 + ...allthrough-comment-in-function.src.js.shot | 4 + .../switch-fallthrough-comment.src.js.shot | 2 + ...no-default-comment-in-function.src.js.shot | 3 + ...lt-comment-in-nested-functions.src.js.shot | 13 ++ .../switch-no-default-comment.src.js.shot | 1 + .../template-string-block.src.js.shot | 1 + ...type-assertion-regression-test.src.ts.shot | 5 + .../array-literal-in-lhs.src.js.shot | 3 + .../as-param-with-params.src.js.shot | 3 + .../arrowFunctions/as-param.src.js.shot | 1 + .../basic-in-binary-expression.src.js.shot | 2 + .../block-body-not-object.src.js.shot | 2 + .../arrowFunctions/block-body.src.js.shot | 1 + .../error-dup-params.src.js.shot | 2 + ...rror-strict-default-param-eval.src.js.shot | 2 + .../error-strict-dup-params.src.js.shot | 2 + .../error-strict-eval-return.src.js.shot | 1 + .../error-strict-eval.src.js.shot | 1 + .../error-strict-octal.src.js.shot | 1 + .../error-strict-param-arguments.src.js.shot | 2 + .../error-strict-param-eval.src.js.shot | 2 + .../error-strict-param-names.src.js.shot | 2 + ...trict-param-no-paren-arguments.src.js.shot | 1 + ...ror-strict-param-no-paren-eval.src.js.shot | 1 + .../error-two-lines.src.js.shot | 3 + .../arrowFunctions/expression.src.js.shot | 2 + .../arrowFunctions/iife.src.js.shot | 3 + .../multiple-params.src.js.shot | 2 + .../arrowFunctions/no-auto-return.src.js.shot | 2 + .../not-strict-arguments.src.js.shot | 1 + .../not-strict-eval-params.src.js.shot | 2 + .../not-strict-eval.src.js.shot | 1 + .../not-strict-octal.src.js.shot | 1 + .../return-arrow-function.src.js.shot | 2 + .../return-sequence.src.js.shot | 6 + .../single-param-parens.src.js.shot | 1 + ...single-param-return-identifier.src.js.shot | 2 + .../arrowFunctions/single-param.src.js.shot | 1 + .../and-operator-array-object.src.js.shot | 12 ++ .../basics/delete-expression.src.js.shot | 2 + .../basics/do-while-statements.src.js.shot | 5 + .../identifiers-double-underscore.src.js.shot | 5 + .../javascript/basics/instanceof.src.js.shot | 1 + .../new-with-member-expression.src.js.shot | 2 + .../basics/new-without-parens.src.js.shot | 2 + .../or-operator-array-object.src.js.shot | 12 ++ .../basics/update-expression.src.js.shot | 6 + .../blockBindings/const.src.js.shot | 4 + .../let-in-switchcase.src.js.shot | 4 + .../javascript/blockBindings/let.src.js.shot | 4 + .../call-expression-with-array.src.js.shot | 1 + .../call-expression-with-object.src.js.shot | 1 + .../mixed-expression.src.js.shot | 1 + .../new-expression-with-array.src.js.shot | 2 + .../new-expression-with-object.src.js.shot | 1 + .../class-accessor-properties.src.js.shot | 4 + .../class-computed-static-method.src.js.shot | 2 + .../class-method-named-prototype.src.js.shot | 2 + .../class-method-named-static.src.js.shot | 2 + .../class-method-named-with-space.src.js.shot | 2 + .../class-one-method-super.src.js.shot | 2 + .../classes/class-one-method.src.js.shot | 2 + ...ss-private-identifier-accessor.src.js.shot | 3 + ...class-private-identifier-field.src.js.shot | 2 + ...lass-private-identifier-method.src.js.shot | 2 + ...-static-method-named-prototype.src.js.shot | 1 + ...ass-static-method-named-static.src.js.shot | 2 + .../classes/class-static-method.src.js.shot | 2 + ...ethods-and-accessor-properties.src.js.shot | 5 + ...ss-two-computed-static-methods.src.js.shot | 3 + ...o-methods-computed-constructor.src.js.shot | 2 + .../class-two-methods-semi.src.js.shot | 3 + .../class-two-methods-three-semi.src.js.shot | 3 + .../class-two-methods-two-semi.src.js.shot | 3 + .../classes/class-two-methods.src.js.shot | 3 + ...atic-methods-named-constructor.src.js.shot | 3 + ...ss-with-constructor-parameters.src.js.shot | 4 + ...ss-with-constructor-with-space.src.js.shot | 2 + .../class-with-constructor.src.js.shot | 2 + .../derived-class-assign-to-var.src.js.shot | 4 + .../empty-class-double-semi.src.js.shot | 1 + .../classes/empty-class-semi.src.js.shot | 1 + .../classes/empty-class.src.js.shot | 1 + .../empty-literal-derived-class.src.js.shot | 1 + ...valid-class-setter-declaration.src.js.shot | 2 + .../named-class-expression.src.js.shot | 1 + ...named-derived-class-expression.src.js.shot | 1 + .../comma-operator-conditional.src.js.shot | 5 + .../comma-operator-multi.src.js.shot | 3 + .../comma-operator-nested.src.js.shot | 3 + .../comma-operator-return.src.js.shot | 7 + .../comma-operator-simple-nested.src.js.shot | 3 + .../comma-operator-simple.src.js.shot | 3 + .../class-constructor.src.js.shot | 4 + .../defaultParams/class-method.src.js.shot | 4 + .../defaultParams/declaration.src.js.shot | 3 + .../defaultParams/expression.src.js.shot | 3 + .../defaultParams/method.src.js.shot | 5 + .../defaultParams/not-all-params.src.js.shot | 7 + .../arrow-param-array.src.js.shot | 3 + .../arrow-param-nested-array.src.js.shot | 5 + ...rrow-param-nested-object-named.src.js.shot | 11 ++ .../arrow-param-nested-object.src.js.shot | 11 ++ .../arrow-param-object.src.js.shot | 5 + .../param-defaults-array.src.js.shot | 4 + .../param-defaults-object-nested.src.js.shot | 14 ++ .../param-defaults-object.src.js.shot | 6 + .../array-const-undefined.src.js.shot | 4 + .../array-let-undefined.src.js.shot | 4 + .../object-const-named.src.js.shot | 6 + .../object-const-undefined.src.js.shot | 6 + .../object-let-named.src.js.shot | 6 + .../object-let-undefined.src.js.shot | 6 + .../param-array.src.js.shot | 4 + .../param-object-short.src.js.shot | 9 + .../param-object-wrapped.src.js.shot | 9 + .../param-object.src.js.shot | 8 + .../destructuring-and-forOf/loop.src.js.shot | 3 + .../complex-destructured.src.js.shot | 11 ++ .../destructured-array-literal.src.js.shot | 7 + .../destructuring-param.src.js.shot | 7 + ...plex-destructured-spread-first.src.js.shot | 11 ++ .../invalid-not-final-array-empty.src.js.shot | 4 + .../multi-destructured.src.js.shot | 5 + .../not-final-array.src.js.shot | 5 + .../single-destructured.src.js.shot | 4 + .../var-complex-destructured.src.js.shot | 13 ++ ...var-destructured-array-literal.src.js.shot | 9 + .../var-multi-destructured.src.js.shot | 7 + .../var-single-destructured.src.js.shot | 6 + .../destructuring/array-member.src.js.shot | 3 + .../destructuring/array-to-array.src.js.shot | 5 + .../array-var-undefined.src.js.shot | 4 + ...l-expression-destruction-array.src.js.shot | 1 + ...-expression-destruction-object.src.js.shot | 1 + ...class-constructor-params-array.src.js.shot | 5 + ...structor-params-defaults-array.src.js.shot | 7 + ...tructor-params-defaults-object.src.js.shot | 11 ++ ...lass-constructor-params-object.src.js.shot | 9 + .../class-method-params-array.src.js.shot | 5 + ...s-method-params-defaults-array.src.js.shot | 7 + ...-method-params-defaults-object.src.js.shot | 11 ++ .../class-method-params-object.src.js.shot | 9 + .../defaults-array-all.src.js.shot | 10 ++ ...ts-array-longform-nested-multi.src.js.shot | 17 ++ .../defaults-array-multi.src.js.shot | 8 + .../defaults-array-nested-all.src.js.shot | 9 + .../defaults-array-nested-multi.src.js.shot | 8 + .../destructuring/defaults-array.src.js.shot | 4 + .../defaults-object-all.src.js.shot | 16 ++ .../defaults-object-assign.src.js.shot | 9 + .../defaults-object-longform-all.src.js.shot | 16 ++ ...defaults-object-longform-multi.src.js.shot | 14 ++ .../defaults-object-longform.src.js.shot | 8 + .../defaults-object-mixed-multi.src.js.shot | 14 ++ .../defaults-object-multi.src.js.shot | 14 ++ .../defaults-object-nested-all.src.js.shot | 15 ++ .../defaults-object-nested-multi.src.js.shot | 14 ++ .../destructuring/defaults-object.src.js.shot | 8 + .../destructured-array-catch.src.js.shot | 14 ++ .../destructured-object-catch.src.js.shot | 16 ++ ...invalid-defaults-object-assign.src.js.shot | 8 + .../destructuring/named-param.src.js.shot | 5 + .../destructuring/nested-array.src.js.shot | 6 + .../destructuring/nested-object.src.js.shot | 18 ++ .../object-var-named.src.js.shot | 6 + .../object-var-undefined.src.js.shot | 6 + .../param-defaults-array.src.js.shot | 4 + .../param-defaults-object-nested.src.js.shot | 13 ++ .../param-defaults-object.src.js.shot | 6 + .../params-array-wrapped.src.js.shot | 4 + .../destructuring/params-array.src.js.shot | 4 + .../params-multi-object.src.js.shot | 6 + .../params-nested-array.src.js.shot | 5 + .../params-nested-object.src.js.shot | 11 ++ .../params-object-wrapped.src.js.shot | 8 + .../destructuring/params-object.src.js.shot | 8 + .../destructuring/sparse-array.src.js.shot | 4 + .../javascript/directives/block.src.js.shot | 4 + .../directives/directive-in-class.src.js.shot | 6 + .../function-non-strict.src.js.shot | 1 + .../directives/program-order.src.js.shot | 3 + .../javascript/directives/program.src.js.shot | 3 + .../async-generators.src.js.shot | 1 + .../async-iterator.src.js.shot | 5 + .../dynamic-import.src.js.shot | 2 + .../arg-spread.src.js.shot | 7 + .../destructuring-assign-mirror.src.js.shot | 10 ++ ...nction-parameter-object-spread.src.js.shot | 4 + .../invalid-rest-trailing-comma.src.js.shot | 12 ++ .../object-rest.src.js.shot | 19 ++ .../property-spread.src.js.shot | 18 ++ .../shorthand-method-args.src.js.shot | 11 ++ .../shorthand-methods.src.js.shot | 14 ++ .../shorthand-properties.src.js.shot | 17 ++ .../single-spread.src.js.shot | 17 ++ .../spread-trailing-comma.src.js.shot | 7 + .../two-spread.src.js.shot | 15 ++ .../exponential-operators.src.js.shot | 4 + .../javascript/for/for-loop.src.js.shot | 5 + .../javascript/for/for-with-coma.src.js.shot | 9 + .../javascript/for/for-with-const.src.js.shot | 5 + .../for/for-with-function.src.js.shot | 5 + .../javascript/for/for-with-let.src.js.shot | 5 + .../javascript/forIn/for-in-array.src.js.shot | 1 + .../forIn/for-in-bare-nonstrict.src.js.shot | 22 +++ .../for-in-destruction-object.src.js.shot | 10 ++ .../forIn/for-in-destruction.src.js.shot | 6 + .../forIn/for-in-object-with-body.src.js.shot | 1 + .../forIn/for-in-with-assigment.src.js.shot | 6 + .../for-in-with-bare-assigment.src.js.shot | 3 + .../forIn/for-in-with-const.src.js.shot | 6 + .../for-in-with-milti-asigment.src.js.shot | 6 + .../forIn/for-in-with-rest.src.js.shot | 7 + .../forIn/for-in-with-var.src.js.shot | 6 + .../javascript/forOf/for-of-array.src.js.shot | 4 + .../for-of-destruction-object.src.js.shot | 10 ++ .../forOf/for-of-destruction.src.js.shot | 6 + .../forOf/for-of-object.src.js.shot | 4 + ...r-of-with-function-initializer.src.js.shot | 6 + .../forOf/for-of-with-rest.src.js.shot | 7 + .../for-of-with-var-and-braces.src.js.shot | 5 + .../for-of-with-var-and-no-braces.src.js.shot | 5 + ...or-of-with-const-and-no-braces.src.js.shot | 5 + ...-for-of-with-let-and-no-braces.src.js.shot | 5 + .../return-multiline-sequence.src.js.shot | 7 + .../function/return-sequence.src.js.shot | 7 + .../anonymous-generator.src.js.shot | 1 + .../async-generator-function.src.js.shot | 1 + .../async-generator-method.src.js.shot | 6 + .../empty-generator-declaration.src.js.shot | 1 + .../generator-declaration.src.js.shot | 2 + .../generators/yield-delegation.src.js.shot | 1 + .../yield-without-value-in-call.src.js.shot | 1 + .../return-identifier.src.js.shot | 1 + .../importMeta/simple-import-meta.src.js.shot | 3 + .../javascript/labels/label-break.src.js.shot | 2 + .../labels/label-continue.src.js.shot | 2 + .../modules/error-delete.src.js.shot | 2 + .../modules/error-function.src.js.shot | 2 + .../modules/error-strict.src.js.shot | 5 + .../export-async-named-function.src.js.shot | 1 + .../modules/export-const.src.js.shot | 3 + ...t-default-async-named-function.src.js.shot | 1 + .../export-default-named-class.src.js.shot | 1 + .../export-default-named-function.src.js.shot | 1 + .../modules/export-default-object.src.js.shot | 2 + .../modules/export-default-value.src.js.shot | 1 + .../modules/export-from-default.src.js.shot | 2 + .../export-from-named-as-default.src.js.shot | 2 + ...export-from-named-as-specifier.src.js.shot | 2 + ...xport-from-named-as-specifiers.src.js.shot | 4 + .../modules/export-from-specifier.src.js.shot | 2 + .../export-from-specifiers.src.js.shot | 4 + .../modules/export-function.src.js.shot | 1 + .../javascript/modules/export-let.src.js.shot | 3 + .../export-named-as-default.src.js.shot | 2 + .../export-named-as-specifier.src.js.shot | 2 + .../export-named-as-specifiers.src.js.shot | 4 + .../modules/export-named-class.src.js.shot | 1 + .../export-named-specifier.src.js.shot | 2 + .../export-named-specifiers-comma.src.js.shot | 4 + .../export-named-specifiers.src.js.shot | 4 + .../export-var-anonymous-function.src.js.shot | 3 + .../modules/export-var-number.src.js.shot | 3 + .../javascript/modules/export-var.src.js.shot | 3 + ...t-default-and-named-specifiers.src.js.shot | 3 + ...fault-and-namespace-specifiers.src.js.shot | 2 + .../modules/import-default-as.src.js.shot | 2 + .../modules/import-default.src.js.shot | 1 + .../modules/import-jquery.src.js.shot | 1 + .../import-named-as-specifier.src.js.shot | 2 + .../import-named-as-specifiers.src.js.shot | 4 + .../import-named-specifier.src.js.shot | 2 + .../import-named-specifiers-comma.src.js.shot | 4 + .../import-named-specifiers.src.js.shot | 4 + .../import-namespace-specifier.src.js.shot | 1 + .../modules/import-null-as-nil.src.js.shot | 2 + .../modules/invalid-await.src.js.shot | 3 + .../invalid-export-named-default.src.js.shot | 2 + .../newTarget/invalid-new-target.src.js.shot | 5 + .../invalid-unknown-property.src.js.shot | 5 + .../newTarget/simple-new-target.src.js.shot | 6 + .../object-literal-in-lhs.src.js.shot | 3 + .../computed-addition-property.src.js.shot | 5 + .../computed-and-identifier.src.js.shot | 4 + .../computed-getter-and-setter.src.js.shot | 5 + .../computed-string-property.src.js.shot | 5 + .../computed-variable-property.src.js.shot | 6 + ...alone-expression-with-addition.src.js.shot | 1 + ...ndalone-expression-with-method.src.js.shot | 2 + .../standalone-expression.src.js.shot | 2 + .../error-proto-property.src.js.shot | 12 ++ .../error-proto-string-property.src.js.shot | 10 ++ .../strict-duplicate-properties.src.js.shot | 7 + ...ct-duplicate-string-properties.src.js.shot | 5 + .../method-property.src.js.shot | 6 + .../simple-method-named-get.src.js.shot | 3 + .../simple-method-named-set.src.js.shot | 3 + .../simple-method-with-argument.src.js.shot | 4 + ...simple-method-with-string-name.src.js.shot | 2 + .../simple-method.src.js.shot | 3 + .../string-name-method-property.src.js.shot | 5 + .../shorthand-properties.src.js.shot | 19 ++ .../regex/regexp-simple.src.js.shot | 3 + .../regex-u-extended-escape.src.js.shot | 3 + ...egex-u-invalid-extended-escape.src.js.shot | 3 + .../regexUFlag/regex-u-simple.src.js.shot | 3 + .../regexYFlag/regexp-y-simple.src.js.shot | 3 + .../restParams/basic-rest.src.js.shot | 4 + .../restParams/class-constructor.src.js.shot | 4 + .../restParams/class-method.src.js.shot | 4 + .../restParams/error-no-default.src.js.shot | 4 + .../restParams/error-not-last.src.js.shot | 5 + .../func-expression-multi.src.js.shot | 6 + .../restParams/func-expression.src.js.shot | 5 + .../restParams/invalid-rest-param.src.js.shot | 6 + .../restParams/single-rest.src.js.shot | 3 + .../literal-float-negative.src.js.shot | 3 + .../simple-literals/literal-float.src.js.shot | 3 + .../simple-literals/literal-null.src.js.shot | 3 + .../literal-number-negative.src.js.shot | 3 + .../literal-number.src.js.shot | 3 + .../literal-string.src.js.shot | 3 + .../literal-undefined.src.js.shot | 4 + .../spread/complex-spread.src.js.shot | 36 ++++ .../spread/multi-function-call.src.js.shot | 3 + .../spread/not-final-param.src.js.shot | 3 + .../spread/simple-function-call.src.js.shot | 2 + .../templateStrings/deeply-nested.src.js.shot | 1 + .../escape-characters.src.js.shot | 3 + .../templateStrings/expressions.src.js.shot | 8 + .../single-dollar-sign.src.js.shot | 3 + .../tagged-no-placeholders.src.js.shot | 1 + .../tagged-template-string.src.js.shot | 7 + .../ignored.src.js.shot | 24 +++ .../snapshots/jsx/attributes.src.js.shot | 2 + .../jsx/embedded-conditional.src.js.shot | 1 + .../jsx/less-than-operator.src.js.shot | 1 + ...d-attribute-and-value-inserted.src.js.shot | 1 + ...ttribute-and-regular-attribute.src.js.shot | 1 + .../spread-operator-attributes.src.js.shot | 1 + ...ling-spread-operator-attribute.src.js.shot | 1 + .../tsx/react-typed-props.src.tsx.shot | 17 +- .../type-parameter-whitespace-loc.src.ts.shot | 2 + .../type-parameters.src.ts.shot | 2 + ...lass-with-abstract-constructor.src.ts.shot | 2 + ...act-class-with-abstract-method.src.ts.shot | 3 + ...class-with-abstract-properties.src.ts.shot | 3 + ...ith-abstract-readonly-property.src.ts.shot | 2 + ...th-abstract-static-constructor.src.ts.shot | 2 + ...-class-with-declare-properties.src.ts.shot | 6 + ...act-class-with-optional-method.src.ts.shot | 3 + ...act-class-with-override-method.src.ts.shot | 3 + ...t-class-with-override-property.src.ts.shot | 3 + .../basics/abstract-interface.src.ts.shot | 2 + ...-type-assertion-arrow-function.src.ts.shot | 5 + .../angle-bracket-type-assertion.src.ts.shot | 3 + ...nction-with-optional-parameter.src.ts.shot | 1 + ...-function-with-type-parameters.src.ts.shot | 5 + .../async-function-expression.src.ts.shot | 1 + ...-function-with-var-declaration.src.ts.shot | 10 ++ .../await-without-async-function.src.ts.shot | 7 + .../call-signatures-with-generics.src.ts.shot | 6 + .../basics/call-signatures.src.ts.shot | 4 + .../basics/cast-as-expression.src.ts.shot | 2 + .../basics/cast-as-multi-assign.src.ts.shot | 1 + .../basics/cast-as-multi.src.ts.shot | 2 + .../basics/cast-as-operator.src.ts.shot | 1 + .../basics/cast-as-simple.src.ts.shot | 4 + .../catch-clause-with-annotation.src.ts.shot | 2 + ...clause-with-invalid-annotation.src.ts.shot | 1 + ...ss-multi-line-keyword-abstract.src.ts.shot | 2 + ...ass-multi-line-keyword-declare.src.ts.shot | 2 + ...field-with-accessibility-error.src.ts.shot | 1 + ...entifier-field-with-annotation.src.ts.shot | 2 + ...vate-identifier-readonly-field.src.ts.shot | 1 + .../basics/class-static-blocks.src.ts.shot | 4 + ...s-with-accessibility-modifiers.src.ts.shot | 9 + ...-with-constructor-and-modifier.src.ts.shot | 2 + ...ameter-property-with-modifiers.src.ts.shot | 8 +- ...roptery-with-override-modifier.src.ts.shot | 10 +- ...th-constructor-and-return-type.src.ts.shot | 2 + ...onstructor-and-type-parameters.src.ts.shot | 4 + .../class-with-declare-properties.src.ts.shot | 8 + ...class-with-definite-assignment.src.ts.shot | 2 + ...th-export-parameter-properties.src.ts.shot | 9 +- ...ss-with-extends-and-implements.src.ts.shot | 3 + ...-with-extends-generic-multiple.src.ts.shot | 6 + .../class-with-extends-generic.src.ts.shot | 4 + ...ss-with-generic-method-default.src.ts.shot | 4 + .../class-with-generic-method.src.ts.shot | 3 + ...ss-with-implements-and-extends.src.ts.shot | 3 + ...th-implements-generic-multiple.src.ts.shot | 4 + .../class-with-implements-generic.src.ts.shot | 3 + .../basics/class-with-implements.src.ts.shot | 2 + .../basics/class-with-method.src.ts.shot | 5 + .../class-with-mixin-reference.src.ts.shot | 6 + .../basics/class-with-mixin.src.ts.shot | 19 ++ ...-with-optional-computed-method.src.ts.shot | 21 +++ ...ith-optional-computed-property.src.ts.shot | 2 + .../class-with-optional-methods.src.ts.shot | 4 + ...class-with-optional-properties.src.ts.shot | 12 ++ ...th-optional-property-undefined.src.ts.shot | 3 + .../class-with-override-method.src.ts.shot | 3 + .../class-with-override-property.src.ts.shot | 3 + ...with-private-optional-property.src.ts.shot | 1 + ...h-private-parameter-properties.src.ts.shot | 36 ++-- .../class-with-property-function.src.ts.shot | 4 + .../class-with-property-values.src.ts.shot | 7 + ...protected-parameter-properties.src.ts.shot | 36 ++-- ...th-public-parameter-properties.src.ts.shot | 36 ++-- ...-readonly-parameter-properties.src.ts.shot | 17 +- .../class-with-readonly-property.src.ts.shot | 2 + ...th-static-parameter-properties.src.ts.shot | 9 +- ...o-methods-computed-constructor.src.ts.shot | 3 + ...ss-with-type-parameter-default.src.ts.shot | 3 + ...with-type-parameter-underscore.src.ts.shot | 2 + .../class-with-type-parameter.src.ts.shot | 2 + .../basics/const-assertions.src.ts.shot | 28 +++ .../typescript/basics/const-enum.src.ts.shot | 6 + ...are-class-with-optional-method.src.ts.shot | 2 + .../basics/declare-function.src.ts.shot | 2 + ...estructuring-assignment-nested.src.ts.shot | 31 ++++ ...estructuring-assignment-object.src.ts.shot | 6 + ...tructuring-assignment-property.src.ts.shot | 8 + .../destructuring-assignment.src.ts.shot | 6 + .../basics/directive-in-module.src.ts.shot | 6 + .../basics/directive-in-namespace.src.ts.shot | 6 + ...-import-with-import-assertions.src.ts.shot | 4 + ...ort-all-with-import-assertions.src.ts.shot | 1 + .../basics/export-as-namespace.src.ts.shot | 1 + .../basics/export-assignment.src.ts.shot | 1 + ...xport-declare-const-named-enum.src.ts.shot | 5 + .../export-declare-named-enum.src.ts.shot | 6 + ...ort-default-class-with-generic.src.ts.shot | 1 + ...t-class-with-multiple-generics.src.ts.shot | 2 + .../export-default-interface.src.ts.shot | 7 + ...xport-named-class-with-generic.src.ts.shot | 2 + ...d-class-with-multiple-generics.src.ts.shot | 3 + ...ort-named-enum-computed-number.src.ts.shot | 3 + ...ort-named-enum-computed-string.src.ts.shot | 3 + ...rt-named-enum-computed-var-ref.src.ts.shot | 4 + .../basics/export-named-enum.src.ts.shot | 7 + .../basics/export-star-as-ns-from.src.ts.shot | 1 + .../basics/export-type-as.src.ts.shot | 2 + .../basics/export-type-from-as.src.ts.shot | 2 + .../basics/export-type-from.src.ts.shot | 2 + .../typescript/basics/export-type.src.ts.shot | 2 + .../export-with-import-assertions.src.ts.shot | 3 + ...-anonymus-with-type-parameters.src.ts.shot | 6 + ...tion-anynomus-with-return-type.src.ts.shot | 3 + .../basics/function-overloads.src.ts.shot | 7 + .../basics/function-with-await.src.ts.shot | 3 + ...-type-with-optional-properties.src.ts.shot | 22 ++- ...object-type-without-annotation.src.ts.shot | 26 ++- ...-parameters-that-have-comments.src.ts.shot | 2 + ...ype-parameters-with-constraint.src.ts.shot | 6 + .../function-with-type-parameters.src.ts.shot | 6 + ...unction-with-types-assignation.src.ts.shot | 8 + .../basics/function-with-types.src.ts.shot | 3 + .../typescript/basics/global-this.src.ts.shot | 10 ++ .../import-equal-declaration.src.ts.shot | 1 + .../import-equal-type-declaration.src.ts.shot | 1 + ...mport-export-equal-declaration.src.ts.shot | 1 + ...-export-equal-type-declaration.src.ts.shot | 1 + .../basics/import-type-default.src.ts.shot | 1 + .../basics/import-type-empty.src.ts.shot | 1 + .../basics/import-type-error.src.ts.shot | 3 + .../basics/import-type-named-as.src.ts.shot | 2 + .../basics/import-type-named.src.ts.shot | 4 + .../basics/import-type-star-as-ns.src.ts.shot | 1 + .../import-with-import-assertions.src.ts.shot | 2 + .../interface-extends-multiple.src.ts.shot | 4 + .../basics/interface-extends.src.ts.shot | 3 + .../interface-type-parameters.src.ts.shot | 3 + ...erface-with-all-property-types.src.ts.shot | 69 ++++++-- ...e-with-parameter-accessibility.src.ts.shot | 20 ++- ...with-extends-member-expression.src.ts.shot | 4 + ...e-with-extends-type-parameters.src.ts.shot | 5 + .../basics/interface-with-generic.src.ts.shot | 3 + .../basics/interface-with-jsdoc.src.ts.shot | 8 + .../basics/interface-with-method.src.ts.shot | 17 ++ ...rface-with-optional-properties.src.ts.shot | 21 ++- ...erface-without-type-annotation.src.ts.shot | 11 +- .../basics/intrinsic-keyword.src.ts.shot | 12 ++ .../basics/keyof-operator.src.ts.shot | 3 + .../basics/keyword-variables.src.ts.shot | 166 ++++++++++++++++++ .../basics/nested-type-arguments.src.ts.shot | 6 + .../basics/never-type-param.src.ts.shot | 6 + ...-target-in-arrow-function-body.src.ts.shot | 5 + .../non-null-assertion-operator.src.ts.shot | 9 + ...and-undefined-type-annotations.src.ts.shot | 6 + .../basics/nullish-coalescing.src.ts.shot | 5 + ...object-with-escaped-properties.src.ts.shot | 4 + .../object-with-typed-methods.src.ts.shot | 13 ++ ...n-call-with-non-null-assertion.src.ts.shot | 16 ++ ...ptional-chain-call-with-parens.src.ts.shot | 22 +++ .../basics/optional-chain-call.src.ts.shot | 22 +++ ...access-with-non-null-assertion.src.ts.shot | 13 ++ ...ain-element-access-with-parens.src.ts.shot | 7 + .../optional-chain-element-access.src.ts.shot | 7 + ...-chain-with-non-null-assertion.src.ts.shot | 10 ++ .../optional-chain-with-parens.src.ts.shot | 22 +++ .../basics/optional-chain.src.ts.shot | 17 ++ .../basics/private-fields-in-in.src.ts.shot | 4 + .../basics/readonly-arrays.src.ts.shot | 13 ++ .../basics/readonly-tuples.src.ts.shot | 6 + ...-circuiting-assignment-and-and.src.ts.shot | 2 + ...rt-circuiting-assignment-or-or.src.ts.shot | 2 + ...g-assignment-question-question.src.ts.shot | 2 + .../basics/symbol-type-param.src.ts.shot | 3 + ...claration-export-function-type.src.ts.shot | 3 + ...declaration-export-object-type.src.ts.shot | 11 +- .../type-alias-declaration-export.src.ts.shot | 2 + ...ith-constrained-type-parameter.src.ts.shot | 6 + .../basics/type-alias-declaration.src.ts.shot | 6 + ...lias-object-without-annotation.src.ts.shot | 20 ++- ...pe-assertion-in-arrow-function.src.ts.shot | 5 + .../type-assertion-in-function.src.ts.shot | 3 + .../type-assertion-in-interface.src.ts.shot | 9 + .../type-assertion-in-method.src.ts.shot | 3 + ...n-with-guard-in-arrow-function.src.ts.shot | 5 + ...sertion-with-guard-in-function.src.ts.shot | 3 + ...ertion-with-guard-in-interface.src.ts.shot | 9 + ...assertion-with-guard-in-method.src.ts.shot | 3 + .../type-guard-in-arrow-function.src.ts.shot | 6 + .../basics/type-guard-in-function.src.ts.shot | 4 + .../type-guard-in-interface.src.ts.shot | 9 + .../basics/type-guard-in-method.src.ts.shot | 5 + ...e-parameters-in-type-reference.src.ts.shot | 4 + .../basics/type-import-type.src.ts.shot | 6 + .../type-only-export-specifiers.src.ts.shot | 4 + .../type-only-import-specifiers.src.ts.shot | 4 + ...e-parameters-comments-heritage.src.ts.shot | 18 ++ .../type-parameters-comments.src.ts.shot | 7 + .../type-reference-comments.src.ts.shot | 4 + .../basics/typed-keyword-bigint.src.ts.shot | 2 + .../basics/typed-keyword-boolean.src.ts.shot | 2 + .../basics/typed-keyword-false.src.ts.shot | 2 + .../basics/typed-keyword-never.src.ts.shot | 2 + .../basics/typed-keyword-null.src.ts.shot | 2 + .../basics/typed-keyword-number.src.ts.shot | 2 + .../basics/typed-keyword-object.src.ts.shot | 2 + .../basics/typed-keyword-string.src.ts.shot | 2 + .../basics/typed-keyword-symbol.src.ts.shot | 2 + .../basics/typed-keyword-true.src.ts.shot | 2 + .../typed-keyword-undefined.src.ts.shot | 2 + .../basics/typed-keyword-unknown.src.ts.shot | 2 + .../basics/typed-keyword-void.src.ts.shot | 2 + .../basics/typed-method-signature.src.ts.shot | 17 ++ .../typescript/basics/typed-this.src.ts.shot | 11 ++ .../basics/union-intersection.src.ts.shot | 20 +++ .../basics/unique-symbol.src.ts.shot | 2 + .../unknown-type-annotation.src.ts.shot | 3 + .../var-with-definite-assignment.src.ts.shot | 6 + .../basics/var-with-dotted-type.src.ts.shot | 6 + .../basics/var-with-type.src.ts.shot | 6 + ...ration-type-annotation-spacing.src.ts.shot | 3 + .../declare/abstract-class.src.ts.shot | 1 + .../typescript/declare/class.src.ts.shot | 1 + .../typescript/declare/enum.src.ts.shot | 6 + .../typescript/declare/function.src.ts.shot | 1 + .../typescript/declare/interface.src.ts.shot | 1 + .../typescript/declare/module.src.ts.shot | 2 + .../typescript/declare/namespace.src.ts.shot | 2 + .../typescript/declare/type-alias.src.ts.shot | 1 + .../typescript/declare/variable.src.ts.shot | 2 + ...orator-factory-instance-member.src.ts.shot | 4 + ...ecorator-factory-static-member.src.ts.shot | 6 + ...ssor-decorator-instance-member.src.ts.shot | 4 + ...cessor-decorator-static-member.src.ts.shot | 6 + .../class-decorator-factory.src.ts.shot | 4 + .../class-decorator.src.ts.shot | 2 + .../class-parameter-property.src.ts.shot | 12 +- ...export-default-class-decorator.src.ts.shot | 2 + .../export-named-class-decorator.src.ts.shot | 2 + ...orator-factory-instance-member.src.ts.shot | 3 + ...ecorator-factory-static-member.src.ts.shot | 3 + ...thod-decorator-instance-member.src.ts.shot | 3 + ...method-decorator-static-member.src.ts.shot | 3 + ...ameter-array-pattern-decorator.src.ts.shot | 5 + ...arameter-decorator-constructor.src.ts.shot | 9 + ...ator-decorator-instance-member.src.ts.shot | 4 + ...orator-decorator-static-member.src.ts.shot | 4 + ...eter-decorator-instance-member.src.ts.shot | 5 + ...ameter-decorator-static-member.src.ts.shot | 5 + ...meter-object-pattern-decorator.src.ts.shot | 7 + ...rameter-rest-element-decorator.src.ts.shot | 5 + ...orator-factory-instance-member.src.ts.shot | 6 + ...ecorator-factory-static-member.src.ts.shot | 5 + ...erty-decorator-instance-member.src.ts.shot | 5 + ...operty-decorator-static-member.src.ts.shot | 5 + ...class-empty-extends-implements.src.ts.shot | 2 + .../class-empty-extends.src.ts.shot | 1 + ...class-extends-empty-implements.src.ts.shot | 2 + .../class-multiple-implements.src.ts.shot | 2 + .../decorator-on-enum-declaration.src.ts.shot | 3 + .../decorator-on-function.src.ts.shot | 1 + ...rator-on-interface-declaration.src.ts.shot | 2 + .../decorator-on-variable.src.ts.shot | 3 + ...e-arguments-in-call-expression.src.ts.shot | 1 + ...pe-arguments-in-new-expression.src.ts.shot | 1 + .../empty-type-arguments.src.ts.shot | 4 + ...e-parameters-in-arrow-function.src.ts.shot | 1 + ...type-parameters-in-constructor.src.ts.shot | 2 + ...ameters-in-function-expression.src.ts.shot | 3 + ...parameters-in-method-signature.src.ts.shot | 7 + ...mpty-type-parameters-in-method.src.ts.shot | 2 + .../empty-type-parameters.src.ts.shot | 1 + .../enum-with-keywords.src.ts.shot | 3 + .../index-signature-parameters.src.ts.shot | 7 + .../interface-empty-extends.src.ts.shot | 2 + .../interface-implements.src.ts.shot | 2 + ...terface-index-signature-export.src.ts.shot | 5 + ...erface-index-signature-private.src.ts.shot | 6 + ...face-index-signature-protected.src.ts.shot | 6 + ...terface-index-signature-public.src.ts.shot | 6 + ...terface-index-signature-static.src.ts.shot | 5 + .../interface-method-export.src.ts.shot | 7 + .../interface-method-private.src.ts.shot | 8 + .../interface-method-protected.src.ts.shot | 8 + .../interface-method-public.src.ts.shot | 8 + .../interface-method-readonly.src.ts.shot | 7 + .../interface-method-static.src.ts.shot | 7 + .../interface-multiple-extends.src.ts.shot | 4 + .../interface-property-export.src.ts.shot | 9 +- .../interface-property-private.src.ts.shot | 11 +- .../interface-property-protected.src.ts.shot | 11 +- .../interface-property-public.src.ts.shot | 11 +- .../interface-property-static.src.ts.shot | 9 +- ...ce-property-with-default-value.src.ts.shot | 11 +- ...-with-optional-index-signature.src.ts.shot | 5 + .../object-assertion-not-allowed.src.ts.shot | 4 + .../object-optional-not-allowed.src.ts.shot | 4 + .../errorRecovery/solo-const.src.ts.shot | 1 + ...call-expression-type-arguments.src.ts.shot | 3 + .../instantiation-expression.src.ts.shot | 18 ++ .../new-expression-type-arguments.src.ts.shot | 5 + ...call-expression-type-arguments.src.ts.shot | 5 + ...late-expression-type-arguments.src.ts.shot | 2 + ...module-declaration-with-import.src.ts.shot | 2 + ...mespace-with-exported-function.src.ts.shot | 5 + .../global-module-declaration.src.ts.shot | 5 + .../module-with-default-exports.src.ts.shot | 6 + .../nested-internal-module.src.ts.shot | 40 +++-- ...and-ambient-module-declaration.src.ts.shot | 1 + .../typescript/types/array-type.src.ts.shot | 2 + .../conditional-infer-nested.src.ts.shot | 14 ++ .../conditional-infer-simple.src.ts.shot | 25 ++- ...ditional-infer-with-constraint.src.ts.shot | 38 ++++ .../types/conditional-infer.src.ts.shot | 7 + .../types/conditional-with-null.src.ts.shot | 3 + .../typescript/types/conditional.src.ts.shot | 3 + .../types/constructor-abstract.src.ts.shot | 3 + .../types/constructor-empty.src.ts.shot | 3 + .../types/constructor-generic.src.ts.shot | 7 + .../types/constructor-in-generic.src.ts.shot | 4 + .../types/constructor-with-rest.src.ts.shot | 5 + .../typescript/types/constructor.src.ts.shot | 4 + .../types/function-generic.src.ts.shot | 7 + .../types/function-in-generic.src.ts.shot | 4 + ...unction-with-array-destruction.src.ts.shot | 4 + ...nction-with-object-destruction.src.ts.shot | 6 + .../types/function-with-rest.src.ts.shot | 5 + .../types/function-with-this.src.ts.shot | 4 + .../typescript/types/function.src.ts.shot | 4 + .../index-signature-readonly.src.ts.shot | 5 + .../index-signature-without-type.src.ts.shot | 6 + .../types/index-signature.src.ts.shot | 6 + .../typescript/types/indexed.src.ts.shot | 5 + .../interface-with-accessors.src.ts.shot | 13 ++ .../types/intersection-type.src.ts.shot | 15 +- .../types/literal-number-negative.src.ts.shot | 3 + .../types/literal-number.src.ts.shot | 3 + .../types/literal-string.src.ts.shot | 3 + .../types/mapped-named-type.src.ts.shot | 7 + .../types/mapped-readonly-minus.src.ts.shot | 4 + .../types/mapped-readonly-plus.src.ts.shot | 4 + .../types/mapped-readonly.src.ts.shot | 4 + .../types/mapped-untypped.src.ts.shot | 4 + .../typescript/types/mapped.src.ts.shot | 4 + .../typescript/types/nested-types.src.ts.shot | 2 + ...ct-literal-type-with-accessors.src.ts.shot | 13 ++ .../optional-variance-in-and-out.src.ts.shot | 7 + .../optional-variance-in-out.src.ts.shot | 6 + .../types/optional-variance-in.src.ts.shot | 5 + .../types/optional-variance-out.src.ts.shot | 4 + .../types/parenthesized-type.src.ts.shot | 2 + .../reference-generic-nested.src.ts.shot | 5 + .../types/reference-generic.src.ts.shot | 4 + .../typescript/types/reference.src.ts.shot | 4 + .../types/template-literal-type-1.src.ts.shot | 2 + .../types/template-literal-type-2.src.ts.shot | 2 + .../types/template-literal-type-3.src.ts.shot | 8 + .../types/template-literal-type-4.src.ts.shot | 14 ++ .../types/this-type-expanded.src.ts.shot | 31 ++++ .../typescript/types/this-type.src.ts.shot | 2 + .../typescript/types/tuple-empty.src.ts.shot | 3 + .../types/tuple-named-optional.src.ts.shot | 6 + .../types/tuple-named-rest.src.ts.shot | 5 + .../types/tuple-named-type.src.ts.shot | 4 + .../typescript/types/tuple-named.src.ts.shot | 6 + .../types/tuple-optional.src.ts.shot | 3 + .../typescript/types/tuple-rest.src.ts.shot | 3 + .../typescript/types/tuple-type.src.ts.shot | 2 + .../typescript/types/tuple.src.ts.shot | 3 + .../typescript/types/type-literal.src.ts.shot | 12 +- .../types/type-operator.src.ts.shot | 7 + .../typescript/types/typeof-this.src.ts.shot | 7 + .../typeof-with-type-parameters.src.ts.shot | 6 + .../typescript/types/typeof.src.ts.shot | 5 + .../types/union-intersection.src.ts.shot | 12 ++ .../typescript/types/union-type.src.ts.shot | 2 + 760 files changed, 4159 insertions(+), 234 deletions(-) diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts b/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts index 4fe3d2dc693..e99150c5f52 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts @@ -6,7 +6,6 @@ import type { BlockStatement } from '../../statement/BlockStatement/spec'; interface FunctionDeclarationBase extends FunctionBase { type: AST_NODE_TYPES.FunctionDeclaration; body: BlockStatement; - // TODO(#5020) - make this always `false` if it is not `declare`d instead of `undefined` declare?: false; expression: false; } diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts b/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts index ea37a1e874f..4f77fd47ab5 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts @@ -7,7 +7,6 @@ export interface TSDeclareFunction extends FunctionBase { type: AST_NODE_TYPES.TSDeclareFunction; // TODO(#1852) - breaking change enforce this is always `null` like `TSEmptyBodyFunctionExpression` body?: BlockStatement; - // TODO(#5020) - make this always `false` if it is not `declare`d instead of `undefined` - declare?: boolean; + declare: boolean; expression: false; } diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSEnumDeclaration/spec.ts index 1152c894f4a..1625063426c 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/spec.ts @@ -11,16 +11,14 @@ export interface TSEnumDeclaration extends BaseNode { * const enum Foo {...} * ``` */ - // TODO(#5020) - make this `false` if it is not `const` - const?: boolean; + const: boolean; /** * Whether this is a `declare`d enum. * ``` * declare enum Foo {...} * ``` */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; /** * The enum name. */ diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts index 18ad9a74155..cc52616d801 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts @@ -14,8 +14,7 @@ export interface TSInterfaceDeclaration extends BaseNode { /** * Whether the interface was `declare`d, `undefined` otherwise */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; /** * The types this interface `extends` */ diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/spec.ts index 79166ff38f9..e7eca29cf58 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/spec.ts @@ -38,14 +38,12 @@ export interface TSModuleDeclaration extends BaseNode { * declare global {} * ``` */ - // TODO(#5020) - make this `false` if not `global` - global?: boolean; + global: boolean; /** * Whether the module is `declare`d * ``` * declare namespace F {} * ``` */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; } diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts index 15ab0a40c13..c961b7aad65 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts @@ -12,8 +12,7 @@ export interface TSTypeAliasDeclaration extends BaseNode { * declare type T = 1; * ``` */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; /** * The name of the type. */ diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/spec.ts b/packages/ast-spec/src/declaration/VariableDeclaration/spec.ts index 4bc9b0f4854..70ed40f52e6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/VariableDeclaration/spec.ts @@ -20,8 +20,7 @@ export interface VariableDeclaration extends BaseNode { * declare const x = 1; * ``` */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; /** * The keyword used to declare the variable(s) * ``` diff --git a/packages/ast-spec/src/element/Property/spec.ts b/packages/ast-spec/src/element/Property/spec.ts index c96a7a26e37..e10b6b46435 100644 --- a/packages/ast-spec/src/element/Property/spec.ts +++ b/packages/ast-spec/src/element/Property/spec.ts @@ -21,7 +21,7 @@ interface PropertyBase extends BaseNode { computed: boolean; method: boolean; shorthand: boolean; - optional?: boolean; + optional: boolean; kind: 'get' | 'init' | 'set'; } diff --git a/packages/ast-spec/src/element/TSEnumMember/spec.ts b/packages/ast-spec/src/element/TSEnumMember/spec.ts index 97d8e49fcd9..f81c0f4c7a8 100644 --- a/packages/ast-spec/src/element/TSEnumMember/spec.ts +++ b/packages/ast-spec/src/element/TSEnumMember/spec.ts @@ -12,7 +12,7 @@ interface TSEnumMemberBase extends BaseNode { | PropertyNameComputed // this should only happen in semantically invalid code (ts error 1164) | PropertyNameNonComputed; initializer?: Expression; - computed?: boolean; + computed: boolean; } /** @@ -33,7 +33,7 @@ export interface TSEnumMemberComputedName extends TSEnumMemberBase { export interface TSEnumMemberNonComputedName extends TSEnumMemberBase { id: PropertyNameNonComputed; - computed?: false; + computed: false; } export type TSEnumMember = diff --git a/packages/ast-spec/src/element/TSIndexSignature/spec.ts b/packages/ast-spec/src/element/TSIndexSignature/spec.ts index 38002bec295..deffb59d5c3 100644 --- a/packages/ast-spec/src/element/TSIndexSignature/spec.ts +++ b/packages/ast-spec/src/element/TSIndexSignature/spec.ts @@ -8,8 +8,8 @@ export interface TSIndexSignature extends BaseNode { type: AST_NODE_TYPES.TSIndexSignature; parameters: Parameter[]; typeAnnotation?: TSTypeAnnotation; - readonly?: boolean; + readonly: boolean; accessibility?: Accessibility; - export?: boolean; - static?: boolean; + export: boolean; + static: boolean; } diff --git a/packages/ast-spec/src/element/TSMethodSignature/spec.ts b/packages/ast-spec/src/element/TSMethodSignature/spec.ts index 5ca7cbead3e..bd515d17c93 100644 --- a/packages/ast-spec/src/element/TSMethodSignature/spec.ts +++ b/packages/ast-spec/src/element/TSMethodSignature/spec.ts @@ -15,13 +15,13 @@ interface TSMethodSignatureBase extends BaseNode { key: PropertyName; computed: boolean; params: Parameter[]; - optional?: boolean; + optional: boolean; returnType?: TSTypeAnnotation; - readonly?: boolean; + readonly: boolean; typeParameters?: TSTypeParameterDeclaration; accessibility?: Accessibility; - export?: boolean; - static?: boolean; + export: boolean; + static: boolean; kind: 'get' | 'method' | 'set'; } diff --git a/packages/ast-spec/src/element/TSPropertySignature/spec.ts b/packages/ast-spec/src/element/TSPropertySignature/spec.ts index a3f91ac2680..e2df01e6687 100644 --- a/packages/ast-spec/src/element/TSPropertySignature/spec.ts +++ b/packages/ast-spec/src/element/TSPropertySignature/spec.ts @@ -12,13 +12,13 @@ import type { interface TSPropertySignatureBase extends BaseNode { type: AST_NODE_TYPES.TSPropertySignature; key: PropertyName; - optional?: boolean; + optional: boolean; computed: boolean; typeAnnotation?: TSTypeAnnotation; initializer?: Expression; - readonly?: boolean; - static?: boolean; - export?: boolean; + readonly: boolean; + static: boolean; + export: boolean; accessibility?: Accessibility; } diff --git a/packages/ast-spec/src/expression/Identifier/spec.ts b/packages/ast-spec/src/expression/Identifier/spec.ts index 384922a061a..76536f30759 100644 --- a/packages/ast-spec/src/expression/Identifier/spec.ts +++ b/packages/ast-spec/src/expression/Identifier/spec.ts @@ -7,6 +7,6 @@ export interface Identifier extends BaseNode { type: AST_NODE_TYPES.Identifier; name: string; typeAnnotation?: TSTypeAnnotation; - optional?: boolean; + optional: boolean; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/ArrayPattern/spec.ts b/packages/ast-spec/src/parameter/ArrayPattern/spec.ts index 420a9327873..0d900b3398e 100644 --- a/packages/ast-spec/src/parameter/ArrayPattern/spec.ts +++ b/packages/ast-spec/src/parameter/ArrayPattern/spec.ts @@ -8,6 +8,6 @@ export interface ArrayPattern extends BaseNode { type: AST_NODE_TYPES.ArrayPattern; elements: (DestructuringPattern | null)[]; typeAnnotation?: TSTypeAnnotation; - optional?: boolean; + optional: boolean; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts b/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts index ee558c2167c..418de00607d 100644 --- a/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts +++ b/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts @@ -10,6 +10,6 @@ export interface AssignmentPattern extends BaseNode { left: BindingName; right: Expression; typeAnnotation?: TSTypeAnnotation; - optional?: boolean; + optional: boolean; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/ObjectPattern/spec.ts b/packages/ast-spec/src/parameter/ObjectPattern/spec.ts index 12c89878794..6ff698671dd 100644 --- a/packages/ast-spec/src/parameter/ObjectPattern/spec.ts +++ b/packages/ast-spec/src/parameter/ObjectPattern/spec.ts @@ -9,6 +9,6 @@ export interface ObjectPattern extends BaseNode { type: AST_NODE_TYPES.ObjectPattern; properties: (Property | RestElement)[]; typeAnnotation?: TSTypeAnnotation; - optional?: boolean; + optional: boolean; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/RestElement/spec.ts b/packages/ast-spec/src/parameter/RestElement/spec.ts index 006f5e48ba3..61a57c99f8a 100644 --- a/packages/ast-spec/src/parameter/RestElement/spec.ts +++ b/packages/ast-spec/src/parameter/RestElement/spec.ts @@ -9,7 +9,7 @@ export interface RestElement extends BaseNode { type: AST_NODE_TYPES.RestElement; argument: DestructuringPattern; typeAnnotation?: TSTypeAnnotation; - optional?: boolean; + optional: boolean; value?: AssignmentPattern; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts b/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts index 0cf3c4a911d..f09a28bd3db 100644 --- a/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts +++ b/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts @@ -9,10 +9,10 @@ import type { RestElement } from '../RestElement/spec'; export interface TSParameterProperty extends BaseNode { type: AST_NODE_TYPES.TSParameterProperty; accessibility?: Accessibility; - readonly?: boolean; - static?: boolean; - export?: boolean; - override?: boolean; + readonly: boolean; + static: boolean; + export: boolean; + override: boolean; parameter: AssignmentPattern | BindingName | RestElement; decorators?: Decorator[]; } diff --git a/packages/ast-spec/src/special/VariableDeclarator/spec.ts b/packages/ast-spec/src/special/VariableDeclarator/spec.ts index 619c6a57d5d..50f129faf58 100644 --- a/packages/ast-spec/src/special/VariableDeclarator/spec.ts +++ b/packages/ast-spec/src/special/VariableDeclarator/spec.ts @@ -7,5 +7,5 @@ export interface VariableDeclarator extends BaseNode { type: AST_NODE_TYPES.VariableDeclarator; id: BindingName; init: Expression | null; - definite?: boolean; + definite: boolean; } diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 4af9163c34e..f066637cbb5 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -647,20 +647,16 @@ export class Converter { return 'method'; } })(), + export: false, + optional: !!isOptional(node), + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: false, }); - if (isOptional(node)) { - result.optional = true; - } - if (node.type) { result.returnType = this.convertTypeAnnotation(node.type, node); } - if (hasModifier(SyntaxKind.ReadonlyKeyword, node)) { - result.readonly = true; - } - if (node.typeParameters) { result.typeParameters = this.convertTSTypeParametersToTypeParametersDeclaration( @@ -771,6 +767,7 @@ export class Converter { } return this.createNode(node, { type: AST_NODE_TYPES.Identifier, + optional: false, name: node.text, }); } @@ -967,6 +964,7 @@ export class Converter { case SyntaxKind.VariableDeclaration: { const result = this.createNode(node, { type: AST_NODE_TYPES.VariableDeclarator, + definite: false, id: this.convertBindingNameWithTypeAnnotation( node.name, node.type, @@ -985,6 +983,7 @@ export class Converter { case SyntaxKind.VariableStatement: { const result = this.createNode(node, { type: AST_NODE_TYPES.VariableDeclaration, + declare: false, declarations: node.declarationList.declarations.map(el => this.convertChild(el), ), @@ -1011,6 +1010,7 @@ export class Converter { case SyntaxKind.VariableDeclarationList: return this.createNode(node, { type: AST_NODE_TYPES.VariableDeclaration, + declare: false, declarations: node.declarations.map(el => this.convertChild(el)), kind: getDeclarationKind(node), }); @@ -1033,6 +1033,7 @@ export class Converter { if (this.allowPattern) { return this.createNode(node, { type: AST_NODE_TYPES.ArrayPattern, + optional: false, elements: node.elements.map(el => this.convertPattern(el)), }); } else { @@ -1048,6 +1049,7 @@ export class Converter { if (this.allowPattern) { return this.createNode(node, { type: AST_NODE_TYPES.ObjectPattern, + optional: false, properties: node.properties.map(el => this.convertPattern(el)), }); } else { @@ -1070,6 +1072,7 @@ export class Converter { ), computed: isComputedProperty(node.name), method: false, + optional: false, shorthand: false, kind: 'init', }); @@ -1082,9 +1085,11 @@ export class Converter { value: this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, left: this.convertPattern(node.name), + optional: false, right: this.convertChild(node.objectAssignmentInitializer), }), computed: false, + optional: false, method: false, shorthand: true, kind: 'init', @@ -1096,6 +1101,7 @@ export class Converter { value: this.convertChild(node.name), computed: false, method: false, + optional: false, shorthand: true, kind: 'init', }); @@ -1225,6 +1231,7 @@ export class Converter { key: this.convertChild(node.name), value: method, computed: isComputedProperty(node.name), + optional: false, method: node.kind === SyntaxKind.MethodDeclaration, shorthand: false, kind: 'init', @@ -1328,6 +1335,7 @@ export class Converter { const constructorKey = this.createNode(node, { type: AST_NODE_TYPES.Identifier, name: 'constructor', + optional: false, range: [constructorToken.getStart(this.ast), constructorToken.end], }); @@ -1387,6 +1395,7 @@ export class Converter { case SyntaxKind.ArrayBindingPattern: return this.createNode(node, { + optional: false, type: AST_NODE_TYPES.ArrayPattern, elements: node.elements.map(el => this.convertPattern(el)), }); @@ -1398,6 +1407,7 @@ export class Converter { case SyntaxKind.ObjectBindingPattern: return this.createNode(node, { type: AST_NODE_TYPES.ObjectPattern, + optional: false, properties: node.elements.map(el => this.convertPattern(el)), }); @@ -1409,12 +1419,14 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, left: arrayItem, + optional: false, right: this.convertChild(node.initializer), }); } else if (node.dotDotDotToken) { return this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: arrayItem, + optional: false, }); } else { return arrayItem; @@ -1425,6 +1437,7 @@ export class Converter { result = this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertChild(node.propertyName ?? node.name), + optional: false, }); } else { result = this.createNode(node, { @@ -1436,6 +1449,7 @@ export class Converter { node.propertyName.kind === SyntaxKind.ComputedPropertyName, ), method: false, + optional: false, shorthand: !node.propertyName, kind: 'init', }); @@ -1445,6 +1459,7 @@ export class Converter { result.value = this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, left: this.convertChild(node.name), + optional: false, right: this.convertChild(node.initializer), range: [node.name.getStart(this.ast), node.initializer.end], }); @@ -1569,6 +1584,7 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertPattern(node.expression), + optional: false, }); } else { return this.createNode(node, { @@ -1586,12 +1602,14 @@ export class Converter { parameter = result = this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertChild(node.name), + optional: false, }); } else if (node.initializer) { parameter = this.convertChild(node.name) as TSESTree.BindingName; result = this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, left: parameter, + optional: false, right: this.convertChild(node.initializer), }); @@ -1629,12 +1647,10 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.TSParameterProperty, accessibility: getTSNodeAccessibility(node) ?? undefined, - readonly: - hasModifier(SyntaxKind.ReadonlyKeyword, node) || undefined, - static: hasModifier(SyntaxKind.StaticKeyword, node) || undefined, - export: hasModifier(SyntaxKind.ExportKeyword, node) || undefined, - override: - hasModifier(SyntaxKind.OverrideKeyword, node) || undefined, + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), + export: hasModifier(SyntaxKind.ExportKeyword, node), + override: hasModifier(SyntaxKind.OverrideKeyword, node), parameter: result, }); } @@ -1949,6 +1965,7 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, left: this.convertPattern(node.left, node), + optional: false, right: this.convertChild(node.right), }); } @@ -2075,6 +2092,7 @@ export class Converter { { type: AST_NODE_TYPES.Identifier, name: getTextForTokenKind(node.keywordToken), + optional: false, }, ), property: this.convertChild(node.name), @@ -2451,6 +2469,7 @@ export class Converter { case SyntaxKind.TypeAliasDeclaration: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSTypeAliasDeclaration, + declare: false, id: this.convertChild(node.name), typeAnnotation: this.convertType(node.type), }); @@ -2478,7 +2497,7 @@ export class Converter { case SyntaxKind.PropertySignature: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSPropertySignature, - optional: isOptional(node) || undefined, + optional: isOptional(node), computed: isComputedProperty(node.name), key: this.convertChild(node.name), typeAnnotation: node.type @@ -2489,9 +2508,9 @@ export class Converter { // eslint-disable-next-line deprecation/deprecation -- TODO breaking change remove this from the AST node.initializer, ) || undefined, - readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node) || undefined, - static: hasModifier(SyntaxKind.StaticKeyword, node) || undefined, - export: hasModifier(SyntaxKind.ExportKeyword, node) || undefined, + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), + export: hasModifier(SyntaxKind.ExportKeyword, node), }); const accessibility = getTSNodeAccessibility(node); @@ -2505,7 +2524,10 @@ export class Converter { case SyntaxKind.IndexSignature: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSIndexSignature, + export: false, parameters: node.parameters.map(el => this.convertChild(el)), + readonly: false, + static: false, }); if (node.type) { @@ -2613,6 +2635,7 @@ export class Converter { body: node.members.map(member => this.convertChild(member)), range: [node.members.pos - 1, node.end], }), + declare: false, id: this.convertChild(node.name), }); @@ -2697,6 +2720,8 @@ export class Converter { case SyntaxKind.EnumDeclaration: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSEnumDeclaration, + const: false, + declare: false, id: this.convertChild(node.name), members: node.members.map(el => this.convertChild(el)), }); @@ -2716,6 +2741,7 @@ export class Converter { case SyntaxKind.EnumMember: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSEnumMember, + computed: false, id: this.convertChild(node.name), }); if (node.initializer) { @@ -2730,6 +2756,8 @@ export class Converter { case SyntaxKind.ModuleDeclaration: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSModuleDeclaration, + declare: false, + global: false, id: this.convertChild(node.name), }); if (node.body) { diff --git a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap index 45d71e34324..67b705aea02 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap @@ -75,6 +75,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` }, }, "name": "foo", + "optional": false, "range": [ 4, 7, @@ -136,6 +137,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` }, }, "name": "T", + "optional": false, "range": [ 8, 9, @@ -252,6 +254,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = }, }, "name": "test", + "optional": false, "range": [ 1, 5, @@ -298,6 +301,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = }, }, "name": "foo", + "optional": false, "range": [ 12, 15, @@ -328,6 +332,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` }, }, "name": "foo", + "optional": false, "range": [ 4, 7, @@ -389,6 +394,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` }, }, "name": "T", + "optional": false, "range": [ 8, 9, @@ -432,6 +438,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 }, }, "name": "foo", + "optional": false, "range": [ 6, 9, @@ -481,6 +488,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 }, }, "name": "T", + "optional": false, "range": [ 10, 11, diff --git a/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap index 36909473930..48da3d24f5a 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap @@ -89,6 +89,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -101,6 +102,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -181,6 +183,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -379,6 +382,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -391,6 +395,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -471,6 +476,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -669,6 +675,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -681,6 +688,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -723,6 +731,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -849,6 +858,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -861,6 +871,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -903,6 +914,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -1072,6 +1084,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .json file - wit }, }, "method": false, + "optional": false, "range": [ 2, 8, @@ -1248,6 +1261,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -1260,6 +1274,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -1340,6 +1355,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -1538,6 +1554,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -1550,6 +1567,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -1630,6 +1648,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -1828,6 +1847,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -1840,6 +1860,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -1882,6 +1903,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -2008,6 +2030,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -2020,6 +2043,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -2062,6 +2086,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -2188,6 +2213,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -2200,6 +2226,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -2242,6 +2269,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -2368,6 +2396,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -2380,6 +2409,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -2422,6 +2452,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -2548,6 +2579,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -2560,6 +2592,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -2640,6 +2673,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -2838,6 +2872,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -2850,6 +2885,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -2930,6 +2966,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -3128,6 +3165,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -3140,6 +3178,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -3182,6 +3221,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -3308,6 +3348,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -3320,6 +3361,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -3362,6 +3404,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -3488,6 +3531,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -3500,6 +3544,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -3580,6 +3625,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -3778,6 +3824,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -3790,6 +3837,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -3832,6 +3880,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -3958,6 +4007,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -3970,6 +4020,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -4012,6 +4063,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -4137,8 +4189,10 @@ exports[`parseWithNodeMaps() general output should not contain loc 1`] = ` { "declarations": [ { + "definite": false, "id": { "name": "foo", + "optional": false, "range": [ 4, 7, @@ -4147,6 +4201,7 @@ exports[`parseWithNodeMaps() general output should not contain loc 1`] = ` }, "init": { "name": "bar", + "optional": false, "range": [ 10, 13, @@ -4160,6 +4215,7 @@ exports[`parseWithNodeMaps() general output should not contain loc 1`] = ` "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "range": [ 0, @@ -4183,6 +4239,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -4195,6 +4252,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` }, }, "name": "foo", + "optional": false, "type": "Identifier", }, "init": { @@ -4209,6 +4267,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` }, }, "name": "bar", + "optional": false, "type": "Identifier", }, "loc": { @@ -4224,6 +4283,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": { "end": { @@ -4259,6 +4319,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -4271,6 +4332,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w }, }, "name": "foo", + "optional": false, "range": [ 4, 7, @@ -4289,6 +4351,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w }, }, "name": "bar", + "optional": false, "range": [ 10, 13, @@ -4312,6 +4375,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": { "end": { diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap index e0b0c94ee05..b8c93cbc14e 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap @@ -363,6 +363,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, }, "name": "arr", + "optional": false, "range": [ 7, 10, @@ -444,6 +445,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, }, "name": "arr", + "optional": false, "range": [ 37, 40, @@ -463,6 +465,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, }, "name": "push", + "optional": false, "range": [ 41, 45, @@ -789,6 +792,7 @@ exports[`semanticInfo fixtures/isolated-file.src 1`] = ` { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -801,6 +805,7 @@ exports[`semanticInfo fixtures/isolated-file.src 1`] = ` }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -900,6 +905,7 @@ exports[`semanticInfo fixtures/isolated-file.src 1`] = ` "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -1144,6 +1150,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -1156,6 +1163,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` }, }, "name": "binExp", + "optional": false, "range": [ 6, 12, @@ -1235,6 +1243,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { @@ -1359,6 +1368,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` }, }, "name": "Bar", + "optional": false, "range": [ 31, 34, diff --git a/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot index c308a872193..8bf141db9b5 100644 --- a/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot index 01ef8ebde72..902a51ade42 100644 --- a/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot @@ -49,6 +49,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 25, 26, diff --git a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot index dbeef2b24f9..54b6862d58b 100644 --- a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "method1", + "optional": false, "range": Array [ 103, 110, diff --git a/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot index b23e2d9faa0..bd39f49c659 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 130, 133, @@ -73,6 +74,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 108, 111, @@ -102,6 +104,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 112, 115, diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot index 0313f535de1..5044e2bb4ca 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "link", + "optional": false, "range": Array [ 6, 10, @@ -207,6 +209,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot index 851f8980ab5..5c09498a7fb 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -267,6 +269,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot index 3d15f9abd76..b346fd25fe2 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -190,6 +192,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot index d60cb362824..82a9d84d183 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -156,6 +158,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot index cbf278f9ee7..a6ff138ade9 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "comp", + "optional": false, "range": Array [ 6, 10, @@ -1587,6 +1589,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot index d603a3fcee3..a7d35f81362 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -282,6 +284,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot index 177f12a1662..144a2952f36 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -212,6 +214,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot index 34ae0afe27e..f1d9e508209 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "pure", + "optional": false, "range": Array [ 6, 10, @@ -218,6 +220,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot index b51fc4edf9c..2dd1ea8def0 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "first", + "optional": false, "range": Array [ 6, 11, @@ -152,6 +154,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -172,6 +175,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -184,6 +188,7 @@ Object { }, }, "name": "second", + "optional": false, "range": Array [ 52, 58, @@ -279,6 +284,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -299,6 +305,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -311,6 +318,7 @@ Object { }, }, "name": "third", + "optional": false, "range": Array [ 93, 98, @@ -502,6 +510,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -522,6 +531,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -534,6 +544,7 @@ Object { }, }, "name": "fourth", + "optional": false, "range": Array [ 145, 151, @@ -759,6 +770,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -779,6 +791,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -791,6 +804,7 @@ Object { }, }, "name": "fifth", + "optional": false, "range": Array [ 205, 210, @@ -959,6 +973,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot index 308c14521e5..76a21d8a159 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot @@ -79,6 +79,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 24, 28, @@ -121,6 +122,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -133,6 +135,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 47, 50, @@ -267,6 +270,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot index 2d5c27d4fe0..c4fa098b26d 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot @@ -79,6 +79,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 24, 28, @@ -121,6 +122,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -133,6 +135,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 47, 50, @@ -267,6 +270,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot index af451f23528..21f581e9fd6 100644 --- a/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "zzz", + "optional": false, "range": Array [ 10, 13, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot index 9ecb5409c47..ed44672c5a9 100644 --- a/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "regex", + "optional": false, "range": Array [ 6, 11, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot index 605981ef3f0..d333bea02d3 100644 --- a/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "str", + "optional": false, "range": Array [ 6, 9, @@ -38,6 +40,7 @@ Object { }, }, "name": "__dirname", + "optional": false, "range": Array [ 15, 24, @@ -124,6 +127,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot index 0d0bd7170a1..7c8f998373c 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 36, 39, @@ -92,6 +93,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot index 7e018cbb0bc..276a15e3f9a 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot index 2f78d3e8fc8..556a6a89e41 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot @@ -56,6 +56,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot index 9a82fbf916c..26867fb4034 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot @@ -74,6 +74,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot index f420f8e9477..ece61258236 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot @@ -64,6 +64,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -76,6 +77,7 @@ Object { }, }, "name": "each", + "optional": false, "range": Array [ 61, 65, @@ -100,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -148,6 +151,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot index 0adf07336f0..1cd184c016a 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "doIt", + "optional": false, "range": Array [ 126, 130, @@ -151,6 +152,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 31, 34, @@ -204,6 +206,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 9, 12, @@ -233,6 +236,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot index 389db77efbe..234b30845ce 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot @@ -59,6 +59,7 @@ Object { }, }, "name": "doIt", + "optional": false, "range": Array [ 82, 86, @@ -147,6 +148,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot index f86bee97a62..15a8381e03c 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot @@ -134,6 +134,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 30, 31, @@ -187,6 +188,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 9, 12, @@ -216,6 +218,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot index 42139bf5b63..8ad3dc6bde7 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot @@ -29,6 +29,7 @@ Object { }, }, "name": "module", + "optional": false, "range": Array [ 0, 6, @@ -48,6 +49,7 @@ Object { }, }, "name": "exports", + "optional": false, "range": Array [ 7, 14, @@ -126,6 +128,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 172, 176, @@ -145,6 +148,7 @@ Object { }, }, "name": "expressions", + "optional": false, "range": Array [ 177, 188, @@ -195,6 +199,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 189, 193, @@ -214,6 +219,7 @@ Object { }, }, "name": "expressions", + "optional": false, "range": Array [ 194, 205, @@ -239,6 +245,7 @@ Object { }, }, "name": "length", + "optional": false, "range": Array [ 206, 212, @@ -306,6 +313,7 @@ Object { }, }, "name": "isConstant", + "optional": false, "range": Array [ 161, 171, @@ -406,6 +414,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 86, 90, @@ -425,6 +434,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 91, 95, @@ -520,6 +530,7 @@ Object { }, }, "name": "isConstant", + "optional": false, "range": Array [ 51, 61, @@ -549,6 +560,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 62, 66, @@ -605,6 +617,7 @@ Object { }, }, "name": "context", + "optional": false, "range": Array [ 26, 33, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot index 7080fcb47ac..86fda8c2588 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot @@ -74,6 +74,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, diff --git a/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot index 7bf2391791b..ec9870a5145 100644 --- a/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 3, 7, diff --git a/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot b/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot index d341354418b..12975dd90fb 100644 --- a/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -37,6 +39,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 28, 31, @@ -86,6 +89,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 13, 16, @@ -112,6 +116,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot index c3ec8e725e3..ad615328671 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot @@ -50,6 +50,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 0, 2, @@ -86,6 +87,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -125,6 +127,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 11, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot index 81e612e0eab..08811fc4df5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -70,6 +71,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 8, 9, @@ -96,6 +98,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot index be5d3b9325e..7970968211e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot @@ -59,6 +59,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot index 4335f87c535..5de5105992f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -164,6 +165,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 19, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot index 1fdda7f5b3f..df0c1d77821 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot @@ -57,6 +57,7 @@ Object { }, }, "name": "label", + "optional": false, "range": Array [ 7, 12, @@ -122,6 +123,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot index a4355b71837..aeeb8d06c3a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot @@ -87,6 +87,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot index 2f01ca49fcf..74ab6234b72 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -69,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot index 572e4d58fcb..5b6688db354 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot @@ -89,6 +89,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 15, 19, @@ -105,6 +106,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot index b70d21a53dc..2d234eb9d68 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 15, 16, @@ -106,6 +107,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 18, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot index 86770eb2a90..93de4e3b39f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 15, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot index 29bae3b9246..939bf378fe4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot @@ -124,6 +124,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 1, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot index 6ea38c2de2d..1731175b5ba 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 15, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot index 02b62b5f60e..7773536d09a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "arguments", + "optional": false, "range": Array [ 15, 24, @@ -106,6 +107,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 26, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot index 41b0004c5bd..7aec679ce7c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 15, 19, @@ -106,6 +107,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 21, 22, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot index df2b0492f13..d55a3caf26d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 15, 19, @@ -106,6 +107,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 21, 22, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot index b35cd58c7f8..ea760082334 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "arguments", + "optional": false, "range": Array [ 14, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot index a47984c8372..4b67c9a38b2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot @@ -88,6 +88,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 14, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot index c61b5eb26bc..4f673a0c0d0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -82,6 +84,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot index 1c68a4620ba..988af9c2cff 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -50,6 +51,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot index fb08fd1465b..1800b33dea1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot @@ -32,6 +32,7 @@ Object { }, }, "name": "property", + "optional": false, "range": Array [ 8, 16, @@ -50,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 8, 20, @@ -109,6 +111,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot index 938ad60939f..bb7c53e8601 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -69,6 +70,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 4, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot index 76386e3eb3e..a0c99317fd4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot @@ -87,6 +87,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -105,6 +106,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 4, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot index 8a223f8c59a..e9c09830d84 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "arguments", + "optional": false, "range": Array [ 0, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot index e91159c2d92..bf1443e8442 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 1, 5, @@ -69,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot index 05b2c6343f8..fe784fcef87 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "eval", + "optional": false, "range": Array [ 0, 4, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot index f34db200393..5dbcf55529f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot index 916b2d0b87d..0915caa72da 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot @@ -53,6 +53,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 5, 6, @@ -92,6 +93,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot index 9a52ff378ab..60869d9e554 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 19, 20, @@ -40,6 +41,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 22, 23, @@ -58,6 +60,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 25, 26, @@ -107,6 +110,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 9, 10, @@ -125,6 +129,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 12, 13, @@ -164,6 +169,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot index 26aaf540516..76cc20d81dc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot index 580bc8663a2..9dc76cb8f70 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "earth", + "optional": false, "range": Array [ 9, 14, @@ -50,6 +51,7 @@ Object { }, }, "name": "sun", + "optional": false, "range": Array [ 1, 4, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot index 9b88982aebf..7e1f9811055 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot index c119d31556c..972377f592a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 4, 5, @@ -241,6 +243,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -261,6 +264,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -273,6 +277,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 48, 49, @@ -496,6 +501,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -516,6 +522,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -528,6 +535,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 92, 93, @@ -605,6 +613,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -625,6 +634,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -637,6 +647,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 110, 111, @@ -714,6 +725,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot index 8f05ddeb3a7..448e165aeaf 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot @@ -29,6 +29,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, @@ -48,6 +49,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 11, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot index 0da42f60630..9959191df58 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot @@ -59,6 +59,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -71,6 +72,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 19, 20, @@ -113,6 +115,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -147,6 +150,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 34, 35, @@ -249,6 +253,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 51, 52, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot index 9ceeaf3b4df..c7e07f0a018 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "__test", + "optional": false, "range": Array [ 4, 10, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -108,6 +111,7 @@ Object { }, }, "name": "__Foo", + "optional": false, "range": Array [ 26, 31, @@ -165,6 +169,7 @@ Object { }, }, "name": "__Bar", + "optional": false, "range": Array [ 47, 52, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot index ad8045b6619..1a7d4a8b3dc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot @@ -51,6 +51,7 @@ Object { }, }, "name": "Set", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot index bc0dcb86119..dff2c10e4ab 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -49,6 +50,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot index 3c932c1e6c4..107a0f6637f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 9, 10, @@ -75,6 +76,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 21, 22, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot index 93a6e76b94b..e2b8f3a8401 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 4, 5, @@ -241,6 +243,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -261,6 +264,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -273,6 +277,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 48, 49, @@ -496,6 +501,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -516,6 +522,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -528,6 +535,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 92, 93, @@ -605,6 +613,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -625,6 +634,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -637,6 +647,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 110, 111, @@ -714,6 +725,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot index 148f69323ff..7411e8f7e4d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 4, 5, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -95,6 +98,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 28, 29, @@ -166,6 +170,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 20, 21, @@ -204,6 +209,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 35, 36, diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot index 939c699d4fb..5ae8af066d4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -36,6 +38,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 12, 15, @@ -59,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot index 56f8c6b6695..eced9db6122 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "t", + "optional": false, "range": Array [ 31, 32, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -148,6 +151,7 @@ Object { }, }, "name": "answer", + "optional": false, "range": Array [ 8, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot index 53576d7145a..4cff71d221e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -36,6 +38,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 10, 13, @@ -59,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot index 78d5678d526..b588ab18057 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot index 6483ae5d3c2..1f84441d822 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot index cb035b8a2cd..773a2c80a0b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot @@ -137,6 +137,7 @@ Object { }, }, "name": "call", + "optional": false, "range": Array [ 41, 45, diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot index 705206bd863..22db0acdb87 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 4, 7, @@ -147,6 +148,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot index 4bdbd1be761..f26d04074b3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 4, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot index 62aadc15acb..8e6b06df613 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 23, 24, @@ -169,6 +171,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 25, 26, @@ -212,6 +215,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot index 5871d6c60c9..df266758826 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 17, 18, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot index c1ee0b82f95..f25f347d837 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "prototype", + "optional": false, "range": Array [ 9, 18, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot index 9b70760930b..6ea901cfe50 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "static", + "optional": false, "range": Array [ 9, 15, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot index 9e9a41ba326..cab497dd68c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "withSpace", + "optional": false, "range": Array [ 9, 18, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot index 1f39c557998..6398d373167 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -168,6 +169,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot index ed28bce4faa..71779925035 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot index 07249d71dc9..cdd47f9698b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot @@ -206,6 +206,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 53, 58, @@ -234,6 +235,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 67, 78, @@ -437,6 +439,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot index 63586a9fa6d..b57b00ac61e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot @@ -120,6 +120,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 39, 50, @@ -323,6 +324,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot index 099a48f546c..14acb9a9ed7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot @@ -99,6 +99,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 27, 38, @@ -284,6 +285,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot index 4f725a4e536..8922e07650e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot @@ -115,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot index b1756b4818d..b22f088f99f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "static", + "optional": false, "range": Array [ 16, 22, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot index 1cf9872e589..6a57b0fc699 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot index 0dda0b03089..d6fe2e21673 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -99,6 +100,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 33, 34, @@ -178,6 +180,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 50, 51, @@ -248,6 +251,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 52, 53, @@ -291,6 +295,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot index f99bd40eb6c..29114ab169f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 31, 32, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot index e104bce8c44..4961fce0c8d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 9, 22, @@ -194,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot index 6c78f574166..98e2eb4d5c1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 15, 16, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot index 5060c0584f9..e2590e8b0d1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 10, 11, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot index aeb53db1865..0ea9b7723d1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 15, 16, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot index b8be5d7f17c..b9ff1fbe9dc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -99,6 +100,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 14, 15, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot index 9b9e4330f1b..5309172a6ec 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 16, 27, @@ -99,6 +100,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 39, 50, @@ -193,6 +195,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot index e736c7d3cc9..489eccc1b50 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 9, 20, @@ -90,6 +91,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 21, 24, @@ -108,6 +110,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 26, 29, @@ -151,6 +154,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot index 1356638c862..654ec8856bf 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 9, 20, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot index 150efc9e0ac..06d1055e0e5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 9, 20, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot index 989ff0f33f2..92b2dd631a6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -55,6 +57,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -113,6 +116,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot index 98ef359c106..e91ea01f493 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot index ab1d37c0797..6898f5abb43 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot index 109ce40729e..0181f7384a3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot index d9d3534a4e3..eb3e24f04fc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot index 8b505ede615..dfba9b3c491 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -114,6 +115,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot index 1d6158ac7f7..e9506f6c59a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 7, 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot index 14b06887a7e..6f3ac3acbca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 7, 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot index 1dc6e744c8b..9cc0015454a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "xx", + "optional": false, "range": Array [ 4, 6, @@ -59,6 +61,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 15, 16, @@ -109,6 +112,7 @@ Object { }, }, "name": "xx", + "optional": false, "range": Array [ 10, 12, @@ -170,6 +174,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot index c1b49d054d4..25fb621b02a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "v1", + "optional": false, "range": Array [ 4, 6, @@ -193,6 +195,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot index a2e9bff57c7..5c50f1692ea 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "v1", + "optional": false, "range": Array [ 4, 6, @@ -231,6 +233,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot index 93490af1237..e2a778bb10c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 22, 23, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -96,6 +99,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 38, 39, @@ -114,6 +118,7 @@ Object { }, }, "name": "v1", + "optional": false, "range": Array [ 41, 43, @@ -132,6 +137,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 45, 46, @@ -202,6 +208,7 @@ Object { }, }, "name": "f1", + "optional": false, "range": Array [ 9, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot index c98475bf6de..388b8cc71b6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -98,6 +100,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot index 0b631ee0433..792df9e0a54 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot index a0f0e8f243e..feed938fd9a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -91,6 +92,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 26, 29, @@ -107,6 +109,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 35, @@ -169,6 +172,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot index e826cfb92f9..48c5d5854fd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -91,6 +92,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 18, 21, @@ -107,6 +109,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 18, 27, @@ -169,6 +172,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot index d1c4c3c493e..93ac7ad1181 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -67,6 +68,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -83,6 +85,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot index 85368a32a1e..befe9a40b32 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -85,6 +86,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -101,6 +103,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot index da24615c5b0..059a8440ba0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -64,6 +65,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 6, 7, @@ -82,6 +84,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 25, @@ -135,6 +138,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 18, 19, @@ -151,6 +155,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 18, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot index 6a6b9ad1510..41621172981 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -70,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 19, 20, @@ -89,6 +92,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 22, 23, @@ -105,6 +109,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 22, 28, @@ -142,6 +147,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 30, 31, @@ -172,6 +178,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot index 405c25df931..fb3d114c9e4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -52,6 +53,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, @@ -69,6 +71,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 4, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot index 84976000f5e..397e92502ca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -52,6 +53,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, @@ -72,6 +74,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -89,6 +92,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 8, @@ -106,6 +110,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot index 3516ca2e262..3115ed57fd4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 26, 27, @@ -49,6 +50,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -64,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 2, 5, @@ -82,6 +85,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 8, @@ -100,6 +104,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 7, 8, @@ -121,6 +126,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 10, 11, @@ -139,6 +145,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 20, @@ -156,6 +163,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -171,6 +179,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, @@ -189,6 +198,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 19, @@ -207,6 +217,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 18, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot index 1d6d3b3bd21..1712034e963 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 16, 17, @@ -49,6 +50,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -64,6 +66,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, @@ -82,6 +85,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 3, @@ -100,6 +104,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, @@ -121,6 +126,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -139,6 +145,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 10, @@ -156,6 +163,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -171,6 +179,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 8, 9, @@ -189,6 +198,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 8, 9, @@ -207,6 +217,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 8, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot index 4bf994371b6..ef8b88747a2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -49,6 +50,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -64,6 +66,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, @@ -82,6 +85,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 3, @@ -100,6 +104,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 2, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot index 5bd16903c83..92990908e39 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -53,6 +54,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -69,6 +71,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 2, 8, @@ -105,6 +108,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot index 1b911d613b4..d1b71310535 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 30, 31, @@ -38,6 +39,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 33, 34, @@ -86,6 +88,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -101,6 +104,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -119,6 +123,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 8, @@ -138,6 +143,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -154,6 +160,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 2, 8, @@ -194,6 +201,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 10, 11, @@ -212,6 +220,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 23, @@ -229,6 +238,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -244,6 +254,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -262,6 +273,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 15, 21, @@ -281,6 +293,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -297,6 +310,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot index 7cc4c1de4bf..e236a253633 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -49,6 +50,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -64,6 +66,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -82,6 +85,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 8, @@ -101,6 +105,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -117,6 +122,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 2, 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot index 452ffb3e780..e824ced7727 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 6, 9, @@ -78,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot index d318cf63e3e..e961caf7cbb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 7, @@ -78,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot index 14d94b2cc1b..63bd7488d2d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 10, @@ -68,6 +72,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 9, 10, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot index e5cd331f1d4..29c126b338f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 8, @@ -68,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot index cc0dd13d2ea..9e388a9794b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 8, @@ -68,6 +72,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 7, 8, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot index 27ff03194b1..caa1c7a1da2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 6, @@ -68,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot index b903de9883d..4be14bc1717 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -69,6 +70,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -86,6 +88,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 14, @@ -102,6 +105,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot index 87bf9790bb4..17189f263be 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 2, 3, @@ -48,6 +49,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 2, 21, @@ -100,6 +102,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -115,6 +118,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -133,6 +137,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 6, @@ -151,6 +156,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -175,6 +181,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 17, @@ -205,6 +212,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 11, 12, @@ -223,6 +231,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 11, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot index e2839e63889..f5c1dd79a99 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 2, 3, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 31, @@ -100,6 +102,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -115,6 +118,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 15, 16, @@ -133,6 +137,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 15, 16, @@ -151,6 +156,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 15, 16, @@ -175,6 +181,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 27, @@ -205,6 +212,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 21, 22, @@ -223,6 +231,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 21, 26, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot index 9662e108e5a..4a042a40da7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 0, 1, @@ -84,6 +85,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -99,6 +101,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -117,6 +120,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 15, @@ -135,6 +139,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -159,6 +164,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 26, @@ -189,6 +195,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 20, 21, @@ -207,6 +214,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 20, 25, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot index e7d0d5be18a..73f7a765ea3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -53,6 +54,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 8, @@ -85,6 +87,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot index 64cf4bdaad8..fefa8fb297f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot @@ -18,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -33,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 3, 4, @@ -51,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 4, @@ -69,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 3, 4, @@ -90,6 +94,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -108,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 7, @@ -126,6 +132,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -153,6 +160,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 14, 15, @@ -169,6 +177,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 15, @@ -186,6 +195,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 16, @@ -219,6 +229,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 19, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot index e2fffc3b1c3..bb7f438d522 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -40,6 +41,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 8, 9, @@ -58,6 +60,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 11, 12, @@ -75,6 +78,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 7, 13, @@ -91,6 +95,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 13, @@ -108,6 +113,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 14, @@ -141,6 +147,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 17, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot index 0d322901e40..fe9ddde988e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -68,6 +69,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -86,6 +88,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 15, 16, @@ -107,6 +110,7 @@ Object { }, }, "name": "ok", + "optional": false, "range": Array [ 22, 24, @@ -124,6 +128,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 21, 25, @@ -140,6 +145,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 18, 25, @@ -157,6 +163,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 26, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot index ab822275394..f0422f49319 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 4, 5, @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 5, @@ -53,6 +55,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -68,6 +71,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -86,6 +90,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 9, 10, @@ -104,6 +109,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -125,6 +131,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 12, 13, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 13, @@ -161,6 +169,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 12, 13, @@ -186,6 +195,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 16, @@ -219,6 +229,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 19, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot index 82b11730af3..939c6546f15 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 5, @@ -53,6 +55,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 8, @@ -86,6 +89,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 11, 12, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot index 111fb7b6e87..7e8d12a451b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -38,6 +39,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 7, 8, @@ -54,6 +56,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 8, @@ -71,6 +74,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 9, @@ -104,6 +108,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot index b3f465972b9..40da8884e7a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 5, @@ -54,6 +56,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 7, 8, @@ -71,6 +74,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 9, @@ -104,6 +108,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot index 4dba8ec3f65..75d4577e0fe 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 5, @@ -53,6 +55,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 6, @@ -86,6 +89,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot index 8ab620c6f48..9d4a266abc1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -19,6 +20,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -34,6 +36,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -52,6 +55,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 8, @@ -70,6 +74,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -91,6 +96,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 10, 11, @@ -109,6 +115,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 11, @@ -127,6 +134,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 10, 11, @@ -154,6 +162,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 18, 19, @@ -170,6 +179,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 19, @@ -187,6 +197,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 20, @@ -205,6 +216,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 23, 24, @@ -228,6 +240,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot index c3ea37a02c8..71417ff0fac 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -41,6 +43,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 12, 13, @@ -59,6 +62,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 15, 16, @@ -76,6 +80,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 17, @@ -92,6 +97,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 8, 17, @@ -109,6 +115,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 18, @@ -127,6 +134,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 21, 22, @@ -150,6 +158,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot index 2ce8cb857f6..8f60e845ec7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -39,6 +41,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 11, 12, @@ -55,6 +58,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 8, 12, @@ -72,6 +76,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 13, @@ -90,6 +95,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 16, 17, @@ -113,6 +119,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot index 014d983b100..c4d6ed3941a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 9, @@ -54,6 +57,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 10, @@ -72,6 +76,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 13, 14, @@ -95,6 +100,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot index 848973a3401..eada64343d5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot @@ -31,6 +31,7 @@ Object { }, }, "name": "ok", + "optional": false, "range": Array [ 1, 3, @@ -50,6 +51,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 4, 5, @@ -73,6 +75,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 6, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot index 190b44a9f5d..4f194d845c8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -37,6 +38,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 4, 5, @@ -54,6 +56,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 6, @@ -89,6 +92,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 10, 11, @@ -107,6 +111,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot index 9109714b711..3ce2f2b0dcf 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 7, @@ -78,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot index c621e3871b7..da432ff0d72 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot index 9329bf4be94..e688e345b6f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot index 1ce60cf6afe..b8444f5dc25 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "consturctor", + "optional": false, "range": Array [ 14, 25, @@ -92,6 +93,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -110,6 +112,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 32, 35, @@ -127,6 +130,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 36, @@ -170,6 +174,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot index 31e9b9c678e..fd1c01bfcfb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "consturctor", + "optional": false, "range": Array [ 14, 25, @@ -93,6 +94,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -109,6 +111,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 27, 32, @@ -147,6 +150,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 34, 37, @@ -163,6 +167,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 34, 39, @@ -199,6 +204,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 40, @@ -242,6 +248,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot index 2fac40a2301..a68fbc11354 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "consturctor", + "optional": false, "range": Array [ 14, 25, @@ -89,6 +90,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -104,6 +106,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -122,6 +125,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 27, 32, @@ -141,6 +145,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -157,6 +162,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 27, 32, @@ -197,6 +203,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 34, 37, @@ -215,6 +222,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 34, 39, @@ -234,6 +242,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 34, 37, @@ -250,6 +259,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 34, 39, @@ -320,6 +330,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot index 2ce4b20aef5..f4ce1468e52 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "consturctor", + "optional": false, "range": Array [ 14, 25, @@ -89,6 +90,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -104,6 +106,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -122,6 +125,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 27, 30, @@ -140,6 +144,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 30, @@ -161,6 +166,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 32, 35, @@ -179,6 +185,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 32, 35, @@ -197,6 +204,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 32, 35, @@ -248,6 +256,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot index 0788bd3e590..51c87708b48 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -92,6 +93,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -110,6 +112,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 24, 27, @@ -127,6 +130,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 18, 28, @@ -170,6 +174,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot index 09a9336e202..f55bb613060 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -93,6 +94,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -109,6 +111,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 19, 24, @@ -147,6 +150,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 29, @@ -163,6 +167,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 31, @@ -199,6 +204,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 18, 32, @@ -242,6 +248,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot index bc5f1596e9b..fce3403695c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -89,6 +90,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -104,6 +106,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -122,6 +125,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 24, @@ -141,6 +145,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -157,6 +162,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 19, 24, @@ -197,6 +203,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 29, @@ -215,6 +222,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 26, 31, @@ -234,6 +242,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 29, @@ -250,6 +259,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 31, @@ -320,6 +330,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot index 3916e252351..90eba152b00 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -89,6 +90,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -104,6 +106,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -122,6 +125,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 22, @@ -140,6 +144,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -161,6 +166,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 24, 27, @@ -179,6 +185,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 24, 27, @@ -197,6 +204,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 24, 27, @@ -248,6 +256,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot index aac83a96955..8163fff4458 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -75,6 +78,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -91,6 +95,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 18, @@ -129,6 +134,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, @@ -145,6 +151,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 20, 25, @@ -181,6 +188,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 26, @@ -199,6 +207,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 29, 30, @@ -222,6 +231,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot index 0353642185a..adf6a9594f8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 9, @@ -68,6 +72,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 8, 9, @@ -89,6 +94,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 11, 12, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 11, 15, @@ -125,6 +132,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 14, 15, @@ -146,6 +154,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 17, 18, @@ -164,6 +173,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 17, 32, @@ -181,6 +191,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -196,6 +207,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 22, 23, @@ -214,6 +226,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 22, 31, @@ -233,6 +246,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 25, 26, @@ -249,6 +263,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 25, 31, @@ -302,6 +317,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 37, 38, @@ -325,6 +341,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot index f72b227a692..42026e0da50 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -74,6 +77,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -92,6 +96,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 16, 17, @@ -109,6 +114,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 18, @@ -127,6 +133,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 21, 22, @@ -150,6 +157,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot index 22ae1d09861..97c7f8112a6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -77,6 +80,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -93,6 +97,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 21, @@ -129,6 +134,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 22, @@ -146,6 +152,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 23, @@ -164,6 +171,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 26, 27, @@ -187,6 +195,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot index 1685236290e..39a4bbeb484 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -37,6 +39,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -76,6 +79,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -93,6 +97,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 18, @@ -110,6 +115,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 19, @@ -128,6 +134,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 22, 23, @@ -151,6 +158,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot index 1e2f06544aa..72a09d5aae0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 1, 2, @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 1, 5, @@ -72,6 +74,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 6, @@ -105,6 +108,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot index 6cfa4a4b352..436035170d9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 11, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -125,6 +131,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 18, @@ -162,6 +170,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -178,6 +187,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 18, @@ -218,6 +228,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, @@ -236,6 +247,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 20, 25, @@ -255,6 +267,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, @@ -271,6 +284,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 20, 25, @@ -316,6 +330,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 29, 30, @@ -339,6 +354,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot index 362957bb745..ec3b0827e19 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "Object", + "optional": false, "range": Array [ 3, 9, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 11, @@ -68,6 +71,7 @@ Object { }, }, "name": "Object", + "optional": false, "range": Array [ 3, 9, @@ -84,6 +88,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 3, 11, @@ -124,6 +129,7 @@ Object { }, }, "name": "String", + "optional": false, "range": Array [ 13, 19, @@ -142,6 +148,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 21, @@ -161,6 +168,7 @@ Object { }, }, "name": "String", + "optional": false, "range": Array [ 13, 19, @@ -177,6 +185,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot index 68f717f659b..c1349534bed 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 14, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 8, 9, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 8, 14, @@ -125,6 +131,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 16, 17, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 25, @@ -162,6 +170,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 19, 20, @@ -178,6 +187,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 19, 25, @@ -218,6 +228,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 27, 28, @@ -236,6 +247,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 27, 36, @@ -255,6 +267,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 30, 31, @@ -271,6 +284,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 30, 36, @@ -316,6 +330,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 40, 41, @@ -339,6 +354,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot index f6a2d40937f..a9b8bfafa18 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 9, @@ -68,6 +72,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 8, 9, @@ -89,6 +94,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 11, 12, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 11, 20, @@ -126,6 +133,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 14, 15, @@ -142,6 +150,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 20, @@ -182,6 +191,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 22, 23, @@ -200,6 +210,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 22, 26, @@ -218,6 +229,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 25, 26, @@ -244,6 +256,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 30, 31, @@ -267,6 +280,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot index 1f002a3fe71..302d7435915 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 15, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 9, 15, @@ -130,6 +136,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 20, 21, @@ -153,6 +160,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot index b91fd36716a..335d01c12ff 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 6, @@ -68,6 +72,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -89,6 +94,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 8, 9, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 8, 17, @@ -126,6 +133,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 11, 12, @@ -142,6 +150,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 17, @@ -182,6 +191,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 19, 20, @@ -200,6 +210,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 20, @@ -218,6 +229,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 19, 20, @@ -244,6 +256,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 24, 25, @@ -267,6 +280,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot index a7731280ca4..ea65b90cd0c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 11, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -125,6 +131,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 14, @@ -161,6 +169,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -182,6 +191,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 16, 17, @@ -200,6 +210,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 17, @@ -218,6 +229,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 16, 17, @@ -244,6 +256,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 21, 22, @@ -267,6 +280,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot index 5fb2a374edb..34ba90afe9d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 11, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -125,6 +131,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 25, @@ -160,6 +168,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -175,6 +184,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 18, 19, @@ -193,6 +203,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 18, 24, @@ -212,6 +223,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 18, 19, @@ -228,6 +240,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 18, 24, @@ -281,6 +294,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 29, 30, @@ -304,6 +318,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot index ba0e9ac1cb8..712bae8812e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 11, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -125,6 +131,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -143,6 +150,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 21, @@ -160,6 +168,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -175,6 +184,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 18, 19, @@ -193,6 +203,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 18, 19, @@ -211,6 +222,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 18, 19, @@ -245,6 +257,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 25, 26, @@ -268,6 +281,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot index c6ae07ae051..b30de7930dc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 11, @@ -69,6 +73,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -85,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 11, @@ -130,6 +136,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 15, 16, @@ -153,6 +160,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot index aa37a16a8ad..1b23439ed0b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot @@ -13,6 +13,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -24,6 +25,7 @@ Object { "line": 3, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -39,6 +41,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 35, 36, @@ -57,6 +60,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 35, 36, @@ -75,6 +79,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 35, 36, @@ -101,6 +106,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 40, 41, @@ -124,6 +130,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -202,6 +209,7 @@ Object { }, }, "name": "stack", + "optional": false, "range": Array [ 56, 61, @@ -219,6 +227,7 @@ Object { "line": 5, }, }, + "optional": false, "range": Array [ 55, 62, @@ -278,6 +287,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -306,6 +316,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -321,6 +332,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -339,6 +351,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 13, @@ -357,6 +370,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot index e06b085bd83..6c986b91423 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot @@ -13,6 +13,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -24,6 +25,7 @@ Object { "line": 3, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -39,6 +41,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 35, 36, @@ -57,6 +60,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 35, 36, @@ -75,6 +79,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 35, 36, @@ -101,6 +106,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 40, 41, @@ -124,6 +130,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -199,6 +206,7 @@ Object { "line": 5, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -214,6 +222,7 @@ Object { }, }, "name": "stack", + "optional": false, "range": Array [ 56, 61, @@ -232,6 +241,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 56, 61, @@ -250,6 +260,7 @@ Object { }, }, "name": "stack", + "optional": false, "range": Array [ 56, 61, @@ -317,6 +328,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -345,6 +357,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -360,6 +373,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -378,6 +392,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 13, @@ -396,6 +411,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot index bf9fe990f40..1a5b838add6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot @@ -31,6 +31,7 @@ Object { }, }, "name": "Object", + "optional": false, "range": Array [ 3, 9, @@ -49,6 +50,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 11, @@ -68,6 +70,7 @@ Object { }, }, "name": "Object", + "optional": false, "range": Array [ 3, 9, @@ -84,6 +87,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 3, 11, @@ -124,6 +128,7 @@ Object { }, }, "name": "String", + "optional": false, "range": Array [ 13, 19, @@ -142,6 +147,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 21, @@ -161,6 +167,7 @@ Object { }, }, "name": "String", + "optional": false, "range": Array [ 13, 19, @@ -177,6 +184,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot index 6e8599440da..728d479f162 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "responseText", + "optional": false, "range": Array [ 3, 15, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 21, @@ -67,6 +70,7 @@ Object { }, }, "name": "text", + "optional": false, "range": Array [ 17, 21, @@ -108,6 +112,7 @@ Object { }, }, "name": "res", + "optional": false, "range": Array [ 26, 29, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot index e00a6beaf35..aef1deb9b9d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -42,6 +44,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 13, 14, @@ -59,6 +62,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 10, 15, @@ -76,6 +80,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 4, 16, @@ -213,6 +218,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot index 1c1951aa9d3..f4b6c8aaf24 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 9, @@ -68,6 +72,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 8, 9, @@ -89,6 +94,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 11, 12, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 11, 22, @@ -124,6 +131,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -139,6 +147,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -157,6 +166,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 20, @@ -175,6 +185,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 19, 20, @@ -223,6 +234,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 29, 30, @@ -241,6 +253,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 29, 35, @@ -281,6 +294,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 37, 38, @@ -299,6 +313,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 37, 50, @@ -331,6 +346,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 42, 43, @@ -349,6 +365,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 48, @@ -407,6 +424,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot index 316f7ab4beb..83c6e8ba102 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 8, @@ -68,6 +72,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 7, 8, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot index a5efaea684b..e0475e0fade 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 5, 6, @@ -68,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 5, 6, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot index 58fc94bcbf0..dc09d73d37f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -69,6 +70,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -85,6 +87,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 18, @@ -121,6 +124,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot index 59556c231d5..d6ed11ac19b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 18, @@ -117,6 +121,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -133,6 +138,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 18, @@ -173,6 +179,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 20, 21, @@ -191,6 +198,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 20, 33, @@ -208,6 +216,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -223,6 +232,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 25, 26, @@ -241,6 +251,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 25, 31, @@ -260,6 +271,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 25, 26, @@ -276,6 +288,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 25, 31, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot index 09960faeb99..fbbfa964b85 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 18, @@ -117,6 +121,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -133,6 +138,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot index 77100966b2f..ca0423fd8a9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 10, 11, @@ -69,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -87,6 +89,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, @@ -104,6 +107,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot index d4c75e01a5d..2e648b6fb63 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -68,6 +69,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -86,6 +88,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, @@ -103,6 +106,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot index d331c2deea8..77d61d26b14 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -66,6 +67,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -83,6 +85,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -98,6 +101,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, @@ -116,6 +120,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 17, @@ -134,6 +139,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot index ae76ac0fc77..b4624a43268 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -68,6 +69,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -90,6 +92,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, @@ -107,6 +110,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 17, 22, @@ -124,6 +128,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot index 171f65e0783..402c5a81e8e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 16, @@ -116,6 +120,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 15, 16, @@ -137,6 +142,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 18, 19, @@ -155,6 +161,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 18, 29, @@ -172,6 +179,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -187,6 +195,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 23, 24, @@ -205,6 +214,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 23, 27, @@ -223,6 +233,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 26, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot index ff10cae4202..3cccfea0ac5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 10, 11, @@ -66,6 +67,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -81,6 +83,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -99,6 +102,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 15, @@ -117,6 +121,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -138,6 +143,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, @@ -156,6 +162,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 17, 18, @@ -174,6 +181,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot index 46718c85841..eff47389bea 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 14, @@ -116,6 +120,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -137,6 +142,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, @@ -155,6 +161,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 17, @@ -173,6 +180,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 16, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot index ef1b769effd..062e88d085d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, @@ -38,6 +39,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 4, 5, @@ -55,6 +57,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 0, 6, @@ -88,6 +91,7 @@ Object { }, }, "name": "array", + "optional": false, "range": Array [ 9, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot index 51827cec393..b020fef6584 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot @@ -47,6 +47,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -59,6 +60,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 39, 40, @@ -101,6 +103,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -185,6 +188,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot index 65f9143603d..49aa228cfef 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot @@ -57,6 +57,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 31, 42, @@ -174,6 +175,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 85, 88, @@ -291,6 +293,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 131, 134, @@ -399,6 +402,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 136, 141, @@ -427,6 +431,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 178, 184, @@ -559,6 +564,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 21, 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot index 6412b4454ea..4d92815c742 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot @@ -148,6 +148,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot index 5b499799395..a074254b417 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot @@ -80,6 +80,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +93,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 31, 32, @@ -116,6 +118,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot index dc0839bc47c..3ab520acba4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -55,6 +56,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 18, 19, @@ -97,6 +99,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot index cefbdc750e6..bec0c8cd341 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 16, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot index e66f0e0c022..0ddd5b7adb1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot @@ -30,6 +30,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -42,6 +43,7 @@ Object { }, }, "name": "item", + "optional": false, "range": Array [ 44, 48, @@ -66,6 +68,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -109,6 +112,7 @@ Object { }, }, "name": "items", + "optional": false, "range": Array [ 52, 57, @@ -148,6 +152,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot index 14fa1e6f786..8c085411a8d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "main", + "optional": false, "range": Array [ 19, 23, @@ -87,6 +88,7 @@ Object { }, }, "name": "then", + "optional": false, "range": Array [ 14, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot index 1cc404faaa5..e287bd3d260 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 9, 10, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 12, 13, @@ -116,6 +120,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -136,6 +141,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 18, 19, @@ -152,6 +158,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot index a659770cfb6..b974171159e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 3, @@ -67,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, @@ -87,6 +91,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 8, 9, @@ -103,6 +108,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 9, @@ -157,6 +163,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -175,6 +182,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 15, @@ -193,6 +201,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -213,6 +222,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot index d187a99bb5a..68d0f4f25da 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "argument": Object { @@ -79,6 +81,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 17, 20, @@ -95,6 +98,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot index 1d53fc3080d..438c9ada80b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 7, @@ -68,6 +72,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -89,6 +94,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 9, 10, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 9, 10, @@ -125,6 +132,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 9, 10, @@ -145,6 +153,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -161,6 +170,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 16, @@ -186,6 +196,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 22, 25, @@ -209,6 +220,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot index e8a006bc876..b8fe60933a7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -32,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -50,6 +53,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 7, @@ -68,6 +72,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, @@ -89,6 +94,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 9, 10, @@ -107,6 +113,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 9, 10, @@ -125,6 +132,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 9, 10, @@ -145,6 +153,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 15, 16, @@ -161,6 +170,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 16, @@ -200,6 +210,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 23, 24, @@ -218,6 +229,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 23, 27, @@ -258,6 +270,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 29, 30, @@ -276,6 +289,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 29, 33, @@ -316,6 +330,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 35, 36, @@ -334,6 +349,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 35, 39, @@ -374,6 +390,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 41, 42, @@ -392,6 +409,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 41, 45, @@ -442,6 +460,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot index d415e4b0664..652b18b2b7e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -42,6 +44,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 13, 16, @@ -78,6 +82,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -90,6 +95,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 22, 25, @@ -114,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -134,6 +141,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -146,6 +154,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 32, 33, @@ -178,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -196,6 +206,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 50, @@ -214,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 47, 50, @@ -235,6 +247,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 56, 59, @@ -253,6 +266,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 56, 64, @@ -271,6 +285,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 61, 64, @@ -303,6 +318,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 73, 76, @@ -322,6 +338,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 77, 80, @@ -374,6 +391,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot index c815fa11f2b..c32c874060f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "initialize", + "optional": false, "range": Array [ 7, 17, @@ -48,6 +49,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 7, 104, @@ -99,6 +101,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -114,6 +117,7 @@ Object { }, }, "name": "someVar", + "optional": false, "range": Array [ 19, 26, @@ -132,6 +136,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 26, @@ -150,6 +155,7 @@ Object { }, }, "name": "someVar", + "optional": false, "range": Array [ 19, 26, @@ -171,6 +177,7 @@ Object { }, }, "name": "otherVar", + "optional": false, "range": Array [ 28, 36, @@ -189,6 +196,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 28, 36, @@ -207,6 +215,7 @@ Object { }, }, "name": "otherVar", + "optional": false, "range": Array [ 28, 36, @@ -227,6 +236,7 @@ Object { }, }, "name": "options", + "optional": false, "range": Array [ 41, 48, @@ -243,6 +253,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 38, 48, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot index 9acdf82f334..5340d44695f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -50,6 +52,7 @@ Object { }, }, "name": "initialize", + "optional": false, "range": Array [ 14, 24, @@ -68,6 +71,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 14, 111, @@ -119,6 +123,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -134,6 +139,7 @@ Object { }, }, "name": "someVar", + "optional": false, "range": Array [ 26, 33, @@ -152,6 +158,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 26, 33, @@ -170,6 +177,7 @@ Object { }, }, "name": "someVar", + "optional": false, "range": Array [ 26, 33, @@ -191,6 +199,7 @@ Object { }, }, "name": "otherVar", + "optional": false, "range": Array [ 35, 43, @@ -209,6 +218,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 35, 43, @@ -227,6 +237,7 @@ Object { }, }, "name": "otherVar", + "optional": false, "range": Array [ 35, 43, @@ -247,6 +258,7 @@ Object { }, }, "name": "options", + "optional": false, "range": Array [ 48, 55, @@ -263,6 +275,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 45, 55, @@ -308,6 +321,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot index 91228d7682c..597132ca986 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -42,6 +44,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 13, 16, @@ -78,6 +82,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -90,6 +95,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 22, 25, @@ -114,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -134,6 +141,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -146,6 +154,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 32, 33, @@ -178,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -196,6 +206,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 45, @@ -214,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -235,6 +247,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 51, 54, @@ -253,6 +266,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 51, 54, @@ -271,6 +285,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 51, 54, @@ -291,6 +306,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 63, 66, @@ -337,6 +353,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot index 5cfc79c2735..bec49818dab 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -42,6 +44,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 13, 16, @@ -78,6 +82,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -90,6 +95,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 22, 25, @@ -114,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -134,6 +141,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -146,6 +154,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 32, 33, @@ -178,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -196,6 +206,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 50, @@ -214,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 47, 50, @@ -235,6 +247,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 56, 59, @@ -253,6 +266,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 56, 64, @@ -271,6 +285,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 61, 64, @@ -291,6 +306,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 73, 76, @@ -337,6 +353,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot index bebb447a087..f8db54cec1b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 3, 4, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 4, @@ -66,6 +68,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 3, 4, @@ -87,6 +90,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -105,6 +109,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 6, 7, @@ -123,6 +128,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -143,6 +149,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot index e6bb9702157..ead776eac43 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -42,6 +44,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 13, 16, @@ -78,6 +82,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -90,6 +95,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 22, 25, @@ -114,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -134,6 +141,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -146,6 +154,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 32, 33, @@ -178,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -196,6 +206,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 50, @@ -214,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 47, 50, @@ -234,6 +246,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 59, 62, @@ -269,6 +282,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 71, 74, @@ -315,6 +329,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot index 8c0309ebbe5..14ef2094cee 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -97,6 +99,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -128,6 +131,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 16, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot index b5220544789..0bc524b3b73 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot @@ -25,6 +25,7 @@ Object { "init": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -37,6 +38,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 8, 9, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -123,6 +126,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 15, 16, @@ -179,6 +183,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 23, 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot index 59d47b3c3a7..cf7e9de141c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot @@ -25,6 +25,7 @@ Object { "init": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -37,6 +38,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 9, 10, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -91,6 +94,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 16, 17, @@ -133,6 +137,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -177,6 +182,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 24, 25, @@ -210,6 +216,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 28, 29, @@ -234,6 +241,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 31, 32, @@ -271,6 +279,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 36, 37, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot index d6604a94d08..9f040ad2832 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot @@ -25,6 +25,7 @@ Object { "init": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -37,6 +38,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 11, 12, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -123,6 +126,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 18, 19, @@ -156,6 +160,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot index 02314403052..43b934dcb58 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -103,6 +104,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -150,6 +152,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 16, 17, @@ -169,6 +172,7 @@ Object { }, }, "name": "toExponential", + "optional": false, "range": Array [ 18, 31, @@ -214,6 +218,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 35, 36, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot index 9f69b0334f7..d97b0603988 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot @@ -25,6 +25,7 @@ Object { "init": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -37,6 +38,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 11, 12, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -123,6 +126,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 18, 19, @@ -156,6 +160,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot index b05dc1c559f..5e360dc8f87 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 5, 6, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot index e94137b6a6f..63eed9d4784 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "effects", + "optional": false, "range": Array [ 4, 11, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -80,6 +83,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { }, }, "name": "iterations", + "optional": false, "range": Array [ 21, 31, @@ -134,6 +139,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -154,6 +160,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -166,6 +173,7 @@ Object { }, }, "name": "stored", + "optional": false, "range": Array [ 41, 47, @@ -190,6 +198,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -224,6 +233,7 @@ Object { }, }, "name": "iterations", + "optional": false, "range": Array [ 119, 129, @@ -284,6 +294,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -296,6 +307,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 58, 59, @@ -317,6 +329,7 @@ Object { }, }, "name": "effects", + "optional": false, "range": Array [ 65, 72, @@ -413,6 +426,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -459,6 +473,7 @@ Object { }, }, "name": "stored", + "optional": false, "range": Array [ 81, 87, @@ -492,6 +507,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 90, 91, @@ -526,6 +542,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 94, 95, @@ -544,6 +561,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 94, 98, @@ -584,6 +602,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 100, 101, @@ -602,6 +621,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 100, 104, @@ -642,6 +662,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 106, 107, @@ -660,6 +681,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 106, 110, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot index c70af2c332d..f91cf09faa9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot @@ -25,6 +25,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -36,6 +37,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -51,6 +53,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -69,6 +72,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 14, @@ -87,6 +91,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -108,6 +113,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -126,6 +132,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 21, @@ -144,6 +151,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -176,6 +184,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -219,6 +228,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 26, 29, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot index 59b179fd789..33a77097460 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot @@ -25,6 +25,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -39,6 +40,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -57,6 +59,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -74,6 +77,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 9, 22, @@ -98,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -141,6 +146,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 26, 29, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot index f61e4c6756a..7b7612be196 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 5, 6, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot index 82912047821..8f2541eed9d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 33, 34, @@ -38,6 +39,7 @@ Object { }, }, "name": "process", + "optional": false, "range": Array [ 25, 32, @@ -80,6 +82,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +95,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -134,6 +138,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -177,6 +182,7 @@ Object { }, }, "name": "list", + "optional": false, "range": Array [ 19, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot index eb4a5c2c77f..80511d0c14b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -50,6 +51,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 5, 10, @@ -101,6 +103,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot index 63881798e46..81ab2687874 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 30, 31, @@ -38,6 +39,7 @@ Object { }, }, "name": "process", + "optional": false, "range": Array [ 22, 29, @@ -80,6 +82,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +95,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 11, 12, @@ -116,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -159,6 +164,7 @@ Object { }, }, "name": "list", + "optional": false, "range": Array [ 16, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot index ddb8aa41b06..0658527f6c1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot @@ -24,6 +24,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -55,6 +57,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 13, 14, @@ -88,6 +91,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 17, 18, @@ -113,6 +117,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -156,6 +161,7 @@ Object { }, }, "name": "q", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot index e93b5d22cd4..ce1f54cbb99 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot @@ -33,6 +33,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -48,6 +49,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -66,6 +68,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 12, @@ -84,6 +87,7 @@ Object { }, }, "name": "xx", + "optional": false, "range": Array [ 10, 12, @@ -104,6 +108,7 @@ Object { }, }, "name": "rrestOff", + "optional": false, "range": Array [ 17, 25, @@ -120,6 +125,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 25, @@ -159,6 +165,7 @@ Object { }, }, "name": "array", + "optional": false, "range": Array [ 31, 36, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot index 9a9af4bd30c..ca754c88003 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 28, 29, @@ -38,6 +39,7 @@ Object { }, }, "name": "process", + "optional": false, "range": Array [ 20, 27, @@ -80,6 +82,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +95,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -116,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -159,6 +164,7 @@ Object { }, }, "name": "list", + "optional": false, "range": Array [ 14, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot index 078868fc47f..4d23383b5f7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 22, 33, @@ -62,6 +63,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -98,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot index 8a93c095a94..dfdcdee469c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot @@ -26,6 +26,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -37,6 +38,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -52,6 +54,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -70,6 +73,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 14, @@ -88,6 +92,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -109,6 +114,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -127,6 +133,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 21, @@ -145,6 +152,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -177,6 +185,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -220,6 +229,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 26, 29, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot index 1999a0f984d..cffdcf4fd51 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot @@ -26,6 +26,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "elements": Array [ Object { @@ -40,6 +41,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 10, 14, @@ -58,6 +60,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 16, 21, @@ -75,6 +78,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 9, 22, @@ -99,6 +103,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -142,6 +147,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 26, 29, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot index 41ee9ffb250..cfba9aa7116 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 22, 33, @@ -62,6 +63,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -98,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot index d509e43fcef..af03f933407 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 61, 62, @@ -39,6 +40,7 @@ Object { }, }, "name": "process", + "optional": false, "range": Array [ 53, 60, @@ -81,6 +83,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -93,6 +96,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 9, 10, @@ -229,6 +233,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -272,6 +277,7 @@ Object { }, }, "name": "list", + "optional": false, "range": Array [ 47, 51, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot index 36515bf7fe9..bff6380388e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot @@ -34,6 +34,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -49,6 +50,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -67,6 +69,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 12, @@ -85,6 +88,7 @@ Object { }, }, "name": "xx", + "optional": false, "range": Array [ 10, 12, @@ -105,6 +109,7 @@ Object { }, }, "name": "rrestOff", + "optional": false, "range": Array [ 17, 25, @@ -121,6 +126,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 25, @@ -160,6 +166,7 @@ Object { }, }, "name": "array", + "optional": false, "range": Array [ 31, 36, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot index f9f2c6f861f..d8ef91ebde1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 25, 36, @@ -81,6 +82,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -93,6 +95,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -117,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -160,6 +164,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot index ec0a900057d..7fbe4e26792 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 23, 34, @@ -62,6 +63,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -98,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot index 20eb4330221..61f0b69937f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 25, 36, @@ -62,6 +63,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 11, 12, @@ -98,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 16, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot index 214a32f34c8..354f7594077 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "doSomething", + "optional": false, "range": Array [ 23, 34, @@ -62,6 +63,7 @@ Object { "left": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -98,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot index 753ee38c8d7..82137de1e1f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 40, 41, @@ -40,6 +41,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 47, 48, @@ -58,6 +60,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 54, 55, @@ -128,6 +131,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -157,6 +161,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -175,6 +180,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 17, 18, @@ -193,6 +199,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot index b88c784a3fe..c0651bb5924 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 35, 36, @@ -40,6 +41,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 38, 39, @@ -58,6 +60,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 41, 42, @@ -128,6 +131,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -157,6 +161,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 14, 15, @@ -175,6 +180,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 17, 18, @@ -193,6 +199,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot index 203e0d50458..a7d0185f031 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot index 46555ad899d..a9ef4d042f2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot index 9789490921d..957e087f5d7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 22, 23, @@ -51,6 +52,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -63,6 +65,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 42, 43, @@ -84,6 +87,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 53, 54, @@ -141,6 +145,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -225,6 +230,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot index 5b3b9bfeb8f..475a3212233 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "t", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot index c9047554e77..5c4b95f5675 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 27, 28, @@ -91,6 +92,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot index a6e5140b5a9..b11103cf92a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 23, 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot index 0ed21b5aba8..d34d046822b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot @@ -43,6 +43,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 16, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot index 0c753ec5412..4b4323ffa93 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "fooz", + "optional": false, "range": Array [ 7, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot index 4da100af091..0fc2c52cc09 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot @@ -39,6 +39,7 @@ Object { }, }, "name": "import", + "optional": false, "range": Array [ 0, 6, @@ -57,6 +58,7 @@ Object { }, }, "name": "meta", + "optional": false, "range": Array [ 7, 11, @@ -82,6 +84,7 @@ Object { }, }, "name": "url", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot index 4cb277d09c0..d8cf8bcc4ad 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "loop1", + "optional": false, "range": Array [ 33, 38, @@ -124,6 +125,7 @@ Object { }, }, "name": "loop1", + "optional": false, "range": Array [ 0, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot index f945612a698..c84e5925c50 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "loop1", + "optional": false, "range": Array [ 36, 41, @@ -124,6 +125,7 @@ Object { }, }, "name": "loop1", + "optional": false, "range": Array [ 0, 5, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot index e687911b8d2..d79ae7b3d05 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -92,6 +93,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 26, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot index 7741900e0d2..4c25984270c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "friends", + "optional": false, "range": Array [ 31, 38, @@ -74,6 +75,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot index 8f7cd2fee8a..39c73a2b346 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "house", + "optional": false, "range": Array [ 7, 12, @@ -96,6 +97,7 @@ Object { }, }, "name": "roof", + "optional": false, "range": Array [ 56, 60, @@ -127,6 +129,7 @@ Object { }, }, "name": "console", + "optional": false, "range": Array [ 44, 51, @@ -146,6 +149,7 @@ Object { }, }, "name": "log", + "optional": false, "range": Array [ 52, 55, @@ -230,6 +234,7 @@ Object { }, }, "name": "house", + "optional": false, "range": Array [ 34, 39, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot index 8f0fc7a1773..cd81496b737 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot @@ -39,6 +39,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 22, 25, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot index 6ff96e199e5..49b418850d4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 13, 16, @@ -62,6 +64,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot index 50621456a07..9ae6d542b59 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 30, 33, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot index d04d401153a..d0256db78b5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 21, 25, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot index 3c216b759a3..564e61fb56b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 24, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot index b05558097ba..93d1b47bac1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 17, 20, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 17, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot index be67c110592..92d3be8dbf3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot index 186421f2add..7feb7957972 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 8, 15, @@ -83,6 +84,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 8, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot index c030e763d83..c36f3a73ca4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 15, 22, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot index bd5f17a08b3..beee78f6164 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 15, 18, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot index 208b5ca9729..c6577def2e8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 15, 22, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -109,6 +111,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, @@ -137,6 +140,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot index f379dc950aa..e22114a4712 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot index 0da197f4efd..a35078e6fbc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -109,6 +111,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, @@ -137,6 +140,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot index e42c3ad9fc8..a37358b9e2a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot @@ -39,6 +39,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 16, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot index 91e7001d203..f40cc78459a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 11, 14, @@ -62,6 +64,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot index 931546cf321..3247ca46814 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 15, 22, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot index 86812726b72..1dc22459635 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 15, 18, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot index 8493747edd2..bb7bc7f6447 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 15, 22, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -91,6 +93,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, @@ -119,6 +122,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot index a791c892e87..bb0032c31c7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 13, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot index bfc996c3993..405d73a19a8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot index 3485ec9b694..37d0e5d54ea 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -91,6 +93,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, @@ -119,6 +122,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot index 066e7d2ce09..8e66e0c49e1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 8, 11, @@ -91,6 +93,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, @@ -119,6 +122,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot index fdd2c4ee13d..8d6c3c82083 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 11, 14, @@ -83,6 +85,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot index 82fd63084fd..a4122a2ed7d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 11, 14, @@ -62,6 +64,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot index 2ff0cbfb063..2ea17e69b90 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 11, 14, @@ -44,6 +46,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot index 21914b01b27..c6608954c28 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, @@ -89,6 +90,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, @@ -117,6 +119,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot index fe0e67372ba..3c9aa5fb0f1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, @@ -98,6 +99,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot index 5f099a83058..e29c1cf2fa3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 8, 15, @@ -82,6 +83,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 19, 22, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot index 71aef0d5432..52124c8f0f6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot index 01a85b43bbd..f0b17d114fa 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "$", + "optional": false, "range": Array [ 7, 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot index e73f0ab64de..171d714e57e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -82,6 +83,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot index 751ffab1a34..abf4f59a225 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -82,6 +83,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 15, 18, @@ -108,6 +110,7 @@ Object { }, }, "name": "xyz", + "optional": false, "range": Array [ 20, 23, @@ -136,6 +139,7 @@ Object { }, }, "name": "xyz", + "optional": false, "range": Array [ 20, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot index 4b8922b9fec..ce40702a5c2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -82,6 +83,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot index aa6633bf9d3..c9ee30091ca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -82,6 +83,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -108,6 +110,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 13, 16, @@ -136,6 +139,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot index 532f37b1218..e11a1b1f497 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -82,6 +83,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 8, 11, @@ -108,6 +110,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 13, 16, @@ -136,6 +139,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot index 4939af93a05..76caa3ff44f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot index 1148db2db0b..2a1586fc0c1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "null", + "optional": false, "range": Array [ 9, 13, @@ -82,6 +83,7 @@ Object { }, }, "name": "nil", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot index 900e9de8014..809acfa3e21 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "await", + "optional": false, "range": Array [ 11, 16, @@ -44,6 +46,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot index ed00ad396dd..06ea492aa45 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 8, 15, @@ -65,6 +66,7 @@ Object { }, }, "name": "default", + "optional": false, "range": Array [ 8, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot index e9170a853ad..89f0d6ee66b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -47,6 +49,7 @@ Object { }, }, "name": "new", + "optional": false, "range": Array [ 8, 11, @@ -65,6 +68,7 @@ Object { }, }, "name": "target", + "optional": false, "range": Array [ 12, 18, @@ -94,6 +98,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot index 3141472974b..f44af188f1e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 5, @@ -52,6 +54,7 @@ Object { }, }, "name": "new", + "optional": false, "range": Array [ 21, 24, @@ -70,6 +73,7 @@ Object { }, }, "name": "unknown_property", + "optional": false, "range": Array [ 25, 41, @@ -152,6 +156,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot index 1b0c2865fa4..f924d82513d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 23, 24, @@ -51,6 +53,7 @@ Object { }, }, "name": "new", + "optional": false, "range": Array [ 27, 30, @@ -69,6 +72,7 @@ Object { }, }, "name": "target", + "optional": false, "range": Array [ 31, 37, @@ -98,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -146,6 +151,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot index 43f6b12136e..7a24fb9ea4e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot @@ -50,6 +50,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 0, 2, @@ -86,6 +87,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -125,6 +127,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 11, 14, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot index 0aa89f00f69..37010dbeab6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -106,6 +108,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 26, @@ -124,6 +127,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 23, 26, @@ -155,6 +159,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot index 3bd317475f7..bb749b17b05 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 3, 4, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 9, @@ -88,6 +90,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 11, 12, @@ -106,6 +109,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 11, 16, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot index fb4501fd426..6bb9d2607a5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 7, 8, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 14, @@ -109,6 +111,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 21, 22, @@ -127,6 +130,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 29, @@ -179,6 +183,7 @@ Object { }, }, "name": "v", + "optional": false, "range": Array [ 24, 25, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot index c4bdd3765a1..954d102a15e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -69,6 +71,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 26, @@ -87,6 +90,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 23, 26, @@ -118,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot index 693734693d8..7998c4731d7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -50,6 +52,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 15, 18, @@ -68,6 +71,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 24, @@ -86,6 +90,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 21, 24, @@ -117,6 +122,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot index 2cd53191abe..79591d874d7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot @@ -86,6 +86,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 17, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot index 6a652f6862b..3ff6a21e965 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 3, 4, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot index 35093c1c72e..71a5db4bebe 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot @@ -30,6 +30,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 3, 4, @@ -48,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot index 094f900c48f..8166962ef44 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -55,6 +56,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 19, 24, @@ -96,6 +98,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -116,6 +119,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -128,6 +132,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 36, 37, @@ -160,6 +165,7 @@ Object { }, }, "name": "__proto__", + "optional": false, "range": Array [ 43, 52, @@ -178,6 +184,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 43, 59, @@ -196,6 +203,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 54, 59, @@ -217,6 +225,7 @@ Object { }, }, "name": "__proto__", + "optional": false, "range": Array [ 62, 71, @@ -235,6 +244,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 62, 78, @@ -253,6 +263,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 73, 78, @@ -284,6 +295,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot index 14248de00b0..9988a956392 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -55,6 +56,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 19, 24, @@ -96,6 +98,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -116,6 +119,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -128,6 +132,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 36, 37, @@ -179,6 +184,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 43, 61, @@ -197,6 +203,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 56, 61, @@ -237,6 +244,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 64, 82, @@ -255,6 +263,7 @@ Object { }, }, "name": "proto", + "optional": false, "range": Array [ 77, 82, @@ -286,6 +295,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot index f4418a62155..f70184bbee0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -55,6 +56,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 19, 20, @@ -87,6 +89,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 26, 27, @@ -105,6 +108,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 26, 36, @@ -145,6 +149,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 39, 40, @@ -163,6 +168,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 39, 50, @@ -213,6 +219,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot index ba29108abbe..9c6290ff6c5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -55,6 +56,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 19, 20, @@ -106,6 +108,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 26, 38, @@ -165,6 +168,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 41, 54, @@ -215,6 +219,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot index a25be332cb0..7dc71c33ff0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -50,6 +52,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -68,6 +71,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 14, 47, @@ -91,6 +95,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 37, 40, @@ -175,6 +180,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot index aacc20cd6bf..4b428ae0871 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -64,6 +65,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 10, 13, @@ -82,6 +84,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 10, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot index ad2a85bab60..778296a1bd8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -64,6 +65,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 10, 13, @@ -82,6 +84,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 10, 23, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot index c972f567b44..14bbb832352 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -64,6 +65,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 10, 16, @@ -82,6 +84,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 10, 31, @@ -134,6 +137,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 17, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot index 26a0c63d8ad..fb269c840eb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -83,6 +84,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 10, 28, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot index 496c69184fb..8edc1af0739 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -64,6 +65,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 10, 16, @@ -82,6 +84,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 10, 26, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot index 539f46e43be..5b9bf27f70b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -69,6 +71,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 14, 49, @@ -92,6 +95,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 39, 42, @@ -176,6 +180,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot index e7865f68128..dd255cfc168 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -42,6 +44,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 13, 16, @@ -78,6 +82,7 @@ Object { "type": "VariableDeclarator", }, Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -90,6 +95,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 22, 25, @@ -114,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -134,6 +141,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -146,6 +154,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 32, 33, @@ -178,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -196,6 +206,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 42, 45, @@ -214,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 42, 45, @@ -235,6 +247,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 51, 54, @@ -253,6 +266,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 51, 54, @@ -271,6 +285,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 51, 54, @@ -292,6 +307,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 60, 63, @@ -310,6 +326,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 60, 63, @@ -328,6 +345,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 60, 63, @@ -359,6 +377,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot index 60890ad82c1..19abdedeca5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot index 8c3368e55d2..2eb2c1fb8a1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot index c9dd41e76a7..9f1a9b61095 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot index c9278fb0e05..d4e6cdedd7e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot index 402d703edb0..00ae239dfd3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 7, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot index 742dfb81cd1..ac69b7afe7e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -66,6 +67,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -85,6 +87,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, @@ -101,6 +104,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 18, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot index 6a702c70065..c14e5c47304 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -91,6 +92,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 29, 32, @@ -107,6 +109,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 26, 32, @@ -150,6 +153,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot index 9a269121cc6..eaf6b2656f9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -91,6 +92,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 21, 24, @@ -107,6 +109,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 18, 24, @@ -150,6 +153,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot index 9fe80f80f04..1942a104355 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -49,6 +50,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -68,6 +70,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, @@ -84,6 +87,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 22, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot index bc677b493e5..cacc3733633 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -49,6 +50,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -68,6 +70,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 17, 18, @@ -84,6 +87,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 14, 18, @@ -102,6 +106,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot index f25ab92c851..d1afabbf6ad 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -70,6 +72,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 17, 18, @@ -89,6 +92,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 23, 24, @@ -105,6 +109,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 20, 24, @@ -135,6 +140,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot index 75bf60296cf..97fc306e40a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 5, @@ -71,6 +73,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 21, 22, @@ -87,6 +90,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 18, 22, @@ -117,6 +121,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot index 2d7783f85ba..68c362ed8cc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 9, 10, @@ -66,6 +67,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -81,6 +83,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -99,6 +102,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 17, @@ -117,6 +121,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 17, @@ -141,6 +146,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 19, diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot index 0c6874834c6..7b3c243e587 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -67,6 +68,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 14, 15, @@ -83,6 +85,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 15, diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot index af16271112d..89cf21bb6f3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot index cee8e09edbe..e4298a8054a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot index e574c539f5f..90cf998ed03 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot index 7f9bbbcdae0..7d3eb5dee52 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -79,6 +81,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot index 7a05b658180..52a0ce3cf19 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot index 8f6d7065880..9017cdeff3c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot index 22d72a386e6..5e230964bb4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -36,6 +38,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 10, 19, @@ -59,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot index 26dfb7cccce..a597ab59dc2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 2, 3, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 22, @@ -66,6 +69,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -81,6 +85,7 @@ Object { }, }, "name": "ka", + "optional": false, "range": Array [ 7, 9, @@ -99,6 +104,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 7, 9, @@ -117,6 +123,7 @@ Object { }, }, "name": "ka", + "optional": false, "range": Array [ 7, 9, @@ -137,6 +144,7 @@ Object { }, }, "name": "nested", + "optional": false, "range": Array [ 14, 20, @@ -153,6 +161,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 11, 20, @@ -181,6 +190,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 24, 25, @@ -199,6 +209,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 24, 32, @@ -217,6 +228,7 @@ Object { }, }, "name": "other", + "optional": false, "range": Array [ 27, 32, @@ -238,6 +250,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 34, 35, @@ -256,6 +269,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 34, 92, @@ -273,6 +287,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -288,6 +303,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 39, 40, @@ -306,6 +322,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 39, 64, @@ -325,6 +342,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "argument": Object { @@ -339,6 +357,7 @@ Object { }, }, "name": "nested2", + "optional": false, "range": Array [ 48, 55, @@ -355,6 +374,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 45, 55, @@ -381,6 +401,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 62, 63, @@ -397,6 +418,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 59, 63, @@ -414,6 +436,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 42, 64, @@ -435,6 +458,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 66, 67, @@ -453,6 +477,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 66, 80, @@ -470,6 +495,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -485,6 +511,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 71, 72, @@ -503,6 +530,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 71, 72, @@ -521,6 +549,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 71, 72, @@ -541,6 +570,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 77, 78, @@ -557,6 +587,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 74, 78, @@ -584,6 +615,7 @@ Object { }, }, "name": "rest2", + "optional": false, "range": Array [ 85, 90, @@ -600,6 +632,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 82, 90, @@ -627,6 +660,7 @@ Object { }, }, "name": "rest", + "optional": false, "range": Array [ 97, 101, @@ -643,6 +677,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 94, 101, @@ -683,6 +718,7 @@ Object { }, }, "name": "complex", + "optional": false, "range": Array [ 105, 112, diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot index 34ecef99b6e..1cae9645245 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -37,6 +38,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 10, 11, @@ -72,6 +74,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot index 53414b1bf51..ce88eb9392f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -53,6 +54,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 11, 12, @@ -72,6 +74,7 @@ Object { }, }, "name": "func", + "optional": false, "range": Array [ 0, 4, diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot index f446eb1c8dc..f5910e8d5b6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 7, 8, @@ -54,6 +55,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot index 0fda53e60b5..2a3c38c133c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot @@ -239,6 +239,7 @@ Object { }, }, "name": "raw", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot index 8c783e6b6d0..e8755468da4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "ts", + "optional": false, "range": Array [ 4, 6, @@ -85,6 +87,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot index 134a3a7c8aa..dec2c4f697e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 4, 5, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -80,6 +83,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 15, 16, @@ -134,6 +139,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -166,6 +172,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 37, 38, @@ -185,6 +192,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 51, 52, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot index 9fd8251e454..8169e0e25d7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "ts", + "optional": false, "range": Array [ 4, 6, @@ -83,6 +85,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot index ddb0bc6e03f..c016d47bce8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot @@ -73,6 +73,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot index d929755df48..2325ff65eb0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "arguments", + "optional": false, "range": Array [ 30, 39, @@ -53,6 +54,7 @@ Object { }, }, "name": "console", + "optional": false, "range": Array [ 18, 25, @@ -72,6 +74,7 @@ Object { }, }, "name": "log", + "optional": false, "range": Array [ 26, 29, @@ -148,6 +151,7 @@ Object { }, }, "name": "tag", + "optional": false, "range": Array [ 9, 12, @@ -197,6 +201,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 55, 56, @@ -215,6 +220,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 71, 72, @@ -322,6 +328,7 @@ Object { }, }, "name": "tag", + "optional": false, "range": Array [ 44, 47, diff --git a/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot index f893dfa0609..81b0033b752 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -80,6 +83,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 19, 20, @@ -134,6 +139,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -154,6 +160,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -166,6 +173,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 32, 33, @@ -208,6 +216,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -228,6 +237,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -240,6 +250,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 51, 52, @@ -272,6 +283,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 59, 60, @@ -290,6 +302,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 59, 76, @@ -330,6 +343,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 80, 81, @@ -348,6 +362,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 80, 103, @@ -401,6 +416,7 @@ Object { }, }, "name": "h", + "optional": false, "range": Array [ 82, 83, @@ -417,6 +433,7 @@ Object { "line": 6, }, }, + "optional": false, "range": Array [ 82, 99, @@ -464,6 +481,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 107, 108, @@ -482,6 +500,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 107, 135, @@ -535,6 +554,7 @@ Object { }, }, "name": "j", + "optional": false, "range": Array [ 111, 112, @@ -551,6 +571,7 @@ Object { "line": 7, }, }, + "optional": false, "range": Array [ 111, 128, @@ -608,6 +629,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -672,6 +694,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 140, 141, @@ -691,6 +714,7 @@ Object { }, }, "name": "i", + "optional": false, "range": Array [ 142, 143, diff --git a/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot index 0c7c49b765a..c329025f5be 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot @@ -174,6 +174,7 @@ Object { }, }, "name": "quz", + "optional": false, "range": Array [ 20, 23, @@ -210,6 +211,7 @@ Object { }, }, "name": "rest", + "optional": false, "range": Array [ 29, 33, diff --git a/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot index a0960faec84..f768523395f 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot @@ -195,6 +195,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot index 9e4992cab3a..01c6ff1e2b5 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot @@ -89,6 +89,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot index cfb3f96c345..69b9432ed29 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 17, 22, diff --git a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot index 0ba87aa2572..a7808cd75cb 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot @@ -32,6 +32,7 @@ Object { }, }, "name": "props", + "optional": false, "range": Array [ 9, 14, diff --git a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot index 402559dd631..536a906cca8 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot @@ -32,6 +32,7 @@ Object { }, }, "name": "props", + "optional": false, "range": Array [ 9, 14, diff --git a/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot index d6e19fd1d05..609441f6fcb 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot @@ -174,6 +174,7 @@ Object { }, }, "name": "props", + "optional": false, "range": Array [ 40, 45, diff --git a/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot b/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot index cf0793e2573..cf00b9e63c4 100644 --- a/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot +++ b/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "React", + "optional": false, "range": Array [ 12, 17, @@ -79,6 +80,7 @@ Object { "type": "ImportDeclaration", }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -91,6 +93,7 @@ Object { }, }, "name": "Props", + "optional": false, "range": Array [ 36, 41, @@ -126,7 +129,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -140,6 +143,7 @@ Object { }, }, "name": "title", + "optional": false, "range": Array [ 48, 53, @@ -156,13 +160,13 @@ Object { "line": 3, }, }, - "optional": undefined, + "optional": false, "range": Array [ 48, 61, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -261,6 +265,7 @@ Object { }, }, "name": "props", + "optional": false, "range": Array [ 136, 141, @@ -280,6 +285,7 @@ Object { }, }, "name": "title", + "optional": false, "range": Array [ 142, 147, @@ -466,6 +472,7 @@ Object { }, }, "name": "App", + "optional": false, "range": Array [ 89, 92, @@ -495,6 +502,7 @@ Object { }, }, "name": "props", + "optional": false, "range": Array [ 93, 105, @@ -544,6 +552,7 @@ Object { }, }, "name": "Props", + "optional": false, "range": Array [ 100, 105, diff --git a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot index a32b6821f9e..083d65738e7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -97,6 +98,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 13, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot index bd4752cee3b..4b362c514b9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 9, 10, @@ -129,6 +130,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 11, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot index 7b34b013580..3b4990218d9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 52, 63, @@ -100,6 +101,7 @@ Object { }, }, "name": "AbstractSocket", + "optional": false, "range": Array [ 22, 36, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot index 4fce3551bf9..5a65e32e6c9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "createSocket", + "optional": false, "range": Array [ 52, 64, @@ -112,6 +113,7 @@ Object { }, }, "name": "Promise", + "optional": false, "range": Array [ 68, 75, @@ -188,6 +190,7 @@ Object { }, }, "name": "AbstractSocket", + "optional": false, "range": Array [ 22, 36, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot index 34ca54e31bb..cf6f30c65fc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 34, 37, @@ -63,6 +64,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 52, 55, @@ -152,6 +154,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot index 66cc1ade490..b25ca84cbf6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 48, 51, @@ -112,6 +113,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot index ac16278e0e7..ef4615ef0c4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 57, 68, @@ -100,6 +101,7 @@ Object { }, }, "name": "AbstractSocket", + "optional": false, "range": Array [ 22, 36, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot index 2ba070b7a0b..4e0184e5b6c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "prop1", + "optional": false, "range": Array [ 45, 50, @@ -97,6 +98,7 @@ Object { }, }, "name": "prop2", + "optional": false, "range": Array [ 79, 84, @@ -173,6 +175,7 @@ Object { }, }, "name": "prop3", + "optional": false, "range": Array [ 120, 125, @@ -248,6 +251,7 @@ Object { }, }, "name": "prop4", + "optional": false, "range": Array [ 163, 168, @@ -324,6 +328,7 @@ Object { }, }, "name": "prop5", + "optional": false, "range": Array [ 213, 218, @@ -413,6 +418,7 @@ Object { }, }, "name": "AbstractDeclProps", + "optional": false, "range": Array [ 15, 32, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot index a9672cf2757..4782822e6a8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "createSocket", + "optional": false, "range": Array [ 43, 55, @@ -113,6 +114,7 @@ Object { }, }, "name": "Promise", + "optional": false, "range": Array [ 60, 67, @@ -189,6 +191,7 @@ Object { }, }, "name": "AbstractSocket", + "optional": false, "range": Array [ 22, 36, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot index 32e9b1f0028..ce189283162 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "show", + "optional": false, "range": Array [ 80, 84, @@ -98,6 +99,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 15, 35, @@ -130,6 +132,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 44, 57, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot index d22f508108d..30c6f0b0471 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 80, 83, @@ -77,6 +78,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 15, 35, @@ -109,6 +111,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 44, 57, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot index bc674bcb4d1..f50b4fa027d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot @@ -24,6 +24,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "I", + "optional": false, "range": Array [ 26, 27, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot index 724c90a6e82..b2c6e64ff21 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "asserted2", + "optional": false, "range": Array [ 4, 13, @@ -42,6 +44,7 @@ Object { }, }, "name": "n", + "optional": false, "range": Array [ 38, 39, @@ -107,6 +110,7 @@ Object { }, }, "name": "n", + "optional": false, "range": Array [ 23, 24, @@ -170,6 +174,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot index fac27b9cb3e..d549586e606 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -94,6 +96,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot index e059e49fe56..5505a41e561 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "k", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot index b233dae579e..ef9502cfedf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 29, 30, @@ -86,6 +87,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 4, 8, @@ -135,6 +137,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 7, 8, @@ -194,6 +197,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 11, 12, @@ -242,6 +246,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot index 506b7feaedc..09172d2cafc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot @@ -40,6 +40,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 16, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot index 680e8ebcb35..c0ece091513 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 32, 35, @@ -64,6 +66,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -84,6 +87,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -96,6 +100,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 53, 56, @@ -138,6 +143,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -158,6 +164,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -170,6 +177,7 @@ Object { }, }, "name": "fooBar", + "optional": false, "range": Array [ 76, 82, @@ -212,6 +220,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -260,6 +269,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 15, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot index 335852f9e7f..63a393656c9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 25, 28, @@ -43,6 +45,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 37, 40, @@ -99,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 53, 56, @@ -160,6 +165,7 @@ Object { }, }, "name": "qux", + "optional": false, "range": Array [ 57, 60, @@ -219,6 +225,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot index 8ec8827246f..04afe3be309 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics call-signatures-with-generics.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -73,6 +75,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 19, 28, @@ -191,6 +194,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 16, 17, @@ -236,6 +240,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 47, 56, @@ -354,6 +359,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 44, 45, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot index 4f02bba2e4e..207df489847 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics call-signatures.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -73,6 +75,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 25, @@ -178,6 +181,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 41, 50, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot index 45d17fc3bfd..d7a6f8c1c5c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -51,6 +52,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 4, 5, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot index bd920460143..9a967b5f397 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 1, 2, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot index ab6b513bd47..0e4d3786186 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, @@ -100,6 +101,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot index 3decb6ca4f1..24084d0bfc6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 0, 1, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot index 985bfa73869..7db1ea89ae2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -37,6 +39,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 12, 13, @@ -93,6 +96,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot index 7626acea9a8..3c64b0e35ef 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot @@ -64,6 +64,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 16, 22, @@ -187,6 +188,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 46, 56, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot index 6c7105ea336..0997a4fd7ae 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot @@ -64,6 +64,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 16, 25, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot index f022531c3c7..0a0ef1f276b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "abstract", + "optional": false, "range": Array [ 0, 8, @@ -69,6 +70,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 15, 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot index 2822f6f7ad6..53449475ea7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "declare", + "optional": false, "range": Array [ 0, 7, @@ -69,6 +70,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot index 04b127b9d7e..de8c7575d85 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot @@ -262,6 +262,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot index c75fc510111..0ad83901f5a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot @@ -188,6 +188,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 55, 66, @@ -391,6 +392,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot index 1131eb4ab21..6e12c7242f0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot @@ -110,6 +110,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot index 761783ccd1d..0979459b975 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "count", + "optional": false, "range": Array [ 21, 26, @@ -85,6 +86,7 @@ Object { }, }, "name": "count", + "optional": false, "range": Array [ 76, 81, @@ -170,6 +172,7 @@ Object { }, }, "name": "someCondition", + "optional": false, "range": Array [ 51, 64, @@ -241,6 +244,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot index 72b6e487ad1..4f57e39042a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 22, 25, @@ -98,6 +99,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 52, 55, @@ -173,6 +175,7 @@ Object { }, }, "name": "getBar", + "optional": false, "range": Array [ 75, 81, @@ -244,6 +247,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 103, 106, @@ -325,6 +329,7 @@ Object { }, }, "name": "setBar", + "optional": false, "range": Array [ 124, 130, @@ -397,6 +402,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 157, 160, @@ -436,6 +442,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 163, 166, @@ -503,6 +510,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 132, 144, @@ -580,6 +588,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot index ed6760da000..08b0f689724 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 22, 33, @@ -196,6 +197,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot index c05e61d2370..cf9099b1e73 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 53, 64, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": "protected", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 55, @@ -104,6 +105,7 @@ Object { }, }, "name": "param", + "optional": false, "range": Array [ 93, 106, @@ -149,7 +151,7 @@ Object { 106, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, ], @@ -189,6 +191,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 6, 26, @@ -221,6 +224,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 35, 48, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot index 2ab13d8e51c..44580f495a6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 53, 64, @@ -134,7 +135,7 @@ Object { "params": Array [ Object { "accessibility": undefined, - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 36, @@ -158,6 +159,7 @@ Object { }, }, "name": "param", + "optional": false, "range": Array [ 74, 87, @@ -202,8 +204,8 @@ Object { 65, 87, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, ], @@ -243,6 +245,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 6, 26, @@ -275,6 +278,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 35, 48, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot index c3a17fbe698..be18b7b8a4f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 12, 23, @@ -262,6 +263,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot index fc9e41e1cce..1c92b55a6bd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 12, 23, @@ -121,6 +122,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 24, 25, @@ -259,6 +261,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 52, 53, @@ -310,6 +313,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot index d42896e1914..f9aae4c77ca 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "prop1", + "optional": false, "range": Array [ 28, 33, @@ -97,6 +98,7 @@ Object { }, }, "name": "prop2", + "optional": false, "range": Array [ 60, 65, @@ -172,6 +174,7 @@ Object { }, }, "name": "prop3", + "optional": false, "range": Array [ 92, 97, @@ -247,6 +250,7 @@ Object { }, }, "name": "prop3", + "optional": false, "range": Array [ 126, 131, @@ -323,6 +327,7 @@ Object { }, }, "name": "prop4", + "optional": false, "range": Array [ 167, 172, @@ -399,6 +404,7 @@ Object { }, }, "name": "prop5", + "optional": false, "range": Array [ 206, 211, @@ -475,6 +481,7 @@ Object { }, }, "name": "prop6", + "optional": false, "range": Array [ 254, 259, @@ -564,6 +571,7 @@ Object { }, }, "name": "DeclProps", + "optional": false, "range": Array [ 6, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot index 8c358d12d20..5f11a3a542c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -111,6 +112,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot index 274ac4ac7c7..185af093c85 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 16, 27, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 35, 44, @@ -148,8 +150,8 @@ Object { 28, 44, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, ], @@ -189,6 +191,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot index 0e146abbdde..dd98c7420ae 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "ClassWithParentAndInterface", + "optional": false, "range": Array [ 6, 33, @@ -54,6 +55,7 @@ Object { }, }, "name": "MyInterface", + "optional": false, "range": Array [ 66, 77, @@ -103,6 +105,7 @@ Object { }, }, "name": "MyOtherClass", + "optional": false, "range": Array [ 42, 54, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot index 4b163281504..bc77a995c63 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -66,6 +67,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 31, 34, @@ -112,6 +114,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 35, 36, @@ -148,6 +151,7 @@ Object { }, }, "name": "D", + "optional": false, "range": Array [ 38, 39, @@ -205,6 +209,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 20, 21, @@ -237,6 +242,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot index 1b34e17f7eb..3538ec93899 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -66,6 +67,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 21, 24, @@ -112,6 +114,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 25, 26, @@ -166,6 +169,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot index d648e1c98cf..36f9f519962 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "getBar", + "optional": false, "range": Array [ 14, 20, @@ -125,6 +126,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 25, 28, @@ -156,6 +158,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, @@ -207,6 +210,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot index f00ade847e8..e41bd3ec2d2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "getBar", + "optional": false, "range": Array [ 14, 20, @@ -121,6 +122,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, @@ -172,6 +174,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot index 34cc48c587d..c0ca82b1883 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "ClassWithParentAndInterface", + "optional": false, "range": Array [ 6, 33, @@ -54,6 +55,7 @@ Object { }, }, "name": "MyInterface", + "optional": false, "range": Array [ 45, 56, @@ -103,6 +105,7 @@ Object { }, }, "name": "MyOtherClass", + "optional": false, "range": Array [ 65, 77, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot index 651f3c663b7..a733b031386 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -54,6 +55,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 21, 24, @@ -115,6 +117,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 25, 26, @@ -151,6 +154,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 28, 29, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot index 55a31001fd1..c96faa903a7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -54,6 +55,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 21, 24, @@ -115,6 +117,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 25, 26, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot index c84815bb0e8..151ae6ed42c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -54,6 +55,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 21, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot index 7519442ea6e..194df73cfde 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, @@ -133,6 +134,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 32, 35, @@ -234,6 +236,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 36, 37, @@ -270,6 +273,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 47, 50, @@ -364,6 +368,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot index 47dd1de2f0d..02962fcec7b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "M", + "optional": false, "range": Array [ 9, 10, @@ -66,6 +67,7 @@ Object { }, }, "name": "Base", + "optional": false, "range": Array [ 37, 44, @@ -115,6 +117,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 43, 44, @@ -172,6 +175,7 @@ Object { }, }, "name": "Constructor", + "optional": false, "range": Array [ 21, 32, @@ -218,6 +222,7 @@ Object { }, }, "name": "M", + "optional": false, "range": Array [ 33, 34, @@ -258,6 +263,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 11, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot index 8a991733611..5275fb37939 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "Base", + "optional": false, "range": Array [ 74, 78, @@ -109,6 +110,7 @@ Object { }, }, "name": "M", + "optional": false, "range": Array [ 9, 10, @@ -138,6 +140,7 @@ Object { }, }, "name": "Base", + "optional": false, "range": Array [ 38, 45, @@ -187,6 +190,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 44, 45, @@ -244,6 +248,7 @@ Object { }, }, "name": "Constructor", + "optional": false, "range": Array [ 21, 32, @@ -312,6 +317,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 11, 12, @@ -364,6 +370,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 92, 93, @@ -384,6 +391,7 @@ Object { }, }, "name": "I", + "optional": false, "range": Array [ 123, 124, @@ -435,6 +443,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 109, 110, @@ -454,6 +463,7 @@ Object { }, }, "name": "M", + "optional": false, "range": Array [ 102, 103, @@ -546,6 +556,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 136, 137, @@ -588,6 +599,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -600,6 +612,7 @@ Object { }, }, "name": "I", + "optional": false, "range": Array [ 152, 153, @@ -623,6 +636,7 @@ Object { "type": "TSInterfaceDeclaration", }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -635,6 +649,7 @@ Object { }, }, "name": "Constructor", + "optional": false, "range": Array [ 163, 174, @@ -682,6 +697,7 @@ Object { }, }, "name": "args", + "optional": false, "range": Array [ 188, 192, @@ -698,6 +714,7 @@ Object { "line": 9, }, }, + "optional": false, "range": Array [ 185, 199, @@ -804,6 +821,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 204, 205, @@ -853,6 +871,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 175, 176, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot index 1fd54885c28..3c55b1662bc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "computed1", + "optional": false, "range": Array [ 6, 15, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -80,6 +83,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { }, }, "name": "computed2", + "optional": false, "range": Array [ 32, 41, @@ -134,6 +139,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -154,6 +160,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -166,6 +173,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 58, 61, @@ -198,6 +206,7 @@ Object { }, }, "name": "member", + "optional": false, "range": Array [ 68, 74, @@ -216,6 +225,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 68, 84, @@ -256,6 +266,7 @@ Object { }, }, "name": "member2", + "optional": false, "range": Array [ 88, 95, @@ -274,6 +285,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 88, 106, @@ -324,6 +336,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -358,6 +371,7 @@ Object { }, }, "name": "computed1", + "optional": false, "range": Array [ 124, 133, @@ -421,6 +435,7 @@ Object { }, }, "name": "computed2", + "optional": false, "range": Array [ 142, 151, @@ -803,6 +818,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 227, 230, @@ -822,6 +838,7 @@ Object { }, }, "name": "member", + "optional": false, "range": Array [ 231, 237, @@ -920,6 +937,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 249, 252, @@ -939,6 +957,7 @@ Object { }, }, "name": "member2", + "optional": false, "range": Array [ 253, 260, @@ -1010,6 +1029,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 269, 270, @@ -1122,6 +1142,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 117, 118, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot index 13e6452c859..51e86628aa1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot @@ -60,6 +60,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 33, 42, @@ -96,6 +97,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot index 5ad7ce5d913..7b2da00cb67 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -83,6 +84,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, @@ -181,6 +183,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 50, 53, @@ -293,6 +296,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot index 048f000b9e2..023d513c795 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "computed", + "optional": false, "range": Array [ 6, 14, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -80,6 +83,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { }, }, "name": "computed2", + "optional": false, "range": Array [ 31, 40, @@ -134,6 +139,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -169,6 +175,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 65, 68, @@ -211,6 +218,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 73, 76, @@ -288,6 +296,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 98, 101, @@ -364,6 +373,7 @@ Object { }, }, "name": "computed", + "optional": false, "range": Array [ 116, 124, @@ -492,6 +502,7 @@ Object { }, }, "name": "computed2", + "optional": false, "range": Array [ 155, 164, @@ -736,6 +747,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 57, 60, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot index c5fd8a1fd1a..499e23bc111 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 20, 23, @@ -59,6 +60,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 27, 36, @@ -95,6 +97,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot index e600ab918a5..1c1a1a9c7b4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "show", + "optional": false, "range": Array [ 62, 66, @@ -114,6 +115,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 6, 26, @@ -146,6 +148,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 35, 48, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot index 49a33895f9d..3c098bb5df0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 62, 65, @@ -94,6 +95,7 @@ Object { }, }, "name": "SpecializedComponent", + "optional": false, "range": Array [ 6, 26, @@ -126,6 +128,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 35, 48, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot index dfb9b9557cd..cd81c13418f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot @@ -265,6 +265,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot index 72e5749ba0f..fe5938b7d10 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": "private", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 39, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "firstName", + "optional": false, "range": Array [ 34, 51, @@ -148,13 +150,13 @@ Object { 26, 51, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "private", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 47, @@ -165,7 +167,7 @@ Object { "line": 3, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -178,6 +180,7 @@ Object { }, }, "name": "lastName", + "optional": false, "range": Array [ 84, 100, @@ -223,12 +226,12 @@ Object { 100, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "private", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 38, @@ -239,7 +242,7 @@ Object { "line": 4, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -253,6 +256,7 @@ Object { }, }, "name": "age", + "optional": false, "range": Array [ 124, 135, @@ -303,6 +307,7 @@ Object { "line": 4, }, }, + "optional": false, "range": Array [ 124, 140, @@ -332,13 +337,13 @@ Object { 116, 140, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "private", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 55, @@ -349,7 +354,7 @@ Object { "line": 5, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -363,6 +368,7 @@ Object { }, }, "name": "student", + "optional": false, "range": Array [ 173, 189, @@ -413,6 +419,7 @@ Object { "line": 5, }, }, + "optional": false, "range": Array [ 173, 197, @@ -443,7 +450,7 @@ Object { 197, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, ], @@ -483,6 +490,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot index 1705e340f45..27f63b829d7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -205,6 +206,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 58, 61, @@ -277,6 +279,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 78, 82, @@ -333,6 +336,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot index a2238f57f0d..ee3f688f4de 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -80,6 +81,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 23, 24, @@ -138,6 +140,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 33, 34, @@ -196,6 +199,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 43, 44, @@ -255,6 +259,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 53, 54, @@ -368,6 +373,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 61, 66, @@ -420,6 +426,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot index 7e87ef2df91..302b3d3d034 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": "protected", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 41, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "firstName", + "optional": false, "range": Array [ 36, 53, @@ -148,13 +150,13 @@ Object { 26, 53, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "protected", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 49, @@ -165,7 +167,7 @@ Object { "line": 3, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -178,6 +180,7 @@ Object { }, }, "name": "lastName", + "optional": false, "range": Array [ 88, 104, @@ -223,12 +226,12 @@ Object { 104, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "protected", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 40, @@ -239,7 +242,7 @@ Object { "line": 4, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -253,6 +256,7 @@ Object { }, }, "name": "age", + "optional": false, "range": Array [ 130, 141, @@ -303,6 +307,7 @@ Object { "line": 4, }, }, + "optional": false, "range": Array [ 130, 146, @@ -332,13 +337,13 @@ Object { 120, 146, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "protected", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 57, @@ -349,7 +354,7 @@ Object { "line": 5, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -363,6 +368,7 @@ Object { }, }, "name": "student", + "optional": false, "range": Array [ 181, 197, @@ -413,6 +419,7 @@ Object { "line": 5, }, }, + "optional": false, "range": Array [ 181, 205, @@ -443,7 +450,7 @@ Object { 205, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, ], @@ -483,6 +490,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot index 363608735e5..dc211469939 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 38, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "firstName", + "optional": false, "range": Array [ 33, 50, @@ -148,13 +150,13 @@ Object { 26, 50, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 46, @@ -165,7 +167,7 @@ Object { "line": 3, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -178,6 +180,7 @@ Object { }, }, "name": "lastName", + "optional": false, "range": Array [ 82, 98, @@ -223,12 +226,12 @@ Object { 98, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 37, @@ -239,7 +242,7 @@ Object { "line": 4, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -253,6 +256,7 @@ Object { }, }, "name": "age", + "optional": false, "range": Array [ 121, 132, @@ -303,6 +307,7 @@ Object { "line": 4, }, }, + "optional": false, "range": Array [ 121, 137, @@ -332,13 +337,13 @@ Object { 114, 137, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 54, @@ -349,7 +354,7 @@ Object { "line": 5, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -363,6 +368,7 @@ Object { }, }, "name": "student", + "optional": false, "range": Array [ 169, 185, @@ -413,6 +419,7 @@ Object { "line": 5, }, }, + "optional": false, "range": Array [ 169, 193, @@ -443,7 +450,7 @@ Object { 193, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, ], @@ -483,6 +490,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot index 225de104f5e..67d5a0ad57c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": undefined, - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 40, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "firstName", + "optional": false, "range": Array [ 35, 52, @@ -149,12 +151,12 @@ Object { 52, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": undefined, - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 49, @@ -165,7 +167,7 @@ Object { "line": 3, }, }, - "override": undefined, + "override": false, "parameter": Object { "left": Object { "loc": Object { @@ -179,6 +181,7 @@ Object { }, }, "name": "lastName", + "optional": false, "range": Array [ 77, 93, @@ -229,6 +232,7 @@ Object { "line": 3, }, }, + "optional": false, "range": Array [ 77, 103, @@ -259,7 +263,7 @@ Object { 103, ], "readonly": true, - "static": undefined, + "static": false, "type": "TSParameterProperty", }, ], @@ -299,6 +303,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot index c3fc1acb2af..09eaec197d5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 32, 35, @@ -95,6 +96,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot index 9287f9c1d21..1a6e72853ea 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 16, 27, @@ -80,7 +81,7 @@ Object { "params": Array [ Object { "accessibility": undefined, - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 32, @@ -91,7 +92,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -104,6 +105,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 35, 44, @@ -148,7 +150,7 @@ Object { 28, 44, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "TSParameterProperty", }, @@ -189,6 +191,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot index f119f99cc7c..520f513a0b9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot @@ -156,6 +156,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 26, 27, @@ -328,6 +329,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 64, 65, @@ -379,6 +381,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot index b062afebf38..2568a9ff458 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -98,6 +99,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 14, 17, @@ -129,6 +131,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot index f11826fd104..a311dda4e14 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, @@ -94,6 +95,7 @@ Object { }, }, "name": "__P", + "optional": false, "range": Array [ 8, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot index 8403e95ce8c..f721d279023 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -94,6 +95,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot index 1f6a79883fb..e9e2962bf06 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 17, 18, @@ -87,6 +89,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 27, 32, @@ -113,6 +116,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -133,6 +137,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -145,6 +150,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 67, 68, @@ -252,6 +258,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 83, 88, @@ -278,6 +285,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -298,6 +306,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -310,6 +319,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 132, 133, @@ -343,6 +353,7 @@ Object { }, }, "name": "text", + "optional": false, "range": Array [ 138, 142, @@ -361,6 +372,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 138, 151, @@ -437,6 +449,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 157, 162, @@ -463,6 +476,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -483,6 +497,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -495,6 +510,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 182, 183, @@ -564,6 +580,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 187, 192, @@ -590,6 +607,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -610,6 +628,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -622,6 +641,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 230, 231, @@ -729,6 +749,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 235, 240, @@ -755,6 +776,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -775,6 +797,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -787,6 +810,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 293, 294, @@ -820,6 +844,7 @@ Object { }, }, "name": "text", + "optional": false, "range": Array [ 306, 310, @@ -838,6 +863,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 306, 319, @@ -914,6 +940,7 @@ Object { }, }, "name": "const", + "optional": false, "range": Array [ 298, 303, @@ -940,6 +967,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot index 557a16875cb..a57c14c3d98 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "const": true, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -17,6 +18,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 11, 14, @@ -35,6 +37,7 @@ Object { }, "members": Array [ Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -47,6 +50,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 21, 24, @@ -89,6 +93,7 @@ Object { "type": "TSEnumMember", }, Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -101,6 +106,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 34, 37, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot index 134b75cb5fe..b869bca9da4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 24, 27, @@ -133,6 +134,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot index 5dd945c2feb..6bde96508ca 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 17, 20, @@ -50,6 +51,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 21, 32, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot index 463b82dd00e..37bd76a51c7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 3, 6, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 79, @@ -67,6 +70,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -82,6 +86,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 10, 13, @@ -100,6 +105,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 10, 71, @@ -118,6 +124,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -133,6 +140,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 17, 20, @@ -151,6 +159,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 17, 64, @@ -172,6 +181,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 23, 24, @@ -190,6 +200,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -205,6 +216,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 28, 31, @@ -223,6 +235,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 28, 42, @@ -244,6 +257,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 34, 35, @@ -261,6 +275,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 33, 36, @@ -277,6 +292,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 33, 42, @@ -339,6 +355,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 26, 58, @@ -369,6 +386,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 49, 52, @@ -387,6 +405,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 49, 57, @@ -452,6 +471,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 22, 59, @@ -468,6 +488,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 22, 64, @@ -510,6 +531,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 71, @@ -552,6 +574,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 8, 79, @@ -625,6 +648,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 86, 89, @@ -643,6 +667,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 86, 126, @@ -675,6 +700,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 93, 96, @@ -693,6 +719,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 93, 124, @@ -725,6 +752,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 100, 103, @@ -743,6 +771,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 100, 122, @@ -796,6 +825,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 111, 114, @@ -814,6 +844,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 111, 119, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot index 097fd53b02a..dc795f5364b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 3, 6, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 11, @@ -68,6 +71,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 3, 6, @@ -84,6 +88,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 3, 11, @@ -143,6 +148,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 16, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot index 5686bf812d4..5f5c460aeff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 9, 12, @@ -66,6 +67,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -81,6 +83,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, @@ -99,6 +102,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 15, 23, @@ -118,6 +122,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, @@ -134,6 +139,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 15, 23, @@ -176,6 +182,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 13, 31, @@ -192,6 +199,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 28, 31, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot index cb281c20b00..f818c93c40d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 3, 6, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 11, @@ -68,6 +71,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 3, 6, @@ -84,6 +88,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 3, 11, @@ -143,6 +148,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 16, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot index 4e79f84c3dd..7a774d686b5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot @@ -46,6 +46,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -58,6 +59,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 35, 36, @@ -100,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -170,6 +173,8 @@ Object { ], "type": "TSModuleBlock", }, + "declare": false, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -182,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot index 6cbcd85aabe..6f773c4ae12 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot @@ -46,6 +46,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -58,6 +59,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 38, 39, @@ -100,6 +102,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -170,6 +173,8 @@ Object { ], "type": "TSModuleBlock", }, + "declare": false, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -182,6 +187,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot index 90a43822eca..daa7e9668c1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot @@ -31,6 +31,7 @@ Object { }, }, "name": "assert", + "optional": false, "range": Array [ 16, 22, @@ -49,6 +50,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 16, 40, @@ -81,6 +83,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 26, 30, @@ -99,6 +102,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 26, 38, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot index 3fd3efea845..359595d203d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 29, 33, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot index 4e698b3cee4..e9a27b5f117 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot index b7a53c7e727..dade8d44964 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot index 2067ecc1432..807343efb5e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 26, 29, @@ -38,6 +39,7 @@ Object { }, "members": Array [ Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -50,6 +52,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 36, 39, @@ -92,6 +95,7 @@ Object { "type": "TSEnumMember", }, Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -104,6 +108,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 49, 52, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot index 3c0702b063a..2826b3dcaa6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, "declare": true, "id": Object { "loc": Object { @@ -19,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 20, 23, @@ -37,6 +39,7 @@ Object { }, "members": Array [ Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -49,6 +52,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 30, 33, @@ -91,6 +95,7 @@ Object { "type": "TSEnumMember", }, Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -103,6 +108,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 43, 46, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot index b8c81c94fc2..23d22422bc9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot @@ -78,6 +78,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot index 5c8f0f1bd13..9adcb171842 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot @@ -78,6 +78,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, @@ -117,6 +118,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 24, 25, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot index d7778592270..bbc9e076d49 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "method1", + "optional": false, "range": Array [ 31, 38, @@ -38,11 +40,13 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [], "range": Array [ 31, 47, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -77,6 +81,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -96,6 +101,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -108,6 +114,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 25, 26, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot index 150f857526d..9b09c166eaf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 13, 16, @@ -96,6 +97,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 17, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot index 74f2566093d..ea10d102486 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 13, 16, @@ -96,6 +97,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 17, 18, @@ -135,6 +137,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 20, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot index c9ec2237d16..3c0f0462a2d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot @@ -6,6 +6,8 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot index f4a66e995eb..a46e6f6b27b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot @@ -6,6 +6,8 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot index 557d76a3736..5554ec0309e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot @@ -6,6 +6,8 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 12, 15, @@ -49,6 +52,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 23, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot index 9b4477c59c9..8f6cf9fce83 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot @@ -6,6 +6,8 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +20,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 12, 15, @@ -36,6 +39,7 @@ Object { }, "members": Array [ Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -48,6 +52,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 22, 25, @@ -90,6 +95,7 @@ Object { "type": "TSEnumMember", }, Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -102,6 +108,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 35, 38, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot index ba4a7e299ab..45b2eea4f39 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot index aacc96aed24..ed66c213d52 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 19, 20, @@ -65,6 +66,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot index 1534942cd7c..bd527cf73e4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 19, 20, @@ -83,6 +84,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot index 8cf718151bc..3711370a2a3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -83,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot index ce9f65ed7a4..914d29af76f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -65,6 +66,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot index be34e1cb111..dae75792dfe 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 35, 39, @@ -110,6 +111,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -138,6 +140,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot index 9945853dea0..da7c7b98d74 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 4, 7, @@ -41,6 +43,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 45, 46, @@ -106,6 +109,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 23, 32, @@ -190,6 +194,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 20, 21, @@ -228,6 +233,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot index 9917e4422bd..656d7002aaa 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 4, 7, @@ -115,6 +117,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot index 56d78d267c6..1784bf2dfee 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 16, 17, @@ -51,6 +52,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 18, 27, @@ -170,6 +172,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 54, 55, @@ -199,6 +202,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 56, 65, @@ -318,6 +322,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 142, 143, @@ -371,6 +376,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 92, 93, @@ -400,6 +406,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 94, 112, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot index f9be8cbae1b..ef568346f8c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "future", + "optional": false, "range": Array [ 40, 46, @@ -90,6 +91,7 @@ Object { }, }, "name": "hope", + "optional": false, "range": Array [ 15, 19, @@ -119,6 +121,7 @@ Object { }, }, "name": "future", + "optional": false, "range": Array [ 20, 26, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot index 8f837cf2e71..e50c9fcb677 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 17, @@ -116,6 +120,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -137,6 +142,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 19, 22, @@ -155,6 +161,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 22, @@ -173,6 +180,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 19, 22, @@ -216,7 +224,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -230,6 +238,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 26, 29, @@ -251,8 +260,8 @@ Object { 26, 39, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -291,7 +300,7 @@ Object { }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -305,6 +314,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 40, 43, @@ -326,8 +336,8 @@ Object { 40, 44, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot index 6ed5ad110b1..f8f412bb58c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -65,6 +66,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -80,6 +82,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -98,6 +101,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 14, 17, @@ -116,6 +120,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -137,6 +142,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 19, 22, @@ -155,6 +161,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 19, 22, @@ -173,6 +180,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 19, 22, @@ -216,7 +224,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -230,6 +238,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 26, 29, @@ -246,13 +255,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 26, 38, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -291,7 +300,7 @@ Object { }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -305,6 +314,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 39, 42, @@ -321,13 +331,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 39, 42, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot index 0bd43c2697c..0eadccef944 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "compare", + "optional": false, "range": Array [ 9, 16, @@ -97,6 +98,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 28, 29, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot index 114fd02b9e6..c77804552dd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 47, 48, @@ -73,6 +74,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -102,6 +104,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 25, 29, @@ -151,6 +154,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 28, 29, @@ -210,6 +214,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 32, 33, @@ -275,6 +280,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 11, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot index defa0485d9e..57c3841b0a2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 36, 37, @@ -73,6 +74,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 9, 10, @@ -102,6 +104,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 14, 18, @@ -151,6 +154,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 17, 18, @@ -210,6 +214,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 21, 22, @@ -258,6 +263,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 11, 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot index 45304c8dd08..0c9ac77d2ce 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 89, 93, @@ -73,6 +74,7 @@ Object { }, }, "name": "message", + "optional": false, "range": Array [ 9, 16, @@ -102,6 +104,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 17, 28, @@ -155,6 +158,7 @@ Object { }, }, "name": "age", + "optional": false, "range": Array [ 30, 40, @@ -205,6 +209,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 30, 46, @@ -243,6 +248,7 @@ Object { }, }, "name": "args", + "optional": false, "range": Array [ 51, 55, @@ -259,6 +265,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 48, 69, @@ -308,6 +315,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 56, 61, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot index 24cd796473e..432df6b9b54 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 50, 54, @@ -73,6 +74,7 @@ Object { }, }, "name": "message", + "optional": false, "range": Array [ 9, 16, @@ -102,6 +104,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 17, 28, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot index 48a95068a3c..17f4da1825a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "abc", + "optional": false, "range": Array [ 26, 29, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -103,6 +106,7 @@ Object { }, }, "name": "globalThis", + "optional": false, "range": Array [ 69, 79, @@ -122,6 +126,7 @@ Object { }, }, "name": "abc", + "optional": false, "range": Array [ 80, 83, @@ -189,6 +194,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -201,6 +207,7 @@ Object { }, }, "name": "answer", + "optional": false, "range": Array [ 97, 103, @@ -243,6 +250,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -286,6 +294,7 @@ Object { }, }, "name": "globalThis", + "optional": false, "range": Array [ 178, 188, @@ -305,6 +314,7 @@ Object { }, }, "name": "answer", + "optional": false, "range": Array [ 189, 195, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot index 99c14c70ea9..b22828de06b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot index 1e5a56be081..978d7cbc004 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot index ac4b760010d..0942bb69eb2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot index f5763d6fe01..292111cedcd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot @@ -16,6 +16,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 19, 22, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot index 37de8a2ca76..5ed2c19c1e4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot index 1f9269046ed..10bab006fc4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 62, 66, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot index 89218380012..af78772e1c5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 15, @@ -89,6 +90,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -117,6 +119,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot index ce54edc62e8..f9f58d4b37e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -82,6 +83,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 21, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot index 0d81408bdd0..f7e5d4f4a30 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -82,6 +83,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 14, 17, @@ -108,6 +110,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, @@ -136,6 +139,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 19, 22, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot index 4e1f626f6ec..6380a082dc6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot @@ -63,6 +63,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot index b726332faac..9af536ac72d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 31, 35, @@ -118,6 +119,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 7, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot index 57a08508e2b..75a60791266 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 22, 25, @@ -71,6 +73,7 @@ Object { }, }, "name": "Baz", + "optional": false, "range": Array [ 26, 29, @@ -106,6 +109,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot index ee56b199c2d..ca441eb6c57 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 22, 25, @@ -71,6 +73,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot index f1d74ce8b70..c345c0ee7ff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -34,6 +35,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, @@ -93,6 +95,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot index 8c772c7947a..0fb97edc80a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot @@ -8,7 +8,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -22,6 +22,7 @@ Object { }, }, "name": "baa", + "optional": false, "range": Array [ 20, 23, @@ -38,13 +39,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 20, 32, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -83,7 +84,7 @@ Object { }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -97,6 +98,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 37, 40, @@ -118,8 +120,8 @@ Object { 37, 50, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -158,7 +160,7 @@ Object { }, Object { "computed": true, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -172,6 +174,7 @@ Object { }, }, "name": "bax", + "optional": false, "range": Array [ 56, 59, @@ -188,13 +191,13 @@ Object { "line": 4, }, }, - "optional": undefined, + "optional": false, "range": Array [ 55, 69, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -233,7 +236,7 @@ Object { }, Object { "computed": true, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -247,6 +250,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 75, 78, @@ -268,8 +272,8 @@ Object { 74, 89, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -307,6 +311,7 @@ Object { }, }, Object { + "export": false, "loc": Object { "end": Object { "column": 26, @@ -330,6 +335,7 @@ Object { }, }, "name": "eee", + "optional": false, "range": Array [ 95, 106, @@ -375,6 +381,8 @@ Object { 94, 116, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -413,6 +421,7 @@ Object { }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -425,6 +434,7 @@ Object { }, }, "name": "doo", + "optional": false, "range": Array [ 121, 124, @@ -442,11 +452,13 @@ Object { "line": 7, }, }, + "optional": false, "params": Array [], "range": Array [ 121, 133, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -481,10 +493,12 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -497,6 +511,7 @@ Object { }, }, "name": "coo", + "optional": false, "range": Array [ 138, 141, @@ -528,6 +543,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 143, 144, @@ -546,6 +562,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 146, 147, @@ -564,6 +581,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 149, 150, @@ -575,6 +593,7 @@ Object { 138, 158, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -609,10 +628,12 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": true, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -625,6 +646,7 @@ Object { }, }, "name": "loo", + "optional": false, "range": Array [ 164, 167, @@ -656,6 +678,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 170, 171, @@ -674,6 +697,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 173, 174, @@ -692,6 +716,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 176, 177, @@ -703,6 +728,7 @@ Object { 163, 185, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -737,10 +763,12 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -753,6 +781,7 @@ Object { }, }, "name": "boo", + "optional": false, "range": Array [ 190, 193, @@ -770,6 +799,7 @@ Object { "line": 10, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -783,6 +813,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 197, 198, @@ -801,6 +832,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 200, 201, @@ -819,6 +851,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 203, 204, @@ -830,6 +863,7 @@ Object { 190, 212, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -864,6 +898,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", "typeParameters": Object { "loc": Object { @@ -903,6 +938,7 @@ Object { }, }, "name": "J", + "optional": false, "range": Array [ 194, 195, @@ -948,6 +984,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 222, 223, @@ -1038,6 +1075,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 250, 251, @@ -1141,6 +1179,7 @@ Object { }, }, "name": "F", + "optional": false, "range": Array [ 247, 248, @@ -1179,6 +1218,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -1191,6 +1231,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot index 75ad28bb759..b77e09c76df 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot @@ -20,7 +20,7 @@ Object { "params": Array [ Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 17, @@ -31,7 +31,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -44,6 +44,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 33, 34, @@ -54,13 +55,13 @@ Object { 26, 34, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "private", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 28, @@ -71,7 +72,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -84,6 +85,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 44, 45, @@ -94,8 +96,8 @@ Object { 36, 45, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, ], @@ -122,6 +124,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -134,6 +137,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot index ea099804bde..1a952462bae 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -48,6 +49,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 22, 25, @@ -67,6 +69,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 29, @@ -108,6 +111,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot index 5ac92facdff..8c84ec07341 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 25, 28, @@ -97,6 +99,7 @@ Object { }, }, "name": "J", + "optional": false, "range": Array [ 29, 30, @@ -126,6 +129,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, @@ -185,6 +189,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot index 3c1d50e28b2..972c0cb3c71 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -34,6 +35,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 10, 14, @@ -93,6 +95,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 15, 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot index c4299c7644c..34e53437878 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 76, 79, @@ -37,6 +39,7 @@ Object { "line": 6, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 80, 83, @@ -61,6 +65,8 @@ Object { 76, 85, ], + "readonly": false, + "static": false, "type": "TSMethodSignature", }, ], @@ -80,6 +86,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +99,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot index fdc32c02335..465f49b1110 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "h", + "optional": false, "range": Array [ 19, 20, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 21, 32, @@ -95,6 +99,7 @@ Object { 19, 40, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -129,10 +134,12 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -145,6 +152,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 43, 44, @@ -162,6 +170,7 @@ Object { "line": 3, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -175,6 +184,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 48, 54, @@ -224,6 +234,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 53, 54, @@ -239,6 +250,7 @@ Object { 43, 59, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -283,6 +295,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 57, 58, @@ -292,6 +305,7 @@ Object { "typeParameters": undefined, }, }, + "static": false, "type": "TSMethodSignature", "typeParameters": Object { "loc": Object { @@ -331,6 +345,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 45, 46, @@ -369,6 +384,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -381,6 +397,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot index f0d57792836..4470e6d731c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot @@ -8,7 +8,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 21, 24, @@ -43,14 +44,14 @@ Object { 21, 26, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": undefined, }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -64,6 +65,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 31, 34, @@ -85,8 +87,8 @@ Object { 31, 44, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -125,6 +127,7 @@ Object { }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -137,6 +140,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 49, 52, @@ -168,6 +172,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 54, 57, @@ -251,6 +256,8 @@ Object { 49, 79, ], + "readonly": false, + "static": false, "type": "TSMethodSignature", }, ], @@ -270,6 +277,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -282,6 +290,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot index 402d5df0570..c3302a988af 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot @@ -8,7 +8,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -22,6 +22,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 21, 24, @@ -38,13 +39,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 21, 25, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": undefined, }, @@ -65,6 +66,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -77,6 +79,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 10, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot index 5b885e496df..910a474a6e2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics intrinsic-keyword.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Uppercase", + "optional": false, "range": Array [ 5, 14, @@ -108,6 +110,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 15, 16, @@ -130,6 +133,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -142,6 +146,7 @@ Object { }, }, "name": "Lowercase", + "optional": false, "range": Array [ 51, 60, @@ -234,6 +239,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 61, 62, @@ -256,6 +262,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -268,6 +275,7 @@ Object { }, }, "name": "Capitalize", + "optional": false, "range": Array [ 97, 107, @@ -360,6 +368,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 108, 109, @@ -382,6 +391,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -394,6 +404,7 @@ Object { }, }, "name": "Uncapitalize", + "optional": false, "range": Array [ 144, 156, @@ -486,6 +497,7 @@ Object { }, }, "name": "S", + "optional": false, "range": Array [ 157, 158, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot index 485bdef6f27..50129f1b095 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics keyof-operator.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 5, 6, @@ -82,6 +84,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot index 1092be3a13f..a3ab47f5447 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "abstract", + "optional": false, "range": Array [ 10, 18, @@ -62,6 +64,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -82,6 +85,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -94,6 +98,7 @@ Object { }, }, "name": "as", + "optional": false, "range": Array [ 32, 34, @@ -136,6 +141,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -156,6 +162,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -168,6 +175,7 @@ Object { }, }, "name": "asserts", + "optional": false, "range": Array [ 48, 55, @@ -210,6 +218,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -230,6 +239,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -242,6 +252,7 @@ Object { }, }, "name": "any", + "optional": false, "range": Array [ 69, 72, @@ -284,6 +295,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -304,6 +316,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -316,6 +329,7 @@ Object { }, }, "name": "async", + "optional": false, "range": Array [ 86, 91, @@ -358,6 +372,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -378,6 +393,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -390,6 +406,7 @@ Object { }, }, "name": "await", + "optional": false, "range": Array [ 105, 110, @@ -432,6 +449,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -452,6 +470,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -464,6 +483,7 @@ Object { }, }, "name": "boolean", + "optional": false, "range": Array [ 124, 131, @@ -506,6 +526,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -526,6 +547,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -538,6 +560,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 145, 156, @@ -580,6 +603,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -600,6 +624,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -612,6 +637,7 @@ Object { }, }, "name": "declare", + "optional": false, "range": Array [ 170, 177, @@ -654,6 +680,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -674,6 +701,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -686,6 +714,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 191, 194, @@ -728,6 +757,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -748,6 +778,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -760,6 +791,7 @@ Object { }, }, "name": "infer", + "optional": false, "range": Array [ 208, 213, @@ -802,6 +834,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -822,6 +855,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -834,6 +868,7 @@ Object { }, }, "name": "is", + "optional": false, "range": Array [ 227, 229, @@ -876,6 +911,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -896,6 +932,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -908,6 +945,7 @@ Object { }, }, "name": "keyof", + "optional": false, "range": Array [ 243, 248, @@ -950,6 +988,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -970,6 +1009,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -982,6 +1022,7 @@ Object { }, }, "name": "module", + "optional": false, "range": Array [ 262, 268, @@ -1024,6 +1065,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1044,6 +1086,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1056,6 +1099,7 @@ Object { }, }, "name": "namespace", + "optional": false, "range": Array [ 282, 291, @@ -1098,6 +1142,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1118,6 +1163,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1130,6 +1176,7 @@ Object { }, }, "name": "never", + "optional": false, "range": Array [ 305, 310, @@ -1172,6 +1219,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1192,6 +1240,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1204,6 +1253,7 @@ Object { }, }, "name": "readonly", + "optional": false, "range": Array [ 324, 332, @@ -1246,6 +1296,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1266,6 +1317,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1278,6 +1330,7 @@ Object { }, }, "name": "require", + "optional": false, "range": Array [ 346, 353, @@ -1320,6 +1373,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1340,6 +1394,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1352,6 +1407,7 @@ Object { }, }, "name": "number", + "optional": false, "range": Array [ 367, 373, @@ -1394,6 +1450,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1414,6 +1471,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1426,6 +1484,7 @@ Object { }, }, "name": "object", + "optional": false, "range": Array [ 387, 393, @@ -1468,6 +1527,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1488,6 +1548,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1500,6 +1561,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 407, 410, @@ -1542,6 +1604,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1562,6 +1625,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1574,6 +1638,7 @@ Object { }, }, "name": "string", + "optional": false, "range": Array [ 424, 430, @@ -1616,6 +1681,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1636,6 +1702,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1648,6 +1715,7 @@ Object { }, }, "name": "symbol", + "optional": false, "range": Array [ 444, 450, @@ -1690,6 +1758,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1710,6 +1779,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1722,6 +1792,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 464, 468, @@ -1764,6 +1835,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1784,6 +1856,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1796,6 +1869,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 482, 491, @@ -1838,6 +1912,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1858,6 +1933,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1870,6 +1946,7 @@ Object { }, }, "name": "unique", + "optional": false, "range": Array [ 505, 511, @@ -1912,6 +1989,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -1932,6 +2010,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -1944,6 +2023,7 @@ Object { }, }, "name": "unknown", + "optional": false, "range": Array [ 525, 532, @@ -1986,6 +2066,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -2006,6 +2087,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -2018,6 +2100,7 @@ Object { }, }, "name": "from", + "optional": false, "range": Array [ 546, 550, @@ -2060,6 +2143,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -2080,6 +2164,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -2092,6 +2177,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 564, 570, @@ -2134,6 +2220,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -2154,6 +2241,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -2166,6 +2254,7 @@ Object { }, }, "name": "bigint", + "optional": false, "range": Array [ 584, 590, @@ -2208,6 +2297,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -2228,6 +2318,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -2240,6 +2331,7 @@ Object { }, }, "name": "of", + "optional": false, "range": Array [ 604, 606, @@ -2282,6 +2374,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -2367,6 +2460,7 @@ Object { }, }, "name": "abstract", + "optional": false, "range": Array [ 626, 634, @@ -2395,6 +2489,7 @@ Object { }, }, "name": "abstract", + "optional": false, "range": Array [ 626, 634, @@ -2421,6 +2516,7 @@ Object { }, }, "name": "as", + "optional": false, "range": Array [ 638, 640, @@ -2449,6 +2545,7 @@ Object { }, }, "name": "as", + "optional": false, "range": Array [ 638, 640, @@ -2475,6 +2572,7 @@ Object { }, }, "name": "asserts", + "optional": false, "range": Array [ 644, 651, @@ -2503,6 +2601,7 @@ Object { }, }, "name": "asserts", + "optional": false, "range": Array [ 644, 651, @@ -2529,6 +2628,7 @@ Object { }, }, "name": "any", + "optional": false, "range": Array [ 655, 658, @@ -2557,6 +2657,7 @@ Object { }, }, "name": "any", + "optional": false, "range": Array [ 655, 658, @@ -2583,6 +2684,7 @@ Object { }, }, "name": "async", + "optional": false, "range": Array [ 662, 667, @@ -2611,6 +2713,7 @@ Object { }, }, "name": "async", + "optional": false, "range": Array [ 662, 667, @@ -2637,6 +2740,7 @@ Object { }, }, "name": "await", + "optional": false, "range": Array [ 671, 676, @@ -2665,6 +2769,7 @@ Object { }, }, "name": "await", + "optional": false, "range": Array [ 671, 676, @@ -2691,6 +2796,7 @@ Object { }, }, "name": "boolean", + "optional": false, "range": Array [ 680, 687, @@ -2719,6 +2825,7 @@ Object { }, }, "name": "boolean", + "optional": false, "range": Array [ 680, 687, @@ -2745,6 +2852,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 691, 702, @@ -2773,6 +2881,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 691, 702, @@ -2799,6 +2908,7 @@ Object { }, }, "name": "declare", + "optional": false, "range": Array [ 706, 713, @@ -2827,6 +2937,7 @@ Object { }, }, "name": "declare", + "optional": false, "range": Array [ 706, 713, @@ -2853,6 +2964,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 717, 720, @@ -2881,6 +2993,7 @@ Object { }, }, "name": "get", + "optional": false, "range": Array [ 717, 720, @@ -2907,6 +3020,7 @@ Object { }, }, "name": "infer", + "optional": false, "range": Array [ 724, 729, @@ -2935,6 +3049,7 @@ Object { }, }, "name": "infer", + "optional": false, "range": Array [ 724, 729, @@ -2961,6 +3076,7 @@ Object { }, }, "name": "is", + "optional": false, "range": Array [ 733, 735, @@ -2989,6 +3105,7 @@ Object { }, }, "name": "is", + "optional": false, "range": Array [ 733, 735, @@ -3015,6 +3132,7 @@ Object { }, }, "name": "keyof", + "optional": false, "range": Array [ 739, 744, @@ -3043,6 +3161,7 @@ Object { }, }, "name": "keyof", + "optional": false, "range": Array [ 739, 744, @@ -3069,6 +3188,7 @@ Object { }, }, "name": "module", + "optional": false, "range": Array [ 748, 754, @@ -3097,6 +3217,7 @@ Object { }, }, "name": "module", + "optional": false, "range": Array [ 748, 754, @@ -3123,6 +3244,7 @@ Object { }, }, "name": "namespace", + "optional": false, "range": Array [ 758, 767, @@ -3151,6 +3273,7 @@ Object { }, }, "name": "namespace", + "optional": false, "range": Array [ 758, 767, @@ -3177,6 +3300,7 @@ Object { }, }, "name": "never", + "optional": false, "range": Array [ 771, 776, @@ -3205,6 +3329,7 @@ Object { }, }, "name": "never", + "optional": false, "range": Array [ 771, 776, @@ -3231,6 +3356,7 @@ Object { }, }, "name": "readonly", + "optional": false, "range": Array [ 780, 788, @@ -3259,6 +3385,7 @@ Object { }, }, "name": "readonly", + "optional": false, "range": Array [ 780, 788, @@ -3285,6 +3412,7 @@ Object { }, }, "name": "require", + "optional": false, "range": Array [ 792, 799, @@ -3313,6 +3441,7 @@ Object { }, }, "name": "require", + "optional": false, "range": Array [ 792, 799, @@ -3339,6 +3468,7 @@ Object { }, }, "name": "number", + "optional": false, "range": Array [ 803, 809, @@ -3367,6 +3497,7 @@ Object { }, }, "name": "number", + "optional": false, "range": Array [ 803, 809, @@ -3393,6 +3524,7 @@ Object { }, }, "name": "object", + "optional": false, "range": Array [ 813, 819, @@ -3421,6 +3553,7 @@ Object { }, }, "name": "object", + "optional": false, "range": Array [ 813, 819, @@ -3447,6 +3580,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 823, 826, @@ -3475,6 +3609,7 @@ Object { }, }, "name": "set", + "optional": false, "range": Array [ 823, 826, @@ -3501,6 +3636,7 @@ Object { }, }, "name": "string", + "optional": false, "range": Array [ 830, 836, @@ -3529,6 +3665,7 @@ Object { }, }, "name": "string", + "optional": false, "range": Array [ 830, 836, @@ -3555,6 +3692,7 @@ Object { }, }, "name": "symbol", + "optional": false, "range": Array [ 840, 846, @@ -3583,6 +3721,7 @@ Object { }, }, "name": "symbol", + "optional": false, "range": Array [ 840, 846, @@ -3609,6 +3748,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 850, 854, @@ -3637,6 +3777,7 @@ Object { }, }, "name": "type", + "optional": false, "range": Array [ 850, 854, @@ -3663,6 +3804,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 858, 867, @@ -3691,6 +3833,7 @@ Object { }, }, "name": "undefined", + "optional": false, "range": Array [ 858, 867, @@ -3717,6 +3860,7 @@ Object { }, }, "name": "unique", + "optional": false, "range": Array [ 871, 877, @@ -3745,6 +3889,7 @@ Object { }, }, "name": "unique", + "optional": false, "range": Array [ 871, 877, @@ -3771,6 +3916,7 @@ Object { }, }, "name": "unknown", + "optional": false, "range": Array [ 881, 888, @@ -3799,6 +3945,7 @@ Object { }, }, "name": "unknown", + "optional": false, "range": Array [ 881, 888, @@ -3825,6 +3972,7 @@ Object { }, }, "name": "from", + "optional": false, "range": Array [ 892, 896, @@ -3853,6 +4001,7 @@ Object { }, }, "name": "from", + "optional": false, "range": Array [ 892, 896, @@ -3879,6 +4028,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 900, 906, @@ -3907,6 +4057,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 900, 906, @@ -3933,6 +4084,7 @@ Object { }, }, "name": "bigint", + "optional": false, "range": Array [ 910, 916, @@ -3961,6 +4113,7 @@ Object { }, }, "name": "bigint", + "optional": false, "range": Array [ 910, 916, @@ -3987,6 +4140,7 @@ Object { }, }, "name": "of", + "optional": false, "range": Array [ 920, 922, @@ -4015,6 +4169,7 @@ Object { }, }, "name": "of", + "optional": false, "range": Array [ 920, 922, @@ -4049,6 +4204,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -4061,6 +4217,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 957, 958, @@ -4100,6 +4257,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 994, 995, @@ -4180,6 +4338,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 1011, 1012, @@ -4260,6 +4419,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 1027, 1028, @@ -4340,6 +4500,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 1047, 1048, @@ -4371,6 +4532,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -4383,6 +4545,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 1061, 1062, @@ -4425,6 +4588,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -4509,6 +4673,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 968, 969, @@ -4529,6 +4694,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 981, 982, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot index 3419aedd5b9..e5abd7839d2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "nestedArray", + "optional": false, "range": Array [ 4, 44, @@ -67,6 +69,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 17, 22, @@ -113,6 +116,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 23, 28, @@ -159,6 +163,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 29, 34, @@ -238,6 +243,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot index fd30d755822..f3a49acbf46 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 15, @@ -67,6 +69,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 7, 8, @@ -130,6 +133,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -174,6 +178,7 @@ Object { }, }, "name": "Observable", + "optional": false, "range": Array [ 17, 27, @@ -193,6 +198,7 @@ Object { }, }, "name": "empty", + "optional": false, "range": Array [ 28, 33, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot index 760fb5ce957..96713d6b232 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, @@ -49,6 +51,7 @@ Object { }, }, "name": "new", + "optional": false, "range": Array [ 16, 19, @@ -67,6 +70,7 @@ Object { }, }, "name": "target", + "optional": false, "range": Array [ 20, 26, @@ -116,6 +120,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot index 3abb8a86713..89a610a20a4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 56, 57, @@ -41,6 +42,7 @@ Object { }, }, "name": "validateEntity", + "optional": false, "range": Array [ 41, 55, @@ -83,6 +85,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -95,6 +98,7 @@ Object { }, }, "name": "s", + "optional": false, "range": Array [ 68, 69, @@ -126,6 +130,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 72, 73, @@ -161,6 +166,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 75, 79, @@ -190,6 +196,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -238,6 +245,7 @@ Object { }, }, "name": "processEntity", + "optional": false, "range": Array [ 9, 22, @@ -317,6 +325,7 @@ Object { }, }, "name": "Entity", + "optional": false, "range": Array [ 27, 33, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot index c3db06cc0aa..403567c06b8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 11, @@ -76,6 +78,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -96,6 +99,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -108,6 +112,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 17, 29, @@ -166,6 +171,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot index e2c86b20997..ab950d8bab9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot @@ -10,6 +10,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -22,6 +23,7 @@ Object { }, }, "name": "len", + "optional": false, "range": Array [ 52, 55, @@ -41,6 +43,7 @@ Object { }, }, "name": "s", + "optional": false, "range": Array [ 59, 60, @@ -100,6 +103,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -148,6 +152,7 @@ Object { }, }, "name": "processNullishCoalesce", + "optional": false, "range": Array [ 9, 31, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot index 4373bd4bb67..062383c2bf4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot @@ -49,6 +49,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 3, 13, @@ -144,6 +145,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 22, 31, @@ -260,6 +262,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 40, 52, @@ -401,6 +404,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 64, 65, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot index bafe11a59fd..a6e07a65ef7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -69,6 +71,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 16, 61, @@ -223,6 +226,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 30, 31, @@ -259,6 +263,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 65, 68, @@ -277,6 +282,7 @@ Object { }, }, "method": true, + "optional": false, "range": Array [ 65, 100, @@ -431,6 +437,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 69, 70, @@ -467,6 +474,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 108, 109, @@ -485,6 +493,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 104, 138, @@ -617,6 +626,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 146, 147, @@ -635,6 +645,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 142, 172, @@ -687,6 +698,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 148, 157, @@ -793,6 +805,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot index cc4eb5c81ff..c3bfe5cfc7b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 40, 43, @@ -55,6 +56,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 45, 48, @@ -173,6 +175,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 55, 58, @@ -192,6 +195,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 60, 63, @@ -233,6 +237,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 65, 70, @@ -323,6 +328,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 77, 80, @@ -342,6 +348,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 82, 85, @@ -460,6 +467,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 94, 97, @@ -479,6 +487,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 99, 102, @@ -536,6 +545,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 105, 110, @@ -610,6 +620,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 117, 120, @@ -629,6 +640,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 122, 125, @@ -747,6 +759,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 134, 137, @@ -766,6 +779,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 139, 142, @@ -823,6 +837,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 145, 150, @@ -899,6 +914,7 @@ Object { }, }, "name": "processOptional", + "optional": false, "range": Array [ 9, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot index d53caae0ce8..e83b80e7dcb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 51, 54, @@ -54,6 +55,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 56, 58, @@ -155,6 +157,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 66, 69, @@ -174,6 +177,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 71, 74, @@ -215,6 +219,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 76, 78, @@ -300,6 +305,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 85, 88, @@ -319,6 +325,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 89, 92, @@ -344,6 +351,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 94, 96, @@ -457,6 +465,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 104, 107, @@ -476,6 +485,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 108, 111, @@ -501,6 +511,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 113, 118, @@ -542,6 +553,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 120, 122, @@ -639,6 +651,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 129, 132, @@ -658,6 +671,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 133, 136, @@ -683,6 +697,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 138, 143, @@ -708,6 +723,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 145, 147, @@ -785,6 +801,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 156, 159, @@ -858,6 +875,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 169, 172, @@ -949,6 +967,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 184, 187, @@ -1065,6 +1084,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 202, 205, @@ -1117,6 +1137,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 211, 214, @@ -1176,6 +1197,7 @@ Object { }, }, "name": "processOptionalCallParens", + "optional": false, "range": Array [ 9, 34, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot index a1bc055e666..f81f439a920 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 44, 47, @@ -54,6 +55,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 49, 51, @@ -155,6 +157,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 57, 60, @@ -174,6 +177,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 62, 65, @@ -199,6 +203,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 66, 68, @@ -300,6 +305,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 74, 77, @@ -319,6 +325,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 78, 81, @@ -344,6 +351,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 83, 85, @@ -457,6 +465,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 91, 94, @@ -476,6 +485,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 95, 98, @@ -501,6 +511,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 100, 105, @@ -526,6 +537,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 106, 108, @@ -639,6 +651,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 114, 117, @@ -658,6 +671,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 118, 121, @@ -683,6 +697,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 123, 128, @@ -708,6 +723,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 130, 132, @@ -785,6 +801,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 139, 142, @@ -858,6 +875,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 150, 153, @@ -948,6 +966,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 163, 166, @@ -1048,6 +1067,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 179, 182, @@ -1084,6 +1104,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 187, 190, @@ -1159,6 +1180,7 @@ Object { }, }, "name": "processOptionalCall", + "optional": false, "range": Array [ 9, 28, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot index 6ea1b41480b..045ea65c91b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot @@ -46,6 +46,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 40, 43, @@ -107,6 +108,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 54, 59, @@ -190,6 +192,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 64, 67, @@ -267,6 +270,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 79, 84, @@ -334,6 +338,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 89, 92, @@ -411,6 +416,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 104, 109, @@ -478,6 +484,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 113, 116, @@ -497,6 +504,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 118, 121, @@ -622,6 +630,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 136, 139, @@ -641,6 +650,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 141, 144, @@ -766,6 +776,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 160, 163, @@ -785,6 +796,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 165, 168, @@ -902,6 +914,7 @@ Object { }, }, "name": "processOptional", + "optional": false, "range": Array [ 9, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot index bad9cf7b189..8f7d8d948be 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot @@ -33,6 +33,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 54, 57, @@ -135,6 +136,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 68, 71, @@ -263,6 +265,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 85, 88, @@ -403,6 +406,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 102, 105, @@ -569,6 +573,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 122, 125, @@ -747,6 +752,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 144, 147, @@ -920,6 +926,7 @@ Object { }, }, "name": "processOptionalElementParens", + "optional": false, "range": Array [ 9, 37, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot index f2854d51f62..1e9ac0f392a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot @@ -33,6 +33,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 47, 50, @@ -135,6 +136,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 59, 62, @@ -263,6 +265,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 74, 77, @@ -391,6 +394,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 89, 92, @@ -531,6 +535,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 104, 107, @@ -697,6 +702,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 122, 125, @@ -844,6 +850,7 @@ Object { }, }, "name": "processOptionalElement", + "optional": false, "range": Array [ 9, 31, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot index df6699c1555..ee3b4a48c98 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot @@ -46,6 +46,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 40, 43, @@ -65,6 +66,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 45, 48, @@ -106,6 +108,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 50, 55, @@ -189,6 +192,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 60, 63, @@ -208,6 +212,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 65, 68, @@ -265,6 +270,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 71, 76, @@ -332,6 +338,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 81, 84, @@ -351,6 +358,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 86, 89, @@ -408,6 +416,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 92, 97, @@ -467,6 +476,7 @@ Object { }, }, "name": "processOptional", + "optional": false, "range": Array [ 9, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot index 25d8a21935a..fecbd7eaee9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot @@ -33,6 +33,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 47, 50, @@ -52,6 +53,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 52, 55, @@ -134,6 +136,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 61, 64, @@ -153,6 +156,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 66, 69, @@ -194,6 +198,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 71, 76, @@ -260,6 +265,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 81, 84, @@ -279,6 +285,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 85, 88, @@ -304,6 +311,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 90, 95, @@ -398,6 +406,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 101, 104, @@ -417,6 +426,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 105, 108, @@ -442,6 +452,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 110, 115, @@ -483,6 +494,7 @@ Object { }, }, "name": "four", + "optional": false, "range": Array [ 117, 121, @@ -561,6 +573,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 126, 129, @@ -580,6 +593,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 130, 133, @@ -605,6 +619,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 135, 140, @@ -630,6 +645,7 @@ Object { }, }, "name": "four", + "optional": false, "range": Array [ 142, 146, @@ -736,6 +752,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 152, 155, @@ -755,6 +772,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 156, 159, @@ -780,6 +798,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 161, 166, @@ -805,6 +824,7 @@ Object { }, }, "name": "four", + "optional": false, "range": Array [ 168, 172, @@ -846,6 +866,7 @@ Object { }, }, "name": "five", + "optional": false, "range": Array [ 174, 178, @@ -905,6 +926,7 @@ Object { }, }, "name": "processOptionalParens", + "optional": false, "range": Array [ 9, 30, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot index cce78104239..3ff9da972a4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot @@ -33,6 +33,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 40, 43, @@ -52,6 +53,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 45, 48, @@ -134,6 +136,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 52, 55, @@ -153,6 +156,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 57, 60, @@ -178,6 +182,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 61, 66, @@ -260,6 +265,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 70, 73, @@ -279,6 +285,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 74, 77, @@ -304,6 +311,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 79, 84, @@ -398,6 +406,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 88, 91, @@ -417,6 +426,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 92, 95, @@ -442,6 +452,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 97, 102, @@ -467,6 +478,7 @@ Object { }, }, "name": "four", + "optional": false, "range": Array [ 103, 107, @@ -561,6 +573,7 @@ Object { }, }, "name": "one", + "optional": false, "range": Array [ 111, 114, @@ -580,6 +593,7 @@ Object { }, }, "name": "two", + "optional": false, "range": Array [ 115, 118, @@ -605,6 +619,7 @@ Object { }, }, "name": "three", + "optional": false, "range": Array [ 120, 125, @@ -630,6 +645,7 @@ Object { }, }, "name": "four", + "optional": false, "range": Array [ 127, 131, @@ -705,6 +721,7 @@ Object { }, }, "name": "processOptional", + "optional": false, "range": Array [ 9, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot index 27c37ed05ad..724d7ee43d8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot @@ -61,6 +61,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 24, 30, @@ -136,6 +137,7 @@ Object { }, }, "name": "arg", + "optional": false, "range": Array [ 59, 62, @@ -203,6 +205,7 @@ Object { }, }, "name": "arg", + "optional": false, "range": Array [ 31, 34, @@ -246,6 +249,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot index a56985c288d..021bda1ad2f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 45, 48, @@ -53,6 +54,7 @@ Object { }, }, "name": "slice", + "optional": false, "range": Array [ 49, 54, @@ -145,6 +147,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 75, 78, @@ -164,6 +167,7 @@ Object { }, }, "name": "push", + "optional": false, "range": Array [ 79, 83, @@ -240,6 +244,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -269,6 +274,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 13, 39, @@ -318,6 +324,7 @@ Object { }, }, "name": "ReadonlyArray", + "optional": false, "range": Array [ 18, 31, @@ -401,6 +408,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 149, 152, @@ -420,6 +428,7 @@ Object { }, }, "name": "slice", + "optional": false, "range": Array [ 153, 158, @@ -512,6 +521,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 179, 182, @@ -531,6 +541,7 @@ Object { }, }, "name": "push", + "optional": false, "range": Array [ 183, 187, @@ -607,6 +618,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 117, 120, @@ -636,6 +648,7 @@ Object { }, }, "name": "arr", + "optional": false, "range": Array [ 121, 143, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot index f0dbe06b538..384021ae937 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "pair", + "optional": false, "range": Array [ 62, 66, @@ -91,6 +92,7 @@ Object { }, }, "name": "console", + "optional": false, "range": Array [ 50, 57, @@ -110,6 +112,7 @@ Object { }, }, "name": "log", + "optional": false, "range": Array [ 58, 61, @@ -181,6 +184,7 @@ Object { }, }, "name": "pair", + "optional": false, "range": Array [ 84, 88, @@ -296,6 +300,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 9, 12, @@ -325,6 +330,7 @@ Object { }, }, "name": "pair", + "optional": false, "range": Array [ 13, 44, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot index 9cc451138fd..a5abfcf9f82 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 0, 1, @@ -50,6 +51,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot index 714a7e449b2..fa24b385c5c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 0, 1, @@ -50,6 +51,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot index 25a13976648..720ab2655b1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 0, 1, @@ -50,6 +51,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot index fa61ef84dd9..1c4b6ba2cc6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 9, 13, @@ -66,6 +67,7 @@ Object { }, }, "name": "abc", + "optional": false, "range": Array [ 14, 38, @@ -115,6 +117,7 @@ Object { }, }, "name": "Map", + "optional": false, "range": Array [ 19, 22, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot index b845060344d..9a51fa39071 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "TestCallback", + "optional": false, "range": Array [ 12, 24, @@ -63,6 +65,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 28, 37, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot index 352d429ffef..532c3fe25fe 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "TestClassProps", + "optional": false, "range": Array [ 12, 26, @@ -53,7 +55,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -67,6 +69,7 @@ Object { }, }, "name": "count", + "optional": false, "range": Array [ 35, 40, @@ -83,13 +86,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 35, 48, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot index 189e76aa11a..5ff70600da2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "TestAlias", + "optional": false, "range": Array [ 12, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot index d2c6248a377..393250626d3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-alias-declaration-with-constrained-type-paramete Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Result", + "optional": false, "range": Array [ 5, 11, @@ -82,6 +84,7 @@ Object { }, }, "name": "Success", + "optional": false, "range": Array [ 28, 35, @@ -128,6 +131,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 36, 37, @@ -172,6 +176,7 @@ Object { }, }, "name": "Failure", + "optional": false, "range": Array [ 41, 48, @@ -237,6 +242,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot index 169e2a2c6f6..daccc187aa6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-alias-declaration.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Result", + "optional": false, "range": Array [ 5, 11, @@ -82,6 +84,7 @@ Object { }, }, "name": "Success", + "optional": false, "range": Array [ 17, 24, @@ -128,6 +131,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 25, 26, @@ -172,6 +176,7 @@ Object { }, }, "name": "Failure", + "optional": false, "range": Array [ 30, 37, @@ -220,6 +225,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 12, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot index 66d595ecb35..3d9f2b2c7ba 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-alias-object-without-annotation.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -51,7 +53,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -65,6 +67,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 12, 15, @@ -81,13 +84,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 12, 24, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -126,7 +129,7 @@ Object { }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -140,6 +143,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 25, 28, @@ -156,13 +160,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 25, 28, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot index fa92cb442e4..a82e13d2933 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "assertString", + "optional": false, "range": Array [ 6, 18, @@ -89,6 +91,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 22, 28, @@ -174,6 +177,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 39, 40, @@ -207,6 +211,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot index 2594a013ddd..9c22a9ff16a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot @@ -56,6 +56,7 @@ Object { }, }, "name": "assertsString", + "optional": false, "range": Array [ 9, 22, @@ -85,6 +86,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 23, 29, @@ -170,6 +172,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 40, 41, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot index 8cbbcfed1d5..3686077e03d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "isString", + "optional": false, "range": Array [ 24, 32, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 33, 42, @@ -95,6 +99,7 @@ Object { 24, 58, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 53, 57, @@ -149,6 +155,7 @@ Object { "typeAnnotation": null, }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -168,6 +175,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -180,6 +188,7 @@ Object { }, }, "name": "AssertFoo", + "optional": false, "range": Array [ 10, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot index 8f61a28350a..ad528e81e7a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "isBar", + "optional": false, "range": Array [ 21, 26, @@ -172,6 +173,7 @@ Object { }, }, "name": "isBaz", + "optional": false, "range": Array [ 63, 68, @@ -338,6 +340,7 @@ Object { }, }, "name": "AssertsFoo", + "optional": false, "range": Array [ 6, 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot index cd086d7c0fc..289b4889494 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "assertString", + "optional": false, "range": Array [ 6, 18, @@ -89,6 +91,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 22, 28, @@ -174,6 +177,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 39, 40, @@ -240,6 +244,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot index f2ab8fdaefe..e2a15da93a8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot @@ -56,6 +56,7 @@ Object { }, }, "name": "assertsStringGuard", + "optional": false, "range": Array [ 9, 27, @@ -85,6 +86,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 28, 34, @@ -170,6 +172,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 45, 46, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot index a26782c1073..a52c851d367 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "isString", + "optional": false, "range": Array [ 24, 32, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 33, 42, @@ -95,6 +99,7 @@ Object { 24, 68, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 53, 57, @@ -182,6 +188,7 @@ Object { }, }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -201,6 +208,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -213,6 +221,7 @@ Object { }, }, "name": "AssertFoo", + "optional": false, "range": Array [ 10, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot index abfccafd624..9f912812e54 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "isBar", + "optional": false, "range": Array [ 21, 26, @@ -205,6 +206,7 @@ Object { }, }, "name": "isBaz", + "optional": false, "range": Array [ 73, 78, @@ -404,6 +406,7 @@ Object { }, }, "name": "AssertsFoo", + "optional": false, "range": Array [ 6, 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot index ff1a2fd2b03..dd181db680e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "isString", + "optional": false, "range": Array [ 6, 14, @@ -43,6 +45,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 62, 63, @@ -162,6 +165,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 18, 24, @@ -247,6 +251,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 27, 28, @@ -313,6 +318,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot index 73778ba8b4d..b72ccc2dc4c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 59, 60, @@ -129,6 +130,7 @@ Object { }, }, "name": "isString", + "optional": false, "range": Array [ 9, 17, @@ -158,6 +160,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 18, 24, @@ -243,6 +246,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 27, 28, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot index a7723369960..be5f2276a34 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "isString", + "optional": false, "range": Array [ 18, 26, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 27, 36, @@ -95,6 +99,7 @@ Object { 18, 54, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { }, }, "name": "node", + "optional": false, "range": Array [ 39, 43, @@ -182,6 +188,7 @@ Object { }, }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -201,6 +208,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -213,6 +221,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot index 9d4fe4c33ca..7ef5b6f7f37 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "isBar", + "optional": false, "range": Array [ 14, 19, @@ -94,6 +95,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 67, 70, @@ -257,6 +259,7 @@ Object { }, }, "name": "isBaz", + "optional": false, "range": Array [ 78, 83, @@ -331,6 +334,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 137, 140, @@ -508,6 +512,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot index 2e2104b59f3..3ab6a507d77 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-import-type-with-type-parameters-in-type-referen Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 5, 6, @@ -65,6 +67,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 9, 10, @@ -142,6 +145,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot index 010427ef271..b7e9a0455ef 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-import-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 5, 6, @@ -111,6 +113,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -123,6 +126,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 34, 35, @@ -203,6 +207,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 50, 51, @@ -254,6 +259,7 @@ Object { }, }, "name": "Y", + "optional": false, "range": Array [ 52, 53, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot index 74b9ace6c94..4d3a883ebba 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot @@ -55,6 +55,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -83,6 +84,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -109,6 +111,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 22, 23, @@ -137,6 +140,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot index 5508c996629..eb87732777e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot @@ -54,6 +54,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -82,6 +83,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -108,6 +110,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 22, 23, @@ -136,6 +139,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot index 9ac707ba48f..5afaa0b1815 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -66,6 +67,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 43, 46, @@ -112,6 +114,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 59, 60, @@ -166,6 +169,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 22, 23, @@ -218,6 +222,7 @@ Object { }, }, "name": "foo2", + "optional": false, "range": Array [ 81, 85, @@ -250,6 +255,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 133, 136, @@ -296,6 +302,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 149, 150, @@ -385,6 +392,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 98, 99, @@ -425,6 +433,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -439,6 +448,7 @@ Object { }, }, "name": "bar2", + "optional": false, "range": Array [ 212, 216, @@ -500,6 +510,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 229, 230, @@ -529,6 +540,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 175, 178, @@ -588,6 +600,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 191, 192, @@ -628,6 +641,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -642,6 +656,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 307, 310, @@ -703,6 +718,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 323, 324, @@ -732,6 +748,7 @@ Object { }, }, "name": "bar2", + "optional": false, "range": Array [ 255, 259, @@ -826,6 +843,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 272, 273, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot index 23e4e8cfe5c..c9083becf46 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, @@ -80,6 +81,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 21, 22, @@ -146,6 +148,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 53, 56, @@ -206,6 +209,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 68, 69, @@ -261,6 +265,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 97, 100, @@ -325,6 +330,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 126, 129, @@ -356,6 +362,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 112, 113, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot index 50ce8ec40fd..82a9a58fa42 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "mBuffers", + "optional": false, "range": Array [ 26, 34, @@ -90,6 +91,7 @@ Object { }, }, "name": "interop", + "optional": false, "range": Array [ 36, 43, @@ -122,6 +124,7 @@ Object { }, }, "name": "Reference", + "optional": false, "range": Array [ 44, 53, @@ -199,6 +202,7 @@ Object { }, }, "name": "AudioBufferList", + "optional": false, "range": Array [ 6, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot index e567ad019d6..620ee4534af 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-bigint.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot index 15df6a11783..bf9bd9752e9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-boolean.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot index db4792bdba5..3b3d942aacb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-false.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot index cf7d872afd4..a8e8e4e05e1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-never.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot index c10960e9add..27159307ff4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-null.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot index a6b45be0d7f..e5a6fb5eabb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-number.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot index 4c61e67b2f1..27f8ece1972 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-object.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot index 13ab7aa43cc..912c79a8e3a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-string.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot index c1a42b8f583..6eee3ade9a7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-symbol.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot index 81c20bcfc0a..17a9deab3dc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-true.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot index 03051c999c5..3a1400315f3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-undefined.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot index 578fd0f123d..47fc16eaf9e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-unknown.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot index a729ed280fc..32c951e71f8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-keyword-void.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot index 45a7d851587..33ce59fde4d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics typed-method-signature.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, @@ -51,6 +53,7 @@ Object { "members": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -63,6 +66,7 @@ Object { }, }, "name": "h", + "optional": false, "range": Array [ 15, 16, @@ -80,6 +84,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -93,6 +98,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 17, 28, @@ -138,6 +144,7 @@ Object { 15, 36, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -172,10 +179,12 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -188,6 +197,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 39, 40, @@ -205,6 +215,7 @@ Object { "line": 3, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -218,6 +229,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 44, 50, @@ -267,6 +279,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 49, 50, @@ -282,6 +295,7 @@ Object { 39, 55, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -326,6 +340,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 53, 54, @@ -335,6 +350,7 @@ Object { "typeParameters": undefined, }, }, + "static": false, "type": "TSMethodSignature", "typeParameters": Object { "loc": Object { @@ -374,6 +390,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 41, 42, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot index bfd4fd36e9e..8a2714fb4ff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "addClickListener", + "optional": false, "range": Array [ 23, 39, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "onclick", + "optional": false, "range": Array [ 40, 79, @@ -95,6 +99,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 50, 60, @@ -147,6 +152,7 @@ Object { }, }, "name": "e", + "optional": false, "range": Array [ 62, 70, @@ -196,6 +202,7 @@ Object { }, }, "name": "Event", + "optional": false, "range": Array [ 65, 70, @@ -254,6 +261,7 @@ Object { 23, 87, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -288,6 +296,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -307,6 +316,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -319,6 +329,7 @@ Object { }, }, "name": "UIElement", + "optional": false, "range": Array [ 10, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot index cd8382ae043..76d5c7dc2ff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "union", + "optional": false, "range": Array [ 4, 36, @@ -129,6 +131,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -149,6 +152,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +165,7 @@ Object { }, }, "name": "intersection", + "optional": false, "range": Array [ 42, 71, @@ -255,6 +260,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -275,6 +281,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -287,6 +294,7 @@ Object { }, }, "name": "precedence1", + "optional": false, "range": Array [ 77, 115, @@ -417,6 +425,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -437,6 +446,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -449,6 +459,7 @@ Object { }, }, "name": "precedence2", + "optional": false, "range": Array [ 121, 159, @@ -579,6 +590,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -597,6 +609,7 @@ Object { "type": "VariableDeclaration", }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -609,6 +622,7 @@ Object { }, }, "name": "unionLeading", + "optional": false, "range": Array [ 167, 179, @@ -685,6 +699,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -697,6 +712,7 @@ Object { }, }, "name": "intersectionLeading", + "optional": false, "range": Array [ 206, 225, @@ -792,6 +808,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -804,6 +821,7 @@ Object { }, }, "name": "unionLeadingSingle", + "optional": false, "range": Array [ 252, 270, @@ -863,6 +881,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -875,6 +894,7 @@ Object { }, }, "name": "intersectionLeadingSingle", + "optional": false, "range": Array [ 288, 313, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot index 3e62fc9068b..c614f3b80e6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics unique-symbol.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 5, 6, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot index 6ea8c03cd07..ee859eed3c3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 16, @@ -76,6 +78,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot index c858a9fc2c3..9fdad54e0a8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot @@ -19,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 6, 16, @@ -77,6 +78,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { @@ -110,6 +112,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 22, 32, @@ -168,6 +171,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -201,6 +205,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 38, 48, @@ -259,6 +264,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot index ff107189850..c406b5f41b1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 4, 14, @@ -69,6 +71,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 9, 10, @@ -101,6 +104,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 11, 12, @@ -135,6 +139,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 13, 14, @@ -165,6 +170,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot index 5966311982a..8e567228bb6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 4, 15, @@ -94,6 +96,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -114,6 +117,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -126,6 +130,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 34, 45, @@ -202,6 +207,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot index 4fedf82502f..401984a4aaf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 21, @@ -76,6 +78,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot index 802112c2720..389e140fdc1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 23, 26, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot index 31ea3c38408..50c2a742993 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot index e2422bfd330..fc9554a35b2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript declare enum.src 1`] = ` Object { "body": Array [ Object { + "const": false, "declare": true, "id": Object { "loc": Object { @@ -17,6 +18,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 13, 16, @@ -35,6 +37,7 @@ Object { }, "members": Array [ Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -47,6 +50,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 23, 26, @@ -70,6 +74,7 @@ Object { "type": "TSEnumMember", }, Object { + "computed": false, "id": Object { "loc": Object { "end": Object { @@ -82,6 +87,7 @@ Object { }, }, "name": "Baz", + "optional": false, "range": Array [ 32, 35, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot index 2eceb689110..8c3b9bd907f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 17, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot index 76a90b34fff..15a936cba25 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot @@ -35,6 +35,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 18, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot index b00d347e536..d014d44b687 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot @@ -23,6 +23,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -35,6 +36,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 15, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot index c3849037460..2e74ae894d3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot @@ -23,6 +23,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -35,6 +36,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 18, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot index e7aaef933ca..58f9e7a492f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 13, 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot index c86c2452896..e0e7afa797a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 12, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot index 805be00cc76..d63d43f8cda 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot @@ -44,6 +44,7 @@ Object { }, }, "name": "configurable", + "optional": false, "range": Array [ 19, 31, @@ -96,6 +97,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 47, 48, @@ -167,6 +169,7 @@ Object { }, }, "name": "_x", + "optional": false, "range": Array [ 65, 67, @@ -262,6 +265,7 @@ Object { }, }, "name": "Point", + "optional": false, "range": Array [ 6, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot index e977890dec4..7a5cbd0fecf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 25, 28, @@ -56,6 +57,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 25, 34, @@ -102,6 +104,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 19, 22, @@ -154,6 +157,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 53, 56, @@ -225,6 +229,7 @@ Object { }, }, "name": "_bar", + "optional": false, "range": Array [ 73, 77, @@ -320,6 +325,7 @@ Object { }, }, "name": "Other", + "optional": false, "range": Array [ 6, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot index 8eb7ac9e21c..7fb415efb90 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "hidden", + "optional": false, "range": Array [ 15, 21, @@ -57,6 +58,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 30, 31, @@ -128,6 +130,7 @@ Object { }, }, "name": "_z", + "optional": false, "range": Array [ 48, 50, @@ -223,6 +226,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot index 604fffa67a5..5ff87d8244c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "adminonly", + "optional": false, "range": Array [ 18, 27, @@ -57,6 +58,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 43, 44, @@ -129,6 +131,7 @@ Object { }, }, "name": "_y", + "optional": false, "range": Array [ 63, 65, @@ -168,6 +171,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 68, 69, @@ -235,6 +239,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 45, 46, @@ -278,6 +283,7 @@ Object { }, }, "name": "User", + "optional": false, "range": Array [ 6, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot index 585a6f8ccd1..1fbb0a25917 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot @@ -52,6 +52,7 @@ Object { }, }, "name": "selector", + "optional": false, "range": Array [ 17, 25, @@ -70,6 +71,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 17, 32, @@ -116,6 +118,7 @@ Object { }, }, "name": "Component", + "optional": false, "range": Array [ 1, 10, @@ -168,6 +171,7 @@ Object { }, }, "name": "FooComponent", + "optional": false, "range": Array [ 43, 55, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot index 4a4f520daef..05cbc445ddf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot @@ -36,6 +36,7 @@ Object { }, }, "name": "sealed", + "optional": false, "range": Array [ 1, 7, @@ -71,6 +72,7 @@ Object { }, }, "name": "Qux", + "optional": false, "range": Array [ 14, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot index 81ff4dcfe3d..a91144b6752 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 12, 23, @@ -94,6 +95,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 25, 26, @@ -117,7 +119,7 @@ Object { "type": "Decorator", }, ], - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 34, @@ -128,7 +130,7 @@ Object { "line": 2, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -141,6 +143,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 35, 44, @@ -185,8 +188,8 @@ Object { 24, 44, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, ], @@ -226,6 +229,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot index 031962dfb27..481ab31bcda 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "sealed", + "optional": false, "range": Array [ 1, 7, @@ -72,6 +73,7 @@ Object { }, }, "name": "Qux", + "optional": false, "range": Array [ 29, 32, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot index f3b1a4c1ed5..8100149b1b6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot @@ -38,6 +38,7 @@ Object { }, }, "name": "sealed", + "optional": false, "range": Array [ 1, 7, @@ -73,6 +74,7 @@ Object { }, }, "name": "Qux", + "optional": false, "range": Array [ 21, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot index 108b09f249c..6342ea52eb7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot @@ -44,6 +44,7 @@ Object { }, }, "name": "onlyRead", + "optional": false, "range": Array [ 15, 23, @@ -96,6 +97,7 @@ Object { }, }, "name": "instanceMethod", + "optional": false, "range": Array [ 35, 49, @@ -190,6 +192,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot index c3429eb4f45..bcc14b2229f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot @@ -44,6 +44,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 15, 18, @@ -96,6 +97,7 @@ Object { }, }, "name": "staticMethod", + "optional": false, "range": Array [ 37, 49, @@ -190,6 +192,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot index c73b273260c..71b92b42d93 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "onlyRead", + "optional": false, "range": Array [ 15, 23, @@ -57,6 +58,7 @@ Object { }, }, "name": "instanceMethod", + "optional": false, "range": Array [ 28, 42, @@ -151,6 +153,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot index 9afc61f6df0..889e40e00ad 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 15, 18, @@ -57,6 +58,7 @@ Object { }, }, "name": "staticMethod", + "optional": false, "range": Array [ 30, 42, @@ -151,6 +153,7 @@ Object { }, }, "name": "D", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot index 49db6673b5a..ce780c9e900 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -115,6 +116,7 @@ Object { }, }, "name": "special", + "optional": false, "range": Array [ 19, 26, @@ -168,6 +170,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 35, 38, @@ -185,6 +188,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 33, 45, @@ -262,6 +266,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot index 400c54bbc48..c66e118f659 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 20, 31, @@ -92,6 +93,7 @@ Object { }, }, "name": "title", + "optional": false, "range": Array [ 86, 91, @@ -143,6 +145,7 @@ Object { }, }, "name": "config", + "optional": false, "range": Array [ 94, 100, @@ -162,6 +165,7 @@ Object { }, }, "name": "title", + "optional": false, "range": Array [ 101, 106, @@ -240,6 +244,7 @@ Object { }, }, "name": "APP_CONFIG", + "optional": false, "range": Array [ 40, 50, @@ -259,6 +264,7 @@ Object { }, }, "name": "Inject", + "optional": false, "range": Array [ 33, 39, @@ -310,6 +316,7 @@ Object { }, }, "name": "config", + "optional": false, "range": Array [ 52, 69, @@ -359,6 +366,7 @@ Object { }, }, "name": "AppConfig", + "optional": false, "range": Array [ 60, 69, @@ -406,6 +414,7 @@ Object { }, }, "name": "Service", + "optional": false, "range": Array [ 6, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot index 237d9442521..4c9cf5aed16 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 16, 19, @@ -115,6 +116,7 @@ Object { }, }, "name": "special", + "optional": false, "range": Array [ 21, 28, @@ -166,6 +168,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 35, 46, @@ -243,6 +246,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot index 6e982f368f3..1c08ec28f2c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 29, 32, @@ -115,6 +116,7 @@ Object { }, }, "name": "special", + "optional": false, "range": Array [ 34, 41, @@ -166,6 +168,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 48, 59, @@ -243,6 +246,7 @@ Object { }, }, "name": "StaticFoo", + "optional": false, "range": Array [ 6, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot index 9e20b12a095..081f65f0b15 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "greet", + "optional": false, "range": Array [ 20, 25, @@ -97,6 +98,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 78, 82, @@ -203,6 +205,7 @@ Object { }, }, "name": "required", + "optional": false, "range": Array [ 27, 35, @@ -237,6 +240,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 36, 48, @@ -314,6 +318,7 @@ Object { }, }, "name": "Greeter", + "optional": false, "range": Array [ 6, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot index e12ff3fa819..f05264c824f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "greet", + "optional": false, "range": Array [ 33, 38, @@ -97,6 +98,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 91, 95, @@ -203,6 +205,7 @@ Object { }, }, "name": "required", + "optional": false, "range": Array [ 40, 48, @@ -237,6 +240,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 49, 61, @@ -314,6 +318,7 @@ Object { }, }, "name": "StaticGreeter", + "optional": false, "range": Array [ 6, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot index 69ad340de2a..95da5564e38 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -115,6 +116,7 @@ Object { }, }, "name": "special", + "optional": false, "range": Array [ 19, 26, @@ -165,6 +167,7 @@ Object { "line": 2, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -180,6 +183,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 35, 38, @@ -198,6 +202,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 35, 38, @@ -216,6 +221,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 35, 38, @@ -301,6 +307,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot index 7f77443e46d..cde63689bf3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 14, 17, @@ -91,6 +92,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 36, 39, @@ -133,6 +135,7 @@ Object { }, }, "name": "special", + "optional": false, "range": Array [ 19, 26, @@ -183,6 +186,7 @@ Object { "line": 2, }, }, + "optional": false, "range": Array [ 18, 44, @@ -260,6 +264,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot index 2dec783b8b4..dacdd1bbe9d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot @@ -25,6 +25,7 @@ Object { }, }, "name": "Input", + "optional": false, "range": Array [ 27, 32, @@ -77,6 +78,7 @@ Object { }, }, "name": "data", + "optional": false, "range": Array [ 35, 39, @@ -122,6 +124,7 @@ Object { }, }, "name": "Output", + "optional": false, "range": Array [ 46, 52, @@ -174,6 +177,7 @@ Object { }, }, "name": "click", + "optional": false, "range": Array [ 59, 64, @@ -212,6 +216,7 @@ Object { }, }, "name": "EventEmitter", + "optional": false, "range": Array [ 71, 83, @@ -264,6 +269,7 @@ Object { }, }, "name": "SomeComponent", + "optional": false, "range": Array [ 6, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot index 53043405565..c518c2a1634 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot @@ -45,6 +45,7 @@ Object { }, }, "name": "configurable", + "optional": false, "range": Array [ 15, 27, @@ -97,6 +98,7 @@ Object { }, }, "name": "prop1", + "optional": false, "range": Array [ 41, 46, @@ -162,6 +164,7 @@ Object { }, }, "name": "configurable", + "optional": false, "range": Array [ 54, 66, @@ -214,6 +217,7 @@ Object { }, }, "name": "prop2", + "optional": false, "range": Array [ 85, 90, @@ -269,6 +273,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot index 95ccdf95a30..b603703a3f1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, @@ -58,6 +59,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 19, 20, @@ -101,6 +103,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 27, 30, @@ -136,6 +139,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 35, 36, @@ -191,6 +195,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot index 60c9860bfd0..21c2a88e421 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot @@ -23,6 +23,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 15, 18, @@ -58,6 +59,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 26, 27, @@ -101,6 +103,7 @@ Object { }, }, "name": "qux", + "optional": false, "range": Array [ 34, 37, @@ -136,6 +139,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 49, 50, @@ -191,6 +195,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot index 5e34a9b63ab..1259e8fb452 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -54,6 +55,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 29, 32, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot index 092baa9e06c..1bcebf20a9d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot index feca427c9c8..8b505ce1f7d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 6, 9, @@ -67,6 +68,7 @@ Object { }, }, "name": "Bar", + "optional": false, "range": Array [ 18, 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot index 3b9edb135b2..89b2d8c22a2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot @@ -34,6 +34,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -54,6 +55,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 19, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot index 5e2931242c1..f919ef83539 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot @@ -4,6 +4,8 @@ exports[`typescript errorRecovery decorator-on-enum-declaration.src 1`] = ` Object { "body": Array [ Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +18,7 @@ Object { }, }, "name": "E", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot index 2fd5ad0bea3..e5cd4caafa8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot index ef5878c412f..20b2c0dbb9c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -34,6 +35,7 @@ Object { }, }, "name": "M", + "optional": false, "range": Array [ 18, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot index da9ce1e5a23..d86a4d688f5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 14, 15, @@ -60,6 +62,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot index 5a448875170..3b3e6a1d3f6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot index ccbb6a7f946..735f9395b06 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 4, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot index 91099f034a0..447dda2e625 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 16, @@ -67,6 +69,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 11, 14, @@ -112,6 +115,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot index e71b38e8867..6d21ccd6cd9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f1", + "optional": false, "range": Array [ 9, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot index 235dee9fe7c..dd754eecd79 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 14, 25, @@ -132,6 +133,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot index beeaaea48bc..246ff632a4d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, @@ -99,6 +101,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot index bb110cf0575..30cfd446835 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 18, 22, @@ -37,11 +39,14 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [], "range": Array [ 18, 27, ], + "readonly": false, + "static": false, "type": "TSMethodSignature", "typeParameters": Object { "loc": Object { @@ -79,6 +84,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -91,6 +97,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot index 3233906e5cc..1725366854b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "test", + "optional": false, "range": Array [ 14, 18, @@ -132,6 +133,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 6, 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot index 56205b0a1c6..a89233bc02c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot @@ -37,6 +37,7 @@ Object { }, }, "name": "f1", + "optional": false, "range": Array [ 9, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot index 5bb1a9402e3..24bb254114f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot @@ -6,6 +6,8 @@ Object { Object { "assertions": Array [], "declaration": Object { + "const": false, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +20,7 @@ Object { }, }, "name": "X", + "optional": false, "range": Array [ 68, 69, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot index d6d54c70978..44b74a75f6b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript errorRecovery index-signature-parameters.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -50,6 +52,7 @@ Object { }, "members": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 33, @@ -73,6 +76,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 25, @@ -125,6 +129,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 27, 36, @@ -170,6 +175,8 @@ Object { 15, 46, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot index 8c89cc0d497..c3b28cafe49 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -34,6 +35,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot index 65868666d64..97b1a4edb45 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -34,6 +35,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot index 4df063e4206..c7a8e6d3f4a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot @@ -31,6 +31,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 37, @@ -76,6 +77,8 @@ Object { 18, 47, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -129,6 +132,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot index 098450d4617..0b8b8eafe58 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "accessibility": "private", + "export": false, "loc": Object { "end": Object { "column": 32, @@ -31,6 +32,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 27, 38, @@ -76,6 +78,8 @@ Object { 18, 48, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -129,6 +133,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +146,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot index b2d65b5bfe2..a9c35515859 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "accessibility": "protected", + "export": false, "loc": Object { "end": Object { "column": 34, @@ -31,6 +32,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 29, 40, @@ -76,6 +78,8 @@ Object { 18, 50, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -129,6 +133,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +146,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot index 5400ac755f7..82cbdc6e9ba 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "accessibility": "public", + "export": false, "loc": Object { "end": Object { "column": 31, @@ -31,6 +32,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 37, @@ -76,6 +78,8 @@ Object { 18, 47, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -129,6 +133,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +146,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot index af0c31ee518..69b2893649c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 31, @@ -30,6 +31,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 26, 37, @@ -75,6 +77,7 @@ Object { 18, 47, ], + "readonly": false, "static": true, "type": "TSIndexSignature", "typeAnnotation": Object { @@ -129,6 +132,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot index 49552e632b9..bd69acdae02 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot @@ -21,6 +21,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 27, 28, @@ -38,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -51,6 +53,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 29, 40, @@ -96,6 +99,7 @@ Object { 20, 48, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -130,6 +134,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -149,6 +154,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +167,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot index 0b2fc02bfd5..5700d38610e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot @@ -9,6 +9,7 @@ Object { Object { "accessibility": "private", "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 28, 29, @@ -38,6 +40,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -51,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 30, 41, @@ -96,6 +100,7 @@ Object { 20, 49, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -130,6 +135,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -149,6 +155,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +168,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot index 1826aeadf4e..e2478b39c3f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot @@ -9,6 +9,7 @@ Object { Object { "accessibility": "protected", "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 28, 29, @@ -38,6 +40,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -51,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 30, 41, @@ -96,6 +100,7 @@ Object { 18, 49, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -130,6 +135,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -149,6 +155,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +168,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot index 114bd1a7811..e606656e9bb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot @@ -9,6 +9,7 @@ Object { Object { "accessibility": "public", "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -21,6 +22,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 27, 28, @@ -38,6 +40,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -51,6 +54,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 29, 40, @@ -96,6 +100,7 @@ Object { 20, 48, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -130,6 +135,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -149,6 +155,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +168,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot index e1a82d8ecda..63813758551 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 27, 28, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 29, 40, @@ -130,6 +134,7 @@ Object { "type": "TSVoidKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, ], @@ -149,6 +154,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +167,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot index 8aab33054a9..c851fef96c8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "g", + "optional": false, "range": Array [ 25, 26, @@ -37,6 +39,7 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -50,6 +53,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 27, 38, @@ -95,6 +99,7 @@ Object { 18, 46, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -149,6 +154,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +167,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot index 3b83031b70b..75fa581c2f1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot @@ -22,6 +22,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "extends": Array [ Object { "expression": Object { @@ -36,6 +37,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 22, 25, @@ -71,6 +73,7 @@ Object { }, }, "name": "baz", + "optional": false, "range": Array [ 34, 37, @@ -106,6 +109,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot index 6b4120347e3..4bb6ccfeb7b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 25, 26, @@ -38,13 +39,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 18, 35, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -98,6 +99,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -110,6 +112,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot index 564a46f672d..565cebf4675 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot @@ -9,7 +9,7 @@ Object { Object { "accessibility": "private", "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -23,6 +23,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 26, 27, @@ -39,13 +40,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 18, 36, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -99,6 +100,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -111,6 +113,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot index 0694c631cf6..5f68cecd550 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot @@ -9,7 +9,7 @@ Object { Object { "accessibility": "protected", "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -23,6 +23,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 28, 29, @@ -39,13 +40,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 18, 38, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -99,6 +100,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -111,6 +113,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot index 763f3da502a..3a78b3c4fe8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot @@ -9,7 +9,7 @@ Object { Object { "accessibility": "public", "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -23,6 +23,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 27, 28, @@ -39,13 +40,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 20, 37, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -99,6 +100,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -111,6 +113,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot index a44ae0cfd07..f4ce9adaf48 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot @@ -8,7 +8,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -22,6 +22,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 25, 26, @@ -38,12 +39,12 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 18, 35, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "TSPropertySignature", "typeAnnotation": Object { @@ -98,6 +99,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -110,6 +112,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot index ea3ec222569..c1cda6ca32a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot @@ -8,7 +8,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": Object { "loc": Object { "end": Object { @@ -40,6 +40,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 18, 21, @@ -56,13 +57,13 @@ Object { "line": 2, }, }, - "optional": undefined, + "optional": false, "range": Array [ 18, 36, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -116,6 +117,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -128,6 +130,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot index 9859019dc2f..b47556debb8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 25, @@ -76,6 +77,8 @@ Object { 18, 41, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { @@ -129,6 +132,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot index 860e640c47d..f4648229243 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 4, @@ -67,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot index a1cbd74ee1a..799389415a2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot @@ -16,6 +16,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -31,6 +32,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, @@ -49,6 +51,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 2, 4, @@ -67,6 +70,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 2, 3, diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/solo-const.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/solo-const.src.ts.shot index b383b33615a..1b638349b82 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/solo-const.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/solo-const.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declarations": Array [], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot index d980c2f742e..b14be6df928 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot @@ -18,6 +18,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, @@ -80,6 +81,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 4, 5, @@ -127,6 +129,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 10, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot index 25904ece493..263c706208c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot @@ -17,6 +17,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 0, 1, @@ -78,6 +79,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 2, 3, @@ -125,6 +127,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -186,6 +189,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 10, 11, @@ -257,6 +261,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 14, 15, @@ -305,6 +310,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 19, 20, @@ -366,6 +372,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 21, 22, @@ -438,6 +445,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 25, 26, @@ -488,6 +496,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 32, 33, @@ -549,6 +558,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 34, 35, @@ -620,6 +630,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 38, 39, @@ -714,6 +725,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 47, 48, @@ -733,6 +745,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 50, 51, @@ -816,6 +829,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 52, 53, @@ -888,6 +902,7 @@ Object { }, }, "name": "d", + "optional": false, "range": Array [ 56, 57, @@ -936,6 +951,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 67, 68, @@ -997,6 +1013,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 69, 70, @@ -1068,6 +1085,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 73, 74, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot index 481bb783af7..3fbe6752052 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 6, 7, @@ -38,6 +40,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 14, 15, @@ -99,6 +102,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 16, 17, @@ -132,6 +136,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot index e5c1aeba3c9..9177b63c6ca 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot @@ -31,6 +31,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, @@ -50,6 +51,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 5, 8, @@ -118,6 +120,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 9, 10, @@ -194,6 +197,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 15, 18, @@ -213,6 +217,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 20, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot index b6f11be9a43..d7b18f95e65 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot @@ -73,6 +73,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 0, 3, @@ -120,6 +121,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 4, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot index eca74134194..c1aecec8f51 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot @@ -66,6 +66,7 @@ Object { }, }, "name": "fs", + "optional": false, "range": Array [ 41, 43, @@ -99,6 +100,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot index 1d6f5b2efda..c454a33c531 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot @@ -25,6 +25,7 @@ Object { }, }, "name": "select", + "optional": false, "range": Array [ 41, 47, @@ -54,6 +55,7 @@ Object { }, }, "name": "selector", + "optional": false, "range": Array [ 48, 64, @@ -143,6 +145,7 @@ Object { }, }, "name": "Selection", + "optional": false, "range": Array [ 67, 76, @@ -226,6 +229,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -238,6 +242,7 @@ Object { }, }, "name": "d3", + "optional": false, "range": Array [ 18, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot index 08ed9df51fb..15f530aef36 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot @@ -26,6 +26,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -38,6 +39,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 36, 42, @@ -80,6 +82,7 @@ Object { "type": "TSModuleBlock", }, "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -92,6 +95,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 74, 80, @@ -145,6 +149,7 @@ Object { }, }, "name": "global", + "optional": false, "range": Array [ 8, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot index 70ff82a2ec7..5ec4388c95f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot @@ -24,6 +24,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 52, 58, @@ -130,6 +131,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 62, 63, @@ -171,6 +173,7 @@ Object { }, }, "name": "C", + "optional": false, "range": Array [ 40, 41, @@ -246,6 +249,7 @@ Object { }, }, "name": "bar", + "optional": false, "range": Array [ 102, 105, @@ -303,6 +307,8 @@ Object { ], "type": "TSModuleBlock", }, + "declare": false, + "global": false, "id": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot index 2284e4afed7..24c2a857853 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot @@ -11,6 +11,7 @@ Object { "declaration": Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -23,6 +24,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 27, 28, @@ -65,6 +67,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -120,6 +123,7 @@ Object { }, }, "name": "constructor", + "optional": false, "range": Array [ 78, 89, @@ -180,7 +184,7 @@ Object { "params": Array [ Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 36, @@ -191,7 +195,7 @@ Object { "line": 5, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -204,6 +208,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 97, 106, @@ -248,13 +253,13 @@ Object { 90, 106, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, Object { "accessibility": "public", - "export": undefined, + "export": false, "loc": Object { "end": Object { "column": 54, @@ -265,7 +270,7 @@ Object { "line": 5, }, }, - "override": undefined, + "override": false, "parameter": Object { "loc": Object { "end": Object { @@ -278,6 +283,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 115, 124, @@ -322,8 +328,8 @@ Object { 108, 124, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSParameterProperty", }, ], @@ -363,6 +369,7 @@ Object { }, }, "name": "Point", + "optional": false, "range": Array [ 62, 67, @@ -417,7 +424,7 @@ Object { "body": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -431,6 +438,7 @@ Object { }, }, "name": "name", + "optional": false, "range": Array [ 200, 204, @@ -447,13 +455,13 @@ Object { "line": 9, }, }, - "optional": undefined, + "optional": false, "range": Array [ 200, 213, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -507,6 +515,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -519,6 +528,7 @@ Object { }, }, "name": "Id", + "optional": false, "range": Array [ 183, 185, @@ -577,6 +587,8 @@ Object { ], "type": "TSModuleBlock", }, + "declare": false, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -589,6 +601,7 @@ Object { }, }, "name": "B", + "optional": false, "range": Array [ 154, 155, @@ -647,6 +660,8 @@ Object { ], "type": "TSModuleBlock", }, + "declare": false, + "global": false, "id": Object { "loc": Object { "end": Object { @@ -659,6 +674,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 7, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/shorthand-ambient-module-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/shorthand-ambient-module-declaration.src.ts.shot index 37b859d967f..948f990fb52 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/shorthand-ambient-module-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/shorthand-ambient-module-declaration.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declare": true, + "global": false, "id": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot index 43f913bf707..94e376ab2ce 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types array-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot index 693f5d114a9..adae54695fa 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types conditional-infer-nested.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Unpacked", + "optional": false, "range": Array [ 5, 13, @@ -66,6 +68,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, @@ -117,6 +120,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 38, 39, @@ -176,6 +180,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 53, 54, @@ -226,6 +231,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 69, 70, @@ -269,6 +275,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 83, 84, @@ -305,6 +312,7 @@ Object { }, }, "name": "Promise", + "optional": false, "range": Array [ 93, 100, @@ -365,6 +373,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 107, 108, @@ -415,6 +424,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 124, 125, @@ -465,6 +475,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 112, 113, @@ -517,6 +528,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 73, 74, @@ -569,6 +581,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 45, 46, @@ -617,6 +630,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 14, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot index 48cb6977cbf..28c9f19fd55 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types conditional-infer-simple.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, @@ -66,6 +68,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 14, 15, @@ -88,7 +91,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -102,6 +105,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 26, 27, @@ -118,13 +122,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 26, 37, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -184,6 +188,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 35, 36, @@ -202,7 +207,7 @@ Object { }, Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -216,6 +221,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 38, 39, @@ -232,13 +238,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 38, 48, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -298,6 +304,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 47, 48, @@ -380,6 +387,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 53, 54, @@ -428,6 +436,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 9, 10, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot index f4a26f22e90..a355ae94131 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types conditional-infer-with-constraint.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "X3", + "optional": false, "range": Array [ 5, 7, @@ -66,6 +68,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 13, 14, @@ -134,6 +137,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 30, 31, @@ -224,6 +228,7 @@ Object { }, }, "name": "MustBeNumber", + "optional": false, "range": Array [ 50, 62, @@ -270,6 +275,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 63, 64, @@ -326,6 +332,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 8, 9, @@ -348,6 +355,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -360,6 +368,7 @@ Object { }, }, "name": "X4", + "optional": false, "range": Array [ 80, 82, @@ -410,6 +419,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 88, 89, @@ -478,6 +488,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 105, 106, @@ -550,6 +561,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 129, 130, @@ -640,6 +652,7 @@ Object { }, }, "name": "MustBeNumber", + "optional": false, "range": Array [ 149, 161, @@ -686,6 +699,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 162, 163, @@ -742,6 +756,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 83, 84, @@ -764,6 +779,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -776,6 +792,7 @@ Object { }, }, "name": "X5", + "optional": false, "range": Array [ 179, 181, @@ -826,6 +843,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 187, 188, @@ -894,6 +912,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 204, 205, @@ -950,6 +969,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 228, 229, @@ -1040,6 +1060,7 @@ Object { }, }, "name": "MustBeNumber", + "optional": false, "range": Array [ 233, 245, @@ -1086,6 +1107,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 246, 247, @@ -1142,6 +1164,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 182, 183, @@ -1164,6 +1187,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -1176,6 +1200,7 @@ Object { }, }, "name": "X6", + "optional": false, "range": Array [ 263, 265, @@ -1226,6 +1251,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 271, 272, @@ -1278,6 +1304,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 288, 289, @@ -1350,6 +1377,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 297, 298, @@ -1440,6 +1468,7 @@ Object { }, }, "name": "MustBeNumber", + "optional": false, "range": Array [ 317, 329, @@ -1486,6 +1515,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 330, 331, @@ -1542,6 +1572,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 266, 267, @@ -1564,6 +1595,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -1576,6 +1608,7 @@ Object { }, }, "name": "X7", + "optional": false, "range": Array [ 347, 349, @@ -1626,6 +1659,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 355, 356, @@ -1694,6 +1728,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 372, 373, @@ -1766,6 +1801,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 396, 397, @@ -1856,6 +1892,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 416, 417, @@ -1904,6 +1941,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 350, 351, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot index 9534b875bd9..c830abdd0ab 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types conditional-infer.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Element", + "optional": false, "range": Array [ 5, 12, @@ -66,6 +68,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 18, 19, @@ -117,6 +120,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 35, 36, @@ -175,6 +179,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 46, 47, @@ -225,6 +230,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 42, 43, @@ -273,6 +279,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 13, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot index 35916e82f2e..063a7773efb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 45, @@ -144,6 +146,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot index 6c9a3014448..b1bcda45eaf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 47, @@ -144,6 +146,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot index 1b50ff5409d..4785446dcbd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 30, @@ -112,6 +114,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot index 83a2680a653..a050b735c76 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 21, @@ -112,6 +114,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot index 43b72d5dff0..51f38dc8b1c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 25, @@ -64,6 +66,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 15, 19, @@ -113,6 +116,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 18, 19, @@ -172,6 +176,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 24, 25, @@ -220,6 +225,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 12, 13, @@ -261,6 +267,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot index e74c46c3f4c..3ff8927ee50 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 30, @@ -67,6 +69,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 7, 12, @@ -166,6 +169,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot index e001f2adb02..95b17a6fa4c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 35, @@ -65,6 +67,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 15, 16, @@ -81,6 +84,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 26, @@ -199,6 +203,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot index 03af1a6c2c0..b23086e3f9e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 42, @@ -64,6 +66,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 21, @@ -218,6 +221,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot index 3d0a9285487..ea89aa54803 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 21, @@ -63,6 +65,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 15, @@ -112,6 +115,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 14, 15, @@ -171,6 +175,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 20, 21, @@ -219,6 +224,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 8, 9, @@ -260,6 +266,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot index 8f523988734..5f96d0a82bc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 24, @@ -67,6 +69,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 7, 12, @@ -165,6 +168,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot index 230bb8732e3..add53f840b5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types function-with-array-destruction.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -63,6 +65,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -80,6 +83,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 12, 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot index b76768a62f8..fafecbeb3c8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types function-with-object-destruction.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -60,6 +62,7 @@ Object { "line": 1, }, }, + "optional": false, "properties": Array [ Object { "computed": false, @@ -75,6 +78,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, @@ -93,6 +97,7 @@ Object { }, }, "method": false, + "optional": false, "range": Array [ 13, 14, @@ -111,6 +116,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 13, 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot index deab56c6e00..babfe837671 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 31, @@ -64,6 +66,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 11, 12, @@ -80,6 +83,7 @@ Object { "line": 1, }, }, + "optional": false, "range": Array [ 8, 22, @@ -198,6 +202,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot index 92d4540bdcb..3df4a60a0e4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 29, @@ -63,6 +65,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 8, 20, @@ -164,6 +167,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot index cee9ccaf884..7e3cb9a1644 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "f", + "optional": false, "range": Array [ 4, 38, @@ -63,6 +65,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 17, @@ -217,6 +220,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot index 5017294dedb..f3598241a43 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types index-signature-readonly.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -50,6 +52,7 @@ Object { }, "members": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 33, @@ -73,6 +76,7 @@ Object { }, }, "name": "key", + "optional": false, "range": Array [ 25, 36, @@ -119,6 +123,7 @@ Object { 46, ], "readonly": true, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot index 41c939be2fe..d0ca8c7ea59 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types index-signature-without-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -50,6 +52,7 @@ Object { }, "members": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 14, @@ -73,6 +76,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 25, @@ -118,6 +122,8 @@ Object { 15, 27, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", }, ], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot index 305eb29adec..0ab86fda23f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types index-signature.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 5, 8, @@ -50,6 +52,7 @@ Object { }, "members": Array [ Object { + "export": false, "loc": Object { "end": Object { "column": 22, @@ -73,6 +76,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 16, 25, @@ -118,6 +122,8 @@ Object { 15, 35, ], + "readonly": false, + "static": false, "type": "TSIndexSignature", "typeAnnotation": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot index 460df7a1501..4a2a5724f19 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 11, @@ -68,6 +70,7 @@ Object { }, }, "name": "K", + "optional": false, "range": Array [ 9, 10, @@ -114,6 +117,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 7, 8, @@ -148,6 +152,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot index 02601964ea1..6a4ae701a98 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, }, "name": "size", + "optional": false, "range": Array [ 24, 28, @@ -37,11 +39,13 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [], "range": Array [ 20, 39, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -76,10 +80,12 @@ Object { "type": "TSNumberKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -92,6 +98,7 @@ Object { }, }, "name": "size", + "optional": false, "range": Array [ 46, 50, @@ -109,6 +116,7 @@ Object { "line": 3, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -122,6 +130,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 51, 83, @@ -220,6 +229,8 @@ Object { 42, 85, ], + "readonly": false, + "static": false, "type": "TSMethodSignature", }, ], @@ -239,6 +250,7 @@ Object { ], "type": "TSInterfaceBody", }, + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -251,6 +263,7 @@ Object { }, }, "name": "Thing", + "optional": false, "range": Array [ 10, 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot index 7e56c87cf8b..9645ebca083 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types intersection-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "LinkedList", + "optional": false, "range": Array [ 5, 15, @@ -82,6 +84,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 21, 22, @@ -104,7 +107,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -118,6 +121,7 @@ Object { }, }, "name": "next", + "optional": false, "range": Array [ 27, 31, @@ -134,13 +138,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 27, 46, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -186,6 +190,7 @@ Object { }, }, "name": "LinkedList", + "optional": false, "range": Array [ 33, 43, @@ -232,6 +237,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 44, 45, @@ -297,6 +303,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 16, 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot index 3e1f064339e..2df09531bff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 9, @@ -114,6 +116,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot index 724da7b1507..7b3c2a723a0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 8, @@ -95,6 +97,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot index 137bbede45a..54348ec0097 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 12, @@ -95,6 +97,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot index ad9603c0953..92c0f10edf6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types mapped-named-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Test", + "optional": false, "range": Array [ 5, 9, @@ -118,6 +120,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 44, 45, @@ -164,6 +167,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 42, 43, @@ -224,6 +228,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 31, 32, @@ -257,6 +262,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 20, 21, @@ -309,6 +315,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 10, 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot index b4f571e2c11..72032757360 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "map", + "optional": false, "range": Array [ 4, 46, @@ -117,6 +119,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 22, 23, @@ -151,6 +154,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot index f3ba73b4aa5..d0bed79850b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "map", + "optional": false, "range": Array [ 4, 47, @@ -117,6 +119,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 22, 23, @@ -151,6 +154,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot index cce96c961cc..15dcbcac19a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "map", + "optional": false, "range": Array [ 4, 45, @@ -117,6 +119,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 21, 22, @@ -151,6 +154,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot index 27b7b9c9c4d..45162bbc6a7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "map", + "optional": false, "range": Array [ 4, 27, @@ -98,6 +100,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 12, 13, @@ -132,6 +135,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot index 1689f5647b9..2c021ac36ca 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "map", + "optional": false, "range": Array [ 4, 35, @@ -115,6 +117,7 @@ Object { }, }, "name": "P", + "optional": false, "range": Array [ 12, 13, @@ -149,6 +152,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot index be471583c51..b3d41ce3a3b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types nested-types.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot index df6ae88ba5d..bf3f012bce6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types object-literal-type-with-accessors.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Thing", + "optional": false, "range": Array [ 5, 10, @@ -51,6 +53,7 @@ Object { "members": Array [ Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -63,6 +66,7 @@ Object { }, }, "name": "size", + "optional": false, "range": Array [ 21, 25, @@ -80,11 +84,13 @@ Object { "line": 2, }, }, + "optional": false, "params": Array [], "range": Array [ 17, 36, ], + "readonly": false, "returnType": Object { "loc": Object { "end": Object { @@ -119,10 +125,12 @@ Object { "type": "TSNumberKeyword", }, }, + "static": false, "type": "TSMethodSignature", }, Object { "computed": false, + "export": false, "key": Object { "loc": Object { "end": Object { @@ -135,6 +143,7 @@ Object { }, }, "name": "size", + "optional": false, "range": Array [ 43, 47, @@ -152,6 +161,7 @@ Object { "line": 3, }, }, + "optional": false, "params": Array [ Object { "loc": Object { @@ -165,6 +175,7 @@ Object { }, }, "name": "value", + "optional": false, "range": Array [ 48, 80, @@ -263,6 +274,8 @@ Object { 39, 82, ], + "readonly": false, + "static": false, "type": "TSMethodSignature", }, ], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot index 26e233652d4..1095e179b93 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types optional-variance-in-and-out.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Mapper", + "optional": false, "range": Array [ 5, 11, @@ -61,6 +63,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 28, 32, @@ -110,6 +113,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 31, 32, @@ -169,6 +173,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 37, 38, @@ -218,6 +223,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 15, 16, @@ -257,6 +263,7 @@ Object { }, }, "name": "U", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot index 9639322188c..0f3de7f966a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types optional-variance-in-out.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Processor", + "optional": false, "range": Array [ 5, 14, @@ -61,6 +63,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 28, 32, @@ -110,6 +113,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 31, 32, @@ -169,6 +173,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 37, 38, @@ -218,6 +223,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 22, 23, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot index bf2e85f702f..8eb44012f72 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types optional-variance-in.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Consumer", + "optional": false, "range": Array [ 5, 13, @@ -61,6 +63,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 23, 27, @@ -110,6 +113,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 26, 27, @@ -199,6 +203,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 17, 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot index 04c6769229f..4e43bc37b0f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types optional-variance-out.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Provider", + "optional": false, "range": Array [ 5, 13, @@ -97,6 +99,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 29, 30, @@ -146,6 +149,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 18, 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot index e029fb99516..5657e9286d1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types parenthesized-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot index 8e22e5de774..7a173035cd6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 27, @@ -67,6 +69,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 7, 12, @@ -113,6 +116,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 13, 18, @@ -184,6 +188,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot index 87577d72d64..77b6125af2e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 20, @@ -67,6 +69,7 @@ Object { }, }, "name": "Array", + "optional": false, "range": Array [ 7, 12, @@ -130,6 +133,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot index 3f0393901da..0b71385f61c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 8, @@ -67,6 +69,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 7, 8, @@ -95,6 +98,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot index 36df58b13db..c4ccf287de0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types template-literal-type-1.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 5, 6, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot index f8832d8c8ad..41d2f777a04 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types template-literal-type-2.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 5, 6, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot index c4d2582a33c..462412fd356 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types template-literal-type-3.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Color", + "optional": false, "range": Array [ 5, 10, @@ -130,6 +132,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -142,6 +145,7 @@ Object { }, }, "name": "Quantity", + "optional": false, "range": Array [ 34, 42, @@ -256,6 +260,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -268,6 +273,7 @@ Object { }, }, "name": "SeussFish", + "optional": false, "range": Array [ 65, 74, @@ -397,6 +403,7 @@ Object { }, }, "name": "Quantity", + "optional": false, "range": Array [ 80, 88, @@ -433,6 +440,7 @@ Object { }, }, "name": "Color", + "optional": false, "range": Array [ 91, 96, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot index 44900a50b51..2bb36fdbf19 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types template-literal-type-4.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "EnthusiasticGreeting", + "optional": false, "range": Array [ 5, 25, @@ -194,6 +196,7 @@ Object { }, }, "name": "Uppercase", + "optional": false, "range": Array [ 49, 58, @@ -240,6 +243,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 59, 60, @@ -284,6 +288,7 @@ Object { }, }, "name": "Lowercase", + "optional": false, "range": Array [ 67, 76, @@ -330,6 +335,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 77, 78, @@ -374,6 +380,7 @@ Object { }, }, "name": "Capitalize", + "optional": false, "range": Array [ 85, 95, @@ -420,6 +427,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 96, 97, @@ -464,6 +472,7 @@ Object { }, }, "name": "Uncapitalize", + "optional": false, "range": Array [ 104, 116, @@ -510,6 +519,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 117, 118, @@ -582,6 +592,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 26, 27, @@ -604,6 +615,7 @@ Object { }, }, Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -616,6 +628,7 @@ Object { }, }, "name": "HELLO", + "optional": false, "range": Array [ 128, 133, @@ -665,6 +678,7 @@ Object { }, }, "name": "EnthusiasticGreeting", + "optional": false, "range": Array [ 136, 156, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot index 5543bc1a3a0..4897e67010e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot @@ -22,6 +22,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 19, 20, @@ -97,6 +98,7 @@ Object { }, }, "name": "method", + "optional": false, "range": Array [ 40, 46, @@ -168,6 +170,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 85, 86, @@ -239,6 +242,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 47, 57, @@ -336,6 +340,7 @@ Object { }, }, "name": "method2", + "optional": false, "range": Array [ 102, 109, @@ -407,6 +412,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 143, 144, @@ -478,6 +484,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 110, 117, @@ -527,6 +534,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 116, 117, @@ -594,6 +602,7 @@ Object { }, }, "name": "method3", + "optional": false, "range": Array [ 160, 167, @@ -625,6 +634,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -637,6 +647,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 198, 200, @@ -687,6 +698,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 214, 215, @@ -736,6 +748,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -768,6 +781,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 228, 230, @@ -850,6 +864,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 168, 178, @@ -947,6 +962,7 @@ Object { }, }, "name": "method4", + "optional": false, "range": Array [ 248, 255, @@ -978,6 +994,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -990,6 +1007,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 283, 285, @@ -1040,6 +1058,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 299, 300, @@ -1089,6 +1108,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "var", "loc": Object { "end": Object { @@ -1121,6 +1141,7 @@ Object { }, }, "name": "fn", + "optional": false, "range": Array [ 313, 315, @@ -1203,6 +1224,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 256, 263, @@ -1252,6 +1274,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 262, 263, @@ -1318,6 +1341,7 @@ Object { }, }, "name": "staticMethod", + "optional": false, "range": Array [ 333, 345, @@ -1389,6 +1413,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 381, 382, @@ -1460,6 +1485,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 346, 353, @@ -1509,6 +1535,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 352, 353, @@ -1575,6 +1602,7 @@ Object { }, }, "name": "typeof", + "optional": false, "range": Array [ 398, 404, @@ -1699,6 +1727,7 @@ Object { }, }, "name": "this", + "optional": false, "range": Array [ 405, 412, @@ -1748,6 +1777,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 411, 412, @@ -1829,6 +1859,7 @@ Object { }, }, "name": "A", + "optional": false, "range": Array [ 6, 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot index d937da37206..a74aea61d99 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot @@ -20,6 +20,7 @@ Object { }, }, "name": "clone", + "optional": false, "range": Array [ 18, 23, @@ -183,6 +184,7 @@ Object { }, }, "name": "Message", + "optional": false, "range": Array [ 6, 13, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot index 5eafe9a264a..7601bb3bd7b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 9, @@ -77,6 +79,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot index 87f7351cba2..d34d17843fc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 53, @@ -71,6 +73,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -124,6 +127,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 19, 20, @@ -213,6 +217,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 31, 32, @@ -273,6 +278,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot index 95e5a937bed..4ab08c81988 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 34, @@ -71,6 +73,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -157,6 +160,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 22, 23, @@ -218,6 +222,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot index b62f8aacce6..bc3c60fdc47 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types tuple-named-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, @@ -69,6 +71,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 12, 13, @@ -122,6 +125,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 23, 24, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot index 0be4c086a37..a2ae40bc081 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 40, @@ -71,6 +73,7 @@ Object { }, }, "name": "a", + "optional": false, "range": Array [ 8, 9, @@ -124,6 +127,7 @@ Object { }, }, "name": "b", + "optional": false, "range": Array [ 19, 20, @@ -177,6 +181,7 @@ Object { }, }, "name": "c", + "optional": false, "range": Array [ 30, 31, @@ -237,6 +242,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot index b359d09d889..bc78ddd59eb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 44, @@ -199,6 +201,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot index 44f541f18ae..743dfcaba7d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 28, @@ -146,6 +148,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot index cde8005681a..15eca078d45 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types tuple-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot index 82b74518a24..732e3ab8d3f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 31, @@ -129,6 +131,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot index bc7f85096c5..4e6357540ec 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "obj", + "optional": false, "range": Array [ 4, 22, @@ -53,7 +55,7 @@ Object { "members": Array [ Object { "computed": false, - "export": undefined, + "export": false, "initializer": undefined, "key": Object { "loc": Object { @@ -67,6 +69,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 11, 12, @@ -83,13 +86,13 @@ Object { "line": 1, }, }, - "optional": undefined, + "optional": false, "range": Array [ 11, 20, ], - "readonly": undefined, - "static": undefined, + "readonly": false, + "static": false, "type": "TSPropertySignature", "typeAnnotation": Object { "loc": Object { @@ -153,6 +156,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot index 3b8b707334e..806165c4001 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 14, @@ -84,6 +86,7 @@ Object { }, }, "name": "T", + "optional": false, "range": Array [ 13, 14, @@ -113,6 +116,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -133,6 +137,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -145,6 +150,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 20, 36, @@ -221,6 +227,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot index c708076ab55..0582f1d82c3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "self", + "optional": false, "range": Array [ 4, 21, @@ -94,6 +96,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -114,6 +117,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -126,6 +130,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 27, 47, @@ -192,6 +197,7 @@ Object { }, }, "name": "foo", + "optional": false, "range": Array [ 44, 47, @@ -237,6 +243,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot index 4215d60c393..c407773487b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 20, @@ -53,6 +55,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 14, 15, @@ -85,6 +88,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 16, 17, @@ -148,6 +152,7 @@ Object { }, }, "name": "w", + "optional": false, "range": Array [ 18, 19, @@ -184,6 +189,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot index 43036c5b34a..ae5e8b68e4e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "x", + "optional": false, "range": Array [ 4, 17, @@ -53,6 +55,7 @@ Object { }, }, "name": "y", + "optional": false, "range": Array [ 14, 15, @@ -85,6 +88,7 @@ Object { }, }, "name": "z", + "optional": false, "range": Array [ 16, 17, @@ -130,6 +134,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot index 7caed90984d..698047c5dc6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -18,6 +19,7 @@ Object { }, }, "name": "union", + "optional": false, "range": Array [ 4, 36, @@ -129,6 +131,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -149,6 +152,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -161,6 +165,7 @@ Object { }, }, "name": "intersection", + "optional": false, "range": Array [ 42, 71, @@ -255,6 +260,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -275,6 +281,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -287,6 +294,7 @@ Object { }, }, "name": "precedence1", + "optional": false, "range": Array [ 77, 115, @@ -417,6 +425,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { @@ -437,6 +446,7 @@ Object { Object { "declarations": Array [ Object { + "definite": false, "id": Object { "loc": Object { "end": Object { @@ -449,6 +459,7 @@ Object { }, }, "name": "precedence2", + "optional": false, "range": Array [ 121, 159, @@ -579,6 +590,7 @@ Object { "type": "VariableDeclarator", }, ], + "declare": false, "kind": "let", "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot index 54b41ae14a4..3a976951f29 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript types union-type.src 1`] = ` Object { "body": Array [ Object { + "declare": false, "id": Object { "loc": Object { "end": Object { @@ -16,6 +17,7 @@ Object { }, }, "name": "Foo", + "optional": false, "range": Array [ 5, 8, From 64669475a9df300361171c7e892bdf7a1089bcaf Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 19 Jan 2023 19:45:46 -0500 Subject: [PATCH 2/8] Fixed build: missing flags in indent rule --- packages/eslint-plugin/src/rules/indent.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-plugin/src/rules/indent.ts b/packages/eslint-plugin/src/rules/indent.ts index 4973a790212..da210ffb0e1 100644 --- a/packages/eslint-plugin/src/rules/indent.ts +++ b/packages/eslint-plugin/src/rules/indent.ts @@ -298,6 +298,7 @@ export default util.createRule({ }, } as TSESTree.VariableDeclarator, ], + declare: false, // location data parent: node.parent, @@ -393,6 +394,7 @@ export default util.createRule({ kind: 'init' as const, computed: false, method: false, + optional: false, shorthand: false, }, ], From 1c8b67b5ddc85acfb07316c55b0917f5197b7803 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 19 Jan 2023 19:47:32 -0500 Subject: [PATCH 3/8] Updated snapshots (jest -u) --- .../abstract/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 89 +++++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 69 +++++++- .../empty/snapshots/1-TSESTree-AST.shot | 1 + .../empty/snapshots/5-AST-Alignment-AST.shot | 47 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 77 ++++++++- .../extends/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../type-param/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../assertion/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 71 +++++++- .../named/snapshots/1-TSESTree-AST.shot | 1 + .../named/snapshots/5-AST-Alignment-AST.shot | 49 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../class/snapshots/1-TSESTree-AST.shot | 1 + .../class/snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../function/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 60 ++++++- .../identifier/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 37 ++++- .../interface/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../aliased/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../class/snapshots/1-TSESTree-AST.shot | 1 + .../class/snapshots/5-AST-Alignment-AST.shot | 60 ++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../enum/snapshots/1-TSESTree-AST.shot | 3 + .../enum/snapshots/5-AST-Alignment-AST.shot | 52 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 63 ++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../interface/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../namespace/snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../type-alias/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 74 ++++++++- .../async/snapshots/1-TSESTree-AST.shot | 1 + .../async/snapshots/5-AST-Alignment-AST.shot | 50 +++++- .../empty/snapshots/1-TSESTree-AST.shot | 1 + .../empty/snapshots/5-AST-Alignment-AST.shot | 50 +++++- .../generator/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 50 +++++- .../param-many/snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 84 +++++++++- .../param-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 62 ++++++- .../returnType/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 68 +++++++- .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../assertion/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 92 ++++++++++- .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 156 +++++++++++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 60 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 92 ++++++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 80 ++++++++- .../default/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 60 ++++++- .../named-many/snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 136 ++++++++++++++- .../named-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 72 +++++++- .../empty/snapshots/1-TSESTree-AST.shot | 1 + .../empty/snapshots/5-AST-Alignment-AST.shot | 41 ++++- .../generator/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 41 ++++- .../param-many/snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 75 ++++++++- .../param-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 53 +++++- .../returnType/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 59 ++++++- .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 58 ++++++- .../const/snapshots/1-TSESTree-AST.shot | 2 + .../const/snapshots/5-AST-Alignment-AST.shot | 39 ++++- .../declare/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 39 ++++- .../empty/snapshots/1-TSESTree-AST.shot | 3 + .../empty/snapshots/5-AST-Alignment-AST.shot | 39 ++++- .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 89 +++++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 49 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 47 +++++- .../empty/snapshots/1-TSESTree-AST.shot | 2 + .../empty/snapshots/5-AST-Alignment-AST.shot | 47 +++++- .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../extends-one/snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 73 +++++++- .../global/snapshots/1-TSESTree-AST.shot | 1 + .../global/snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 38 ++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 92 ++++++++++- .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 48 +++++- .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 92 ++++++++++- .../valid/snapshots/1-TSESTree-AST.shot | 1 + .../valid/snapshots/5-AST-Alignment-AST.shot | 36 +++- .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../valid/snapshots/1-TSESTree-AST.shot | 2 + .../valid/snapshots/5-AST-Alignment-AST.shot | 57 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../declare/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 51 +++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 51 +++++- .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 95 ++++++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 61 ++++++- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 51 +++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../key-private/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../key-string/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 94 ++++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 85 +++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 85 +++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 54 +++++- .../snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 110 +++++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 116 ++++++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 75 ++++++++- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 75 ++++++++- .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 135 ++++++++++++++- .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 135 ++++++++++++++- .../tests/fixtures-with-differences-ast.shot | 79 +++++++++ .../tests/lib/__snapshots__/services.ts.snap | 3 + 234 files changed, 5607 insertions(+), 79 deletions(-) diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot index bae3f5a8287..eae7396ac38 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [15, 18], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot index 54a7219ce9a..939ccdfa98f 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration ClassDeclaration abstract AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + abstract: true, + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [19, 21], + loc: { + start: { column: 19, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + superClass: null, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index d20ffd3e130..f4eb9c1cb89 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [14, 17], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 9fbaa86d5a2..9f5d906362a 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration ClassDeclaration declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [18, 20], + loc: { + start: { column: 18, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + superClass: null, + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot index 7f37d13c488..13b703c36d8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { expression: Identifier { type: "Identifier", name: "decoratorOne", + optional: false, range: [1, 13], loc: { @@ -41,6 +42,7 @@ Program { expression: Identifier { type: "Identifier", name: "decoratorTwo", + optional: false, range: [15, 27], loc: { @@ -59,6 +61,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [34, 37], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot index 751a6cc951f..a89b9ebc054 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,92 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [38, 40], + loc: { + start: { column: 10, line: 3 }, + end: { column: 12, line: 3 }, + }, + }, + decorators: Array [ + Decorator { + type: 'Decorator', + expression: Identifier { + type: 'Identifier', + name: 'decoratorOne', +- optional: false, + + range: [1, 13], + loc: { + start: { column: 1, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + Decorator { + type: 'Decorator', + expression: Identifier { + type: 'Identifier', + name: 'decoratorTwo', +- optional: false, + + range: [15, 27], + loc: { + start: { column: 1, line: 2 }, + end: { column: 13, line: 2 }, + }, + }, + + range: [14, 27], + loc: { + start: { column: 0, line: 2 }, + end: { column: 13, line: 2 }, + }, + }, + ], + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [34, 37], + loc: { + start: { column: 6, line: 3 }, + end: { column: 9, line: 3 }, + }, + }, + superClass: null, + + range: [0, 40], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 3 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 41], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 4 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot index aba5fc9308d..11250415f63 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { expression: Identifier { type: "Identifier", name: "decorator", + optional: false, range: [1, 10], loc: { @@ -40,6 +41,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot index 503bd4f5ad8..0bd7a140434 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,72 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 10, line: 2 }, + end: { column: 12, line: 2 }, + }, + }, + decorators: Array [ + Decorator { + type: 'Decorator', + expression: Identifier { + type: 'Identifier', + name: 'decorator', +- optional: false, + + range: [1, 10], + loc: { + start: { column: 1, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [0, 10], + loc: { + start: { column: 0, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 6, line: 2 }, + end: { column: 9, line: 2 }, + }, + }, + superClass: null, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 2 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 3 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 9ead7d30ab7..d9f690061b7 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 795e34e032c..3819a8bb8b6 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,50 @@ exports[`AST Fixtures declaration ClassDeclaration empty AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [10, 12], + loc: { + start: { column: 10, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [6, 9], + loc: { + start: { column: 6, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + superClass: null, + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot index dc5437192e6..53501a6b842 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot index 432a1483eb4..3ec302097f9 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [6, 9], + loc: { + start: { column: 6, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + superClass: Literal { + type: 'Literal', + raw: '\\\\'Thing\\\\'', + value: 'Thing', + + range: [18, 25], + loc: { + start: { column: 18, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot index 43fbb02d6c0..e1244953a30 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -29,6 +30,7 @@ Program { superClass: Identifier { type: "Identifier", name: "Set", + optional: false, range: [18, 21], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot index d7a16a19520..999e6e4d2bb 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,80 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [30, 32], + loc: { + start: { column: 30, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [6, 9], + loc: { + start: { column: 6, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + superClass: Identifier { + type: 'Identifier', + name: 'Set', +- optional: false, + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + superTypeParameters: TSTypeParameterInstantiation { + type: 'TSTypeParameterInstantiation', + params: Array [ + TSStringKeyword { + type: 'TSStringKeyword', + + range: [22, 28], + loc: { + start: { column: 22, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [21, 29], + loc: { + start: { column: 21, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot index d8241f2f4d5..399955a7a36 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -29,6 +30,7 @@ Program { superClass: Identifier { type: "Identifier", name: "Object", + optional: false, range: [18, 24], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot index 7408520a611..3473e7ab8f9 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration ClassDeclaration extends AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [6, 9], + loc: { + start: { column: 6, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + superClass: Identifier { + type: 'Identifier', + name: 'Object', +- optional: false, + + range: [18, 24], + loc: { + start: { column: 18, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot index 6467e4a37f0..de4c782cb94 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -32,6 +33,7 @@ Program { expression: Identifier { type: "Identifier", name: "Object", + optional: false, range: [21, 27], loc: { @@ -51,6 +53,7 @@ Program { expression: Identifier { type: "Identifier", name: "Function", + optional: false, range: [29, 37], loc: { @@ -70,6 +73,7 @@ Program { expression: Identifier { type: "Identifier", name: "RegExp", + optional: false, range: [39, 45], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot index 77b0476655c..f7f498d1eed 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { @@ -38,6 +39,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment expression: Identifier { type: 'Identifier', name: 'Object', +- optional: false, range: [21, 27], loc: { @@ -59,6 +61,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment expression: Identifier { type: 'Identifier', name: 'Function', +- optional: false, range: [29, 37], loc: { @@ -80,6 +83,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment expression: Identifier { type: 'Identifier', name: 'RegExp', +- optional: false, range: [39, 45], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot index c5228690b09..d9d83fb7f61 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -32,6 +33,7 @@ Program { expression: Identifier { type: "Identifier", name: "Object", + optional: false, range: [21, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot index b0aec089f61..57f42bd1328 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { @@ -38,6 +39,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one AST Alignment expression: Identifier { type: 'Identifier', name: 'Object', +- optional: false, range: [21, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot index 13f2fe48ba0..79d05259854 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -36,6 +37,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot index 0ee9dbba035..2c66985aba0 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { @@ -40,6 +41,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [10, 11], - loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot index aac248040d8..33870a2f9fc 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -29,6 +30,7 @@ Program { superClass: Identifier { type: "Identifier", name: "Set", + optional: false, range: [21, 24], loc: { @@ -44,6 +46,7 @@ Program { typeName: Identifier { type: "Identifier", name: "T", + optional: false, range: [25, 26], loc: { @@ -75,6 +78,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot index f6d5a3c73b3..196a5e86453 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { @@ -33,6 +34,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- superClass: Identifier { type: 'Identifier', name: 'Set', +- optional: false, range: [21, 24], loc: { @@ -48,6 +50,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- typeName: Identifier { type: 'Identifier', name: 'T', +- optional: false, range: [25, 26], loc: { @@ -79,6 +82,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [10, 11], - loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index bdbfa5822bb..3bb3aebf84d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [14, 18], loc: { @@ -44,6 +45,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index 121e647439e..1d68fd961b8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment key: Identifier { type: 'Identifier', name: 'prop', +- optional: false, range: [14, 18], loc: { @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 28172433eac..8a4e1fef5ec 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { key: Identifier { type: "Identifier", name: "type", + optional: false, range: [29, 33], loc: { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot index 077fe892d33..a73338c0964 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,74 @@ exports[`AST Fixtures declaration ExportAllDeclaration assertion AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [ + ImportAttribute { + type: 'ImportAttribute', + key: Identifier { + type: 'Identifier', + name: 'type', +- optional: false, + + range: [29, 33], + loc: { + start: { column: 29, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + value: Literal { + type: 'Literal', + raw: '\\\\'json\\\\'', + value: 'json', + + range: [35, 41], + loc: { + start: { column: 35, line: 1 }, + end: { column: 41, line: 1 }, + }, + }, + + range: [29, 41], + loc: { + start: { column: 29, line: 1 }, + end: { column: 41, line: 1 }, + }, + }, + ], + exported: null, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 44], + loc: { + start: { column: 0, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 45], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot index 0650677e2f6..59b99a73b40 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { exported: Identifier { type: "Identifier", name: "mod", + optional: false, range: [12, 15], loc: { diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot index 8aabbae3357..dbf3cd4fcd0 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,52 @@ exports[`AST Fixtures declaration ExportAllDeclaration named AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [], + exported: Identifier { + type: 'Identifier', + name: 'mod', +- optional: false, + + range: [12, 15], + loc: { + start: { column: 12, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + exportKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'module\\\\'', + value: 'module', + + range: [21, 29], + loc: { + start: { column: 21, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot index 166a1d77c3d..df079bc0138 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot @@ -21,6 +21,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [22, 25], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot index 4d3dd269c49..2682347fd5c 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: ClassExpression { + type: 'ClassExpression', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + superClass: null, + + range: [16, 28], + loc: { + start: { column: 16, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index f2ce271ea77..0e11d4e1269 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -21,6 +21,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [21, 24], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot index 892ae8987da..39d40f50f28 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + superClass: null, + + range: [15, 27], + loc: { + start: { column: 15, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot index 59570dbd56d..126b2374d0f 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [24, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot index 6e67c16fb8b..f24a9df7daf 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,63 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration function AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [30, 32], + loc: { + start: { column: 30, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [24, 27], + loc: { + start: { column: 24, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + params: Array [], + + range: [15, 32], + loc: { + start: { column: 15, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot index 11900ab6838..8bcc402d533 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { declaration: Identifier { type: "Identifier", name: "x", + optional: false, range: [15, 16], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot index 1fc84e1257d..55d75fdfaaa 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,40 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration identifier AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index 755e1480fde..44e4e7f213a 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -18,9 +18,11 @@ Program { end: { column: 31, line: 1 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [25, 28], loc: { diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot index 778b30b1513..213c1fc5d9a 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration interface AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [29, 31], + loc: { + start: { column: 29, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [15, 31], + loc: { + start: { column: 15, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot index c5593e6762b..ff188f640eb 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { exported: Identifier { type: "Identifier", name: "b", + optional: false, range: [14, 15], loc: { @@ -27,6 +28,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot index 845f2cb5cfb..13aa2888bdf 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - exported: Identifier { type: 'Identifier', name: 'b', +- optional: false, range: [14, 15], loc: { @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - local: Identifier { type: 'Identifier', name: 'a', +- optional: false, range: [9, 10], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index d33d4cd08d4..cf7064051cf 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [13, 16], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot index cb90ab5e0fb..18e0f10224f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,63 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: ClassDeclaration { + type: 'ClassDeclaration', + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [13, 16], + loc: { + start: { column: 13, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + superClass: null, + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot index e6cd6c4d7a3..886c3a0d491 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [24, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot index 9aaae286a11..020583adb6f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration declare-function AST Al id: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [24, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot index 70f1a5783f9..d93043696da 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,12 @@ Program { assertions: Array [], declaration: TSEnumDeclaration { type: "TSEnumDeclaration", + const: false, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [12, 15], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot index 1a21129afb2..e4216ffbbbb 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,55 @@ exports[`AST Fixtures declaration ExportNamedDeclaration enum AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: TSEnumDeclaration { + type: 'TSEnumDeclaration', +- const: false, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [12, 15], + loc: { + start: { column: 12, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + members: Array [], + + range: [7, 18], + loc: { + start: { column: 7, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot index ad4118a633c..bcb9f46779a 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [16, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot index fe318b3ed6f..eb7f4fcd56f 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,66 @@ exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [16, 19], + loc: { + start: { column: 16, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + params: Array [], + + range: [7, 24], + loc: { + start: { column: 7, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot index 3a91eb9c252..3a6ed4d9335 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { exported: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -27,6 +28,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot index 240f602618f..88e8545f061 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST A exported: Identifier { type: 'Identifier', name: 'a', +- optional: false, range: [9, 10], loc: { @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST A local: Identifier { type: 'Identifier', name: 'a', +- optional: false, range: [9, 10], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot index 4c2fa789c16..a92c8aa6275 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { exported: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -27,6 +28,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -46,6 +48,7 @@ Program { exported: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -57,6 +60,7 @@ Program { local: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot index 8d76dc7c571..2487dbdbd0e 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali exported: Identifier { type: 'Identifier', name: 'a', +- optional: false, range: [9, 10], loc: { @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali local: Identifier { type: 'Identifier', name: 'a', +- optional: false, range: [9, 10], loc: { @@ -50,6 +52,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali exported: Identifier { type: 'Identifier', name: 'b', +- optional: false, range: [12, 13], loc: { @@ -61,6 +64,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali local: Identifier { type: 'Identifier', name: 'b', +- optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index a301d0efca7..cc42ddd8ce7 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -19,9 +19,11 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot index 02ddc518379..ebeff8c7bbc 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot @@ -23,9 +23,11 @@ exports[`AST Fixtures declaration ExportNamedDeclaration interface AST Alignment end: { column: 23, line: 1 }, }, }, +- declare: false, id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot index 8bee64090fc..6ac3233ed4c 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot @@ -19,9 +19,12 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot index 00a19c01c58..bd2b5ec2f68 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration ExportNamedDeclaration namespace AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [7, 23], + loc: { + start: { column: 7, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot index 2a6f27ff691..2d8f6ae69ee 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { assertions: Array [], declaration: TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", + declare: false, id: Identifier { type: "Identifier", name: "A", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot index db70418e9f1..e76efbf042a 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot @@ -13,9 +13,11 @@ exports[`AST Fixtures declaration ExportNamedDeclaration type-alias AST Alignmen assertions: Array [], declaration: TSTypeAliasDeclaration { type: 'TSTypeAliasDeclaration', +- declare: false, id: Identifier { type: 'Identifier', name: 'A', +- optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot index 64a85af7e54..4b5418116c0 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot @@ -12,9 +12,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [13, 14], loc: { @@ -41,6 +43,7 @@ Program { }, }, ], + declare: false, kind: "const", range: [7, 19], diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot index bb45021e9c4..ed7cc5a0f72 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,77 @@ exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + init: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [13, 18], + loc: { + start: { column: 13, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'const', + + range: [7, 19], + loc: { + start: { column: 7, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot index 7a7cd7ea28a..aff6daeb1f0 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [15, 18], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot index fe3cf227fba..eb798c023b9 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,53 @@ exports[`AST Fixtures declaration FunctionDeclaration async AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: true, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + params: Array [], + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index e21b80de90e..4f8b305ba12 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index b08265806b5..a21980fcb1d 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,53 @@ exports[`AST Fixtures declaration FunctionDeclaration empty AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [9, 12], + loc: { + start: { column: 9, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + params: Array [], + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot index 7ad2d7a2dce..4ce20020aff 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [10, 13], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot index e94e87d038a..2415f201ddf 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,53 @@ exports[`AST Fixtures declaration FunctionDeclaration generator AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [16, 18], + loc: { + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + expression: false, + generator: true, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [10, 13], + loc: { + start: { column: 10, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + params: Array [], + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot index 9a6db3d1c4c..17ecff8bc58 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { @@ -33,6 +34,7 @@ Program { Identifier { type: "Identifier", name: "a", + optional: false, range: [13, 14], loc: { @@ -43,6 +45,7 @@ Program { Identifier { type: "Identifier", name: "b", + optional: false, range: [16, 17], loc: { @@ -53,6 +56,7 @@ Program { Identifier { type: "Identifier", name: "c", + optional: false, range: [19, 20], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot index f8b80c46b1e..d528ab0164a 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,87 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [22, 24], + loc: { + start: { column: 22, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [9, 12], + loc: { + start: { column: 9, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + params: Array [ + Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [16, 17], + loc: { + start: { column: 16, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [19, 20], + loc: { + start: { column: 19, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 99d9cdc9e98..236c8b50026 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { @@ -33,6 +34,7 @@ Program { Identifier { type: "Identifier", name: "a", + optional: false, range: [13, 14], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot index 5c75a74de72..96daa22ac60 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,65 @@ exports[`AST Fixtures declaration FunctionDeclaration param-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [16, 18], + loc: { + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [9, 12], + loc: { + start: { column: 9, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + params: Array [ + Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot index d9d3eccf8d7..c19007ffb34 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot index d0df21058e9..2aad82b811d 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,71 @@ exports[`AST Fixtures declaration FunctionDeclaration returnType AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [9, 12], + loc: { + start: { column: 9, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + params: Array [], + returnType: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSVoidKeyword { + type: 'TSVoidKeyword', + + range: [16, 20], + loc: { + start: { column: 16, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [14, 20], + loc: { + start: { column: 14, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 24eae0d3290..93a4f018df7 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { @@ -39,6 +40,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [13, 14], loc: { @@ -60,6 +62,7 @@ Program { name: Identifier { type: "Identifier", name: "U", + optional: false, range: [16, 17], loc: { @@ -81,6 +84,7 @@ Program { name: Identifier { type: "Identifier", name: "V", + optional: false, range: [19, 20], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 98ace90820f..0c832e6531b 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -26,6 +26,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm id: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [9, 12], loc: { @@ -43,6 +44,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [13, 14], - loc: { @@ -65,6 +67,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - name: Identifier { - type: 'Identifier', - name: 'U', +- optional: false, - - range: [16, 17], - loc: { @@ -87,6 +90,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - name: Identifier { - type: 'Identifier', - name: 'V', +- optional: false, - - range: [19, 20], - loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index b2caab0f05b..6b599c28777 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { @@ -39,6 +40,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [13, 14], loc: { diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index b997a40aca3..c48c153aed2 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -26,6 +26,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one AST Alignme id: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [9, 12], loc: { @@ -43,6 +44,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one AST Alignme - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [13, 14], - loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 877884e2c9a..6fb8620b9fb 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { key: Identifier { type: "Identifier", name: "type", + optional: false, range: [34, 38], loc: { @@ -56,6 +57,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot index c7b85e439da..ae08fe756ac 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,95 @@ exports[`AST Fixtures declaration ImportDeclaration assertion AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [ + ImportAttribute { + type: 'ImportAttribute', + key: Identifier { + type: 'Identifier', + name: 'type', +- optional: false, + + range: [34, 38], + loc: { + start: { column: 34, line: 1 }, + end: { column: 38, line: 1 }, + }, + }, + value: Literal { + type: 'Literal', + raw: '\\\\'json\\\\'', + value: 'json', + + range: [40, 46], + loc: { + start: { column: 40, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + + range: [34, 46], + loc: { + start: { column: 34, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + ], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [19, 24], + loc: { + start: { column: 19, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + specifiers: Array [ + ImportNamespaceSpecifier { + type: 'ImportNamespaceSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [7, 13], + loc: { + start: { column: 7, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + + range: [0, 49], + loc: { + start: { column: 0, line: 1 }, + end: { column: 49, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 50], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot index 3b5e6f5d956..f3c646c0cb2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [7, 8], loc: { @@ -44,6 +45,7 @@ Program { imported: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -55,6 +57,7 @@ Program { local: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -74,6 +77,7 @@ Program { imported: Identifier { type: "Identifier", name: "c", + optional: false, range: [15, 16], loc: { @@ -85,6 +89,7 @@ Program { local: Identifier { type: "Identifier", name: "c", + optional: false, range: [15, 16], loc: { @@ -104,6 +109,7 @@ Program { imported: Identifier { type: "Identifier", name: "d", + optional: false, range: [18, 19], loc: { @@ -115,6 +121,7 @@ Program { local: Identifier { type: "Identifier", name: "d", + optional: false, range: [18, 19], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot index 5a7d0eb9f83..591024760d4 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,159 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [27, 32], + loc: { + start: { column: 27, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + specifiers: Array [ + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'd', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'd', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 34], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot index 0e94a0b6bb9..88e4ac693fd 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [26, 27], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot index 77b9d9ec72b..d7901f941f4 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,63 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-none AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [37, 42], + loc: { + start: { column: 18, line: 2 }, + end: { column: 23, line: 2 }, + }, + }, + specifiers: Array [ + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [26, 27], + loc: { + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + + range: [26, 27], + loc: { + start: { column: 7, line: 2 }, + end: { column: 8, line: 2 }, + }, + }, + ], + + range: [19, 43], + loc: { + start: { column: 0, line: 2 }, + end: { column: 24, line: 2 }, + }, + }, + ], + sourceType: 'module', + + range: [19, 44], + loc: { + start: { column: 0, line: 2 }, + end: { column: 0, line: 3 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot index 362d429e027..183db0e9375 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [7, 8], loc: { @@ -44,6 +45,7 @@ Program { imported: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -55,6 +57,7 @@ Program { local: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot index 8661b6d43b2..ab4bc6be08f 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,95 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [21, 26], + loc: { + start: { column: 21, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + specifiers: Array [ + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot index 88c4eac8c15..867107943df 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [7, 8], loc: { @@ -44,6 +45,7 @@ Program { local: Identifier { type: "Identifier", name: "b", + optional: false, range: [15, 16], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot index c975ae69118..d1df32b0089 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,83 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-namespace AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [22, 27], + loc: { + start: { column: 22, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + specifiers: Array [ + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ImportNamespaceSpecifier { + type: 'ImportNamespaceSpecifier', + local: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [10, 16], + loc: { + start: { column: 10, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + ], + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot index 8575ecc99e2..78c923b52ac 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot index 2524045a807..39daf9e6786 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,63 @@ exports[`AST Fixtures declaration ImportDeclaration default AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [14, 19], + loc: { + start: { column: 14, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + specifiers: Array [ + ImportDefaultSpecifier { + type: 'ImportDefaultSpecifier', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + ], + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot index a90f8ca955a..45c3c12e653 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { imported: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -36,6 +37,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -55,6 +57,7 @@ Program { imported: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -66,6 +69,7 @@ Program { local: Identifier { type: "Identifier", name: "b", + optional: false, range: [12, 13], loc: { @@ -85,6 +89,7 @@ Program { imported: Identifier { type: "Identifier", name: "c", + optional: false, range: [15, 16], loc: { @@ -96,6 +101,7 @@ Program { local: Identifier { type: "Identifier", name: "c", + optional: false, range: [15, 16], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot index 3f4b4b678e7..973642ecc77 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,139 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [24, 29], + loc: { + start: { column: 24, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + specifiers: Array [ + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + ], + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot index 9030519529e..391753c4ef2 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot @@ -25,6 +25,7 @@ Program { imported: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { @@ -36,6 +37,7 @@ Program { local: Identifier { type: "Identifier", name: "a", + optional: false, range: [9, 10], loc: { diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot index a502907e8f6..93e58c3caad 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,75 @@ exports[`AST Fixtures declaration ImportDeclaration named-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ImportDeclaration { + type: 'ImportDeclaration', + assertions: Array [], + importKind: 'value', + source: Literal { + type: 'Literal', + raw: '\\\\'mod\\\\'', + value: 'mod', + + range: [18, 23], + loc: { + start: { column: 18, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + specifiers: Array [ + ImportSpecifier { + type: 'ImportSpecifier', + imported: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + importKind: 'value', + local: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot index 59ea1f2fa4c..3306a2be605 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 89f8ab5e347..a7c25dbccde 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,44 @@ exports[`AST Fixtures declaration TSDeclareFunction empty AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + params: Array [], + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot index ed8b5305792..f60ecb16dbe 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [18, 21], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot index e5478271a49..1e592b621d2 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,44 @@ exports[`AST Fixtures declaration TSDeclareFunction generator AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: true, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + params: Array [], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot index a7f8479f43a..49bb9a2f8dc 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { @@ -24,6 +25,7 @@ Program { Identifier { type: "Identifier", name: "a", + optional: false, range: [21, 22], loc: { @@ -34,6 +36,7 @@ Program { Identifier { type: "Identifier", name: "b", + optional: false, range: [24, 25], loc: { @@ -44,6 +47,7 @@ Program { Identifier { type: "Identifier", name: "c", + optional: false, range: [27, 28], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot index cfed52f085e..9373f888258 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,78 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + params: Array [ + Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + name: 'b', +- optional: false, + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: 'Identifier', + name: 'c', +- optional: false, + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 1f21a6f71f8..1620a39b3ce 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { @@ -24,6 +25,7 @@ Program { Identifier { type: "Identifier", name: "a", + optional: false, range: [21, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot index 81f8c45d656..5695b24b797 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,56 @@ exports[`AST Fixtures declaration TSDeclareFunction param-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + params: Array [ + Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot index 45e65dbe80a..bdb04ed819a 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot index bddda38b36f..6f08dcf72cf 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,62 @@ exports[`AST Fixtures declaration TSDeclareFunction returnType AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + declare: true, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + params: Array [], + returnType: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSVoidKeyword { + type: 'TSVoidKeyword', + + range: [24, 28], + loc: { + start: { column: 24, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [22, 28], + loc: { + start: { column: 22, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index aefd6e905e2..90b2fdbeb95 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { @@ -30,6 +31,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [21, 22], loc: { @@ -51,6 +53,7 @@ Program { name: Identifier { type: "Identifier", name: "U", + optional: false, range: [24, 25], loc: { @@ -72,6 +75,7 @@ Program { name: Identifier { type: "Identifier", name: "V", + optional: false, range: [27, 28], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 5c07aedab59..332b75e2927 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -17,6 +17,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen id: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [17, 20], loc: { @@ -34,6 +35,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [21, 22], - loc: { @@ -56,6 +58,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - name: Identifier { - type: 'Identifier', - name: 'U', +- optional: false, - - range: [24, 25], - loc: { @@ -78,6 +81,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - name: Identifier { - type: 'Identifier', - name: 'V', +- optional: false, - - range: [27, 28], - loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 4767a93811c..a80e1e34532 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [17, 20], loc: { @@ -30,6 +31,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [21, 22], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index 6763966b08f..3b24f70c74c 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -17,6 +17,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one AST Alignment id: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [17, 20], loc: { @@ -34,6 +35,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one AST Alignment - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [21, 22], - loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot index 5c46a6508af..954675f7e09 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { id: Identifier { type: "Identifier", name: "foo", + optional: false, range: [9, 12], loc: { diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot index 7f5b5b1b141..964330be876 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,61 @@ exports[`AST Fixtures declaration TSDeclareFunction without-declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSDeclareFunction { + type: 'TSDeclareFunction', + async: false, + expression: false, + generator: false, + id: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [9, 12], + loc: { + start: { column: 9, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + params: Array [], + returnType: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSVoidKeyword { + type: 'TSVoidKeyword', + + range: [16, 20], + loc: { + start: { column: 16, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [14, 20], + loc: { + start: { column: 14, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot index 1d59f828b67..ffc3d49c881 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot @@ -7,9 +7,11 @@ Program { TSEnumDeclaration { type: "TSEnumDeclaration", const: true, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [11, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot index 95d4c8f6b4a..67f7ca4109e 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,42 @@ exports[`AST Fixtures declaration TSEnumDeclaration const AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSEnumDeclaration { + type: 'TSEnumDeclaration', + const: true, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [11, 14], + loc: { + start: { column: 11, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + members: Array [], + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 8b742184ed9..7c371b95a86 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -6,10 +6,12 @@ Program { body: Array [ TSEnumDeclaration { type: "TSEnumDeclaration", + const: false, declare: true, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [13, 16], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 5085b6b4609..3479d1f35cf 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,42 @@ exports[`AST Fixtures declaration TSEnumDeclaration declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSEnumDeclaration { + type: 'TSEnumDeclaration', +- const: false, + declare: true, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [13, 16], + loc: { + start: { column: 13, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + members: Array [], + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 85e4f093eb2..882f67cd409 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -6,9 +6,12 @@ Program { body: Array [ TSEnumDeclaration { type: "TSEnumDeclaration", + const: false, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [5, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 2ce5c714db1..a8e76ea1404 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,42 @@ exports[`AST Fixtures declaration TSEnumDeclaration empty AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSEnumDeclaration { + type: 'TSEnumDeclaration', +- const: false, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [5, 8], + loc: { + start: { column: 5, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + members: Array [], + + range: [0, 11], + loc: { + start: { column: 0, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index dc9b0027eed..6df30c0ae8f 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -6,9 +6,12 @@ Program { body: Array [ TSEnumDeclaration { type: "TSEnumDeclaration", + const: false, + declare: false, id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [5, 8], loc: { @@ -19,9 +22,11 @@ Program { members: Array [ TSEnumMember { type: "TSEnumMember", + computed: false, id: Identifier { type: "Identifier", name: "A", + optional: false, range: [13, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index b707fc5d46b..5562ddef536 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration TSEnumDeclaration with-member-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSEnumDeclaration { + type: 'TSEnumDeclaration', +- const: false, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'Foo', +- optional: false, + + range: [5, 8], + loc: { + start: { column: 5, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + members: Array [ + TSEnumMember { + type: 'TSEnumMember', +- computed: false, + id: Identifier { + type: 'Identifier', + name: 'A', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, + }, + }, + + range: [13, 14], + loc: { + start: { column: 2, line: 2 }, + end: { column: 3, line: 2 }, + }, + }, + ], + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 3 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 4 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot index 6d438a8c596..d0fefbe1c48 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [7, 8], loc: { @@ -25,6 +26,7 @@ Program { left: Identifier { type: "Identifier", name: "A", + optional: false, range: [11, 12], loc: { @@ -35,6 +37,7 @@ Program { right: Identifier { type: "Identifier", name: "B", + optional: false, range: [13, 14], loc: { @@ -52,6 +55,7 @@ Program { right: Identifier { type: "Identifier", name: "C", + optional: false, range: [15, 16], loc: { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot index 88ec007b237..786c8c3830d 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,92 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSImportEqualsDeclaration { + type: 'TSImportEqualsDeclaration', + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + importKind: 'value', + isExport: false, + moduleReference: TSQualifiedName { + type: 'TSQualifiedName', + left: TSQualifiedName { + type: 'TSQualifiedName', + left: Identifier { + type: 'Identifier', + name: 'A', +- optional: false, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + right: Identifier { + type: 'Identifier', + name: 'B', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [11, 14], + loc: { + start: { column: 11, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + right: Identifier { + type: 'Identifier', + name: 'C', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [11, 16], + loc: { + start: { column: 11, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot index aa18656723b..3b2288a4c12 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [7, 8], loc: { @@ -21,6 +22,7 @@ Program { moduleReference: Identifier { type: "Identifier", name: "A", + optional: false, range: [11, 12], loc: { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot index 0cb17969d4f..a850297fdbf 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,52 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSImportEqualsDeclaration { + type: 'TSImportEqualsDeclaration', + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + importKind: 'value', + isExport: false, + moduleReference: Identifier { + type: 'Identifier', + name: 'A', +- optional: false, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 14], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot index aca9d9ab5f3..84066570bd1 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot index a0b231ec7a1..73a07558055 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref- id: Identifier { type: 'Identifier', name: 'F', +- optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 501d609a46c..4577e0ff3c3 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [18, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index c5bfaba693b..74e3f0a4335 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,50 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index aa7db317692..f5a1ad72b59 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -16,9 +16,11 @@ Program { end: { column: 14, line: 1 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 42bc3c4eb68..2107110dd9b 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,50 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration empty AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [], + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [0, 14], + loc: { + start: { column: 0, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 15], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot index 2e08532845c..f93280b8283 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot @@ -16,12 +16,14 @@ Program { end: { column: 30, line: 1 }, }, }, + declare: false, extends: Array [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", name: "A", + optional: false, range: [20, 21], loc: { @@ -41,6 +43,7 @@ Program { expression: Identifier { type: "Identifier", name: "B", + optional: false, range: [23, 24], loc: { @@ -60,6 +63,7 @@ Program { expression: Identifier { type: "Identifier", name: "C", + optional: false, range: [26, 27], loc: { @@ -78,6 +82,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot index 793c00b7e98..6bd7f1d3d75 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm end: { column: 30, line: 1 }, }, }, +- declare: false, extends: Array [ - TSInterfaceHeritage { - type: 'TSInterfaceHeritage', @@ -28,6 +29,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm expression: Identifier { type: 'Identifier', name: 'A', +- optional: false, range: [20, 21], loc: { @@ -49,6 +51,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm expression: Identifier { type: 'Identifier', name: 'B', +- optional: false, range: [23, 24], loc: { @@ -70,6 +73,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm expression: Identifier { type: 'Identifier', name: 'C', +- optional: false, range: [26, 27], loc: { @@ -88,6 +92,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm id: Identifier { type: 'Identifier', name: 'F', +- optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot index 795dc661bbe..9d0442391bf 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot @@ -16,12 +16,14 @@ Program { end: { column: 24, line: 1 }, }, }, + declare: false, extends: Array [ TSInterfaceHeritage { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", name: "A", + optional: false, range: [20, 21], loc: { @@ -40,6 +42,7 @@ Program { id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot index fe6cf12f1a5..51d29872c1e 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one AST Alignme end: { column: 24, line: 1 }, }, }, +- declare: false, extends: Array [ - TSInterfaceHeritage { - type: 'TSInterfaceHeritage', @@ -28,6 +29,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one AST Alignme expression: Identifier { type: 'Identifier', name: 'A', +- optional: false, range: [20, 21], loc: { @@ -46,6 +48,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one AST Alignme id: Identifier { type: 'Identifier', name: 'F', +- optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 6aea3322462..e4f0b6c45ad 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -16,9 +16,11 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { @@ -35,6 +37,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [12, 13], loc: { @@ -56,6 +59,7 @@ Program { name: Identifier { type: "Identifier", name: "U", + optional: false, range: [15, 16], loc: { @@ -77,6 +81,7 @@ Program { name: Identifier { type: "Identifier", name: "V", + optional: false, range: [18, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 56e43bd6632..ff0b3377ce1 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -20,9 +20,11 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali end: { column: 23, line: 1 }, }, }, +- declare: false, id: Identifier { type: 'Identifier', name: 'F', +- optional: false, range: [10, 11], loc: { @@ -39,6 +41,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [12, 13], - loc: { @@ -61,6 +64,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - name: Identifier { - type: 'Identifier', - name: 'U', +- optional: false, - - range: [15, 16], - loc: { @@ -83,6 +87,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - name: Identifier { - type: 'Identifier', - name: 'V', +- optional: false, - - range: [18, 19], - loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 15f67448566..7519171edba 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -16,9 +16,11 @@ Program { end: { column: 17, line: 1 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { @@ -35,6 +37,7 @@ Program { name: Identifier { type: "Identifier", name: "T", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index d6859d52b51..4138a1cad3c 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -20,9 +20,11 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one AST Alig end: { column: 17, line: 1 }, }, }, +- declare: false, id: Identifier { type: 'Identifier', name: 'F', +- optional: false, range: [10, 11], loc: { @@ -39,6 +41,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one AST Alig - name: Identifier { - type: 'Identifier', - name: 'T', +- optional: false, - - range: [12, 13], - loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index 424cf585b19..1b9818fdeb8 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -12,9 +12,11 @@ Program { TSPropertySignature { type: "TSPropertySignature", computed: false, + export: false, key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [16, 20], loc: { @@ -22,6 +24,9 @@ Program { end: { column: 6, line: 2 }, }, }, + optional: false, + readonly: false, + static: false, range: [16, 21], loc: { @@ -37,9 +42,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index 8e0b58b2efe..576097ba67b 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,76 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSInterfaceDeclaration { + type: 'TSInterfaceDeclaration', + body: TSInterfaceBody { + type: 'TSInterfaceBody', + body: Array [ + TSPropertySignature { + type: 'TSPropertySignature', + computed: false, +- export: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [16, 20], + loc: { + start: { column: 2, line: 2 }, + end: { column: 6, line: 2 }, + }, + }, +- optional: false, +- readonly: false, +- static: false, + + range: [16, 21], + loc: { + start: { column: 2, line: 2 }, + end: { column: 7, line: 2 }, + }, + }, + ], + + range: [12, 23], + loc: { + start: { column: 12, line: 1 }, + end: { column: 1, line: 3 }, + }, + }, +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 1, line: 3 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 4 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot index 424909a0e10..b986c8cf5de 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot @@ -21,6 +21,7 @@ Program { id: Identifier { type: "Identifier", name: "global", + optional: false, range: [8, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot index bdf25926153..3eee36aa889 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration global AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [15, 17], + loc: { + start: { column: 15, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + declare: true, + global: true, + id: Identifier { + type: 'Identifier', + name: 'global', +- optional: false, + + range: [8, 14], + loc: { + start: { column: 8, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot index a0ad297f73c..435f671f42a 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/1-TSESTree-AST.shot @@ -7,6 +7,7 @@ Program { TSModuleDeclaration { type: "TSModuleDeclaration", declare: true, + global: false, id: Literal { type: "Literal", raw: "'a'", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot index 29dc0c7a776..11d962683c7 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare-no-body/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,41 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare-no-body AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + declare: true, +- global: false, + id: Literal { + type: 'Literal', + raw: '\\\\'a\\\\'', + value: 'a', + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot index 74a329eeb58..39ae7305132 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot @@ -17,9 +17,11 @@ Program { }, }, declare: true, + global: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [15, 16], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot index d70930f793c..16c6cddef62 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [17, 19], + loc: { + start: { column: 17, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + declare: true, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot index 3559c1ce1a1..d013ab3b7b1 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot @@ -16,9 +16,12 @@ Program { end: { column: 11, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot index 829de93e3df..f4beac5edc8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [9, 11], + loc: { + start: { column: 9, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [0, 11], + loc: { + start: { column: 0, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot index da4f7cdc9af..dd05841a0f8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,8 @@ Program { end: { column: 13, line: 1 }, }, }, + declare: false, + global: false, id: Literal { type: "Literal", raw: "'a'", diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot index f13f22dfe7d..9e9b303f091 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-literal/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-literal AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [11, 13], + loc: { + start: { column: 11, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Literal { + type: 'Literal', + raw: '\\\\'a\\\\'', + value: 'a', + + range: [7, 10], + loc: { + start: { column: 7, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 14], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot index 3dfc069dda7..c6aded300d0 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -20,9 +20,12 @@ Program { end: { column: 15, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "C", + optional: false, range: [11, 12], loc: { @@ -37,9 +40,12 @@ Program { end: { column: 15, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "B", + optional: false, range: [9, 10], loc: { @@ -54,9 +60,12 @@ Program { end: { column: 15, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "A", + optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot index d442f261db2..a7658ae374c 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,95 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [13, 15], + loc: { + start: { column: 13, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'C', +- optional: false, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + + range: [11, 15], + loc: { + start: { column: 11, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'B', +- optional: false, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 15], + loc: { + start: { column: 9, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'A', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + + range: [0, 15], + loc: { + start: { column: 0, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 16], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot index c373a655222..bad03729aec 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot @@ -17,9 +17,11 @@ Program { }, }, declare: true, + global: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [18, 19], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot index 614b9695a3c..abf01262461 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [20, 22], + loc: { + start: { column: 20, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + declare: true, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot index e6303e2d3ed..a68de341f22 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot @@ -16,9 +16,12 @@ Program { end: { column: 14, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "F", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot index a0aa056256b..48fb299e4c7 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,51 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [12, 14], + loc: { + start: { column: 12, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'F', +- optional: false, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [0, 14], + loc: { + start: { column: 0, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 15], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot index 98cd5bbe817..56f4cf5639c 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -20,9 +20,12 @@ Program { end: { column: 18, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "C", + optional: false, range: [14, 15], loc: { @@ -37,9 +40,12 @@ Program { end: { column: 18, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "B", + optional: false, range: [12, 13], loc: { @@ -54,9 +60,12 @@ Program { end: { column: 18, line: 1 }, }, }, + declare: false, + global: false, id: Identifier { type: "Identifier", name: "A", + optional: false, range: [10, 11], loc: { diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot index a7a16eee58a..35ef462d3da 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,95 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-name AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [16, 18], + loc: { + start: { column: 16, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'C', +- optional: false, + + range: [14, 15], + loc: { + start: { column: 14, line: 1 }, + end: { column: 15, line: 1 }, + }, + }, + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'B', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + + range: [12, 18], + loc: { + start: { column: 12, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', + name: 'A', +- optional: false, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [0, 18], + loc: { + start: { column: 0, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index 914df1fad85..7d5017da0cc 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { id: Identifier { type: "Identifier", name: "a", + optional: false, range: [20, 21], loc: { diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot index 6cd11e1f4b3..932c2efdaf8 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,39 @@ exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSNamespaceExportDeclaration { + type: 'TSNamespaceExportDeclaration', + id: Identifier { + type: 'Identifier', + name: 'a', +- optional: false, + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 63becdaa218..e282cbbc6dd 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { id: Identifier { type: "Identifier", name: "T", + optional: false, range: [13, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 890509a8dcb..a2941346b5e 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSTypeAliasDeclaration { + type: 'TSTypeAliasDeclaration', + declare: true, + id: Identifier { + type: 'Identifier', + name: 'T', +- optional: false, + + range: [13, 14], + loc: { + start: { column: 13, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + typeAnnotation: TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [17, 18], + loc: { + start: { column: 17, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [0, 19], + loc: { + start: { column: 0, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 20], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index af8a41ed478..926affbe0a6 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -6,9 +6,11 @@ Program { body: Array [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", + declare: false, id: Identifier { type: "Identifier", name: "T", + optional: false, range: [5, 6], loc: { @@ -45,6 +47,7 @@ Program { name: Identifier { type: "Identifier", name: "U", + optional: false, range: [7, 8], loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index a80b5aa0a11..47391333a1d 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -10,9 +10,11 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many AST Ali body: Array [ TSTypeAliasDeclaration { type: 'TSTypeAliasDeclaration', +- declare: false, id: Identifier { type: 'Identifier', name: 'T', +- optional: false, range: [5, 6], loc: { @@ -49,6 +51,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many AST Ali - name: Identifier { - type: 'Identifier', - name: 'U', +- optional: false, - - range: [7, 8], - loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 6bf2120e61b..87cf9724ca1 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -6,9 +6,11 @@ Program { body: Array [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", + declare: false, id: Identifier { type: "Identifier", name: "T", + optional: false, range: [5, 6], loc: { @@ -45,6 +47,7 @@ Program { name: Identifier { type: "Identifier", name: "U", + optional: false, range: [7, 8], loc: { @@ -66,6 +69,7 @@ Program { name: Identifier { type: "Identifier", name: "V", + optional: false, range: [10, 11], loc: { @@ -87,6 +91,7 @@ Program { name: Identifier { type: "Identifier", name: "W", + optional: false, range: [13, 14], loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index d754f2bf397..ae944d0d396 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -10,9 +10,11 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig body: Array [ TSTypeAliasDeclaration { type: 'TSTypeAliasDeclaration', +- declare: false, id: Identifier { type: 'Identifier', name: 'T', +- optional: false, range: [5, 6], loc: { @@ -49,6 +51,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - name: Identifier { - type: 'Identifier', - name: 'U', +- optional: false, - - range: [7, 8], - loc: { @@ -71,6 +74,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - name: Identifier { - type: 'Identifier', - name: 'V', +- optional: false, - - range: [10, 11], - loc: { @@ -93,6 +97,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - name: Identifier { - type: 'Identifier', - name: 'W', +- optional: false, - - range: [13, 14], - loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index 424ed29eb52..b1c370c49c1 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -6,9 +6,11 @@ Program { body: Array [ TSTypeAliasDeclaration { type: "TSTypeAliasDeclaration", + declare: false, id: Identifier { type: "Identifier", name: "T", + optional: false, range: [5, 6], loc: { diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot index 9cc16a451ec..4446a09bb25 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,60 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration valid AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSTypeAliasDeclaration { + type: 'TSTypeAliasDeclaration', +- declare: false, + id: Identifier { + type: 'Identifier', + name: 'T', +- optional: false, + + range: [5, 6], + loc: { + start: { column: 5, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + typeAnnotation: TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [0, 11], + loc: { + start: { column: 0, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot index d7290bd926d..03700b02f70 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [6, 7], loc: { @@ -38,6 +40,7 @@ Program { }, }, ], + declare: false, kind: "const", range: [0, 12], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot index 65c9ece0d43..9ae06997902 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration VariableDeclaration const-with-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + init: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [6, 11], + loc: { + start: { column: 6, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'const', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot index ac4cd6b70d8..ea430a699c8 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [6, 7], loc: { @@ -38,6 +40,7 @@ Program { }, }, ], + declare: false, kind: "const", range: [0, 12], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot index 56007597c38..5f3ff239774 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration VariableDeclaration const-without-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + init: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + + range: [6, 11], + loc: { + start: { column: 6, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'const', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 19c59fcc338..8f6b0cfaf0c 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [12, 13], loc: { diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 005dc078e1d..a10d69fe363 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,54 @@ exports[`AST Fixtures declaration VariableDeclaration declare AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + init: null, + + range: [12, 13], + loc: { + start: { column: 12, line: 1 }, + end: { column: 13, line: 1 }, + }, + }, + ], + declare: true, + kind: 'let', + + range: [0, 14], + loc: { + start: { column: 0, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 15], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot index a1c7625b457..4bfa687da32 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [4, 5], loc: { @@ -38,6 +40,7 @@ Program { }, }, ], + declare: false, kind: "let", range: [0, 10], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot index 2697799a415..1462820da10 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration VariableDeclaration let-with-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + init: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + + range: [4, 9], + loc: { + start: { column: 4, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'let', + + range: [0, 10], + loc: { + start: { column: 0, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 11], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot index 86d5e5fb9d1..d81de6670f5 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [4, 5], loc: { @@ -28,6 +30,7 @@ Program { }, }, ], + declare: false, kind: "let", range: [0, 6], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot index 8082a31f808..f7d843faabd 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,54 @@ exports[`AST Fixtures declaration VariableDeclaration let-without-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + init: null, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'let', + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot index f34767c5d50..c20575baa83 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [4, 5], loc: { @@ -29,9 +31,11 @@ Program { }, VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "y", + optional: false, range: [7, 8], loc: { @@ -49,9 +53,11 @@ Program { }, VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "z", + optional: false, range: [10, 11], loc: { @@ -68,6 +74,7 @@ Program { }, }, ], + declare: false, kind: "let", range: [0, 12], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot index 10b9167907c..e283da78f1e 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,98 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + init: null, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'y', +- optional: false, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + init: null, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'z', +- optional: false, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + init: null, + + range: [10, 11], + loc: { + start: { column: 10, line: 1 }, + end: { column: 11, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'let', + + range: [0, 12], + loc: { + start: { column: 0, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 13], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot index d0b455dc1a2..31ff00f49fb 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [4, 5], loc: { @@ -38,6 +40,7 @@ Program { }, }, ], + declare: false, kind: "var", range: [0, 10], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot index b107c9499d4..dd4d70e9ddc 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,64 @@ exports[`AST Fixtures declaration VariableDeclaration var-with-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + init: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [8, 9], + loc: { + start: { column: 8, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + + range: [4, 9], + loc: { + start: { column: 4, line: 1 }, + end: { column: 9, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'var', + + range: [0, 10], + loc: { + start: { column: 0, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 11], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot index 9af840c2c53..38b1fcfe0c2 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot @@ -9,9 +9,11 @@ Program { declarations: Array [ VariableDeclarator { type: "VariableDeclarator", + definite: false, id: Identifier { type: "Identifier", name: "x", + optional: false, range: [4, 5], loc: { @@ -28,6 +30,7 @@ Program { }, }, ], + declare: false, kind: "var", range: [0, 6], diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot index b8594239a06..7d1b618cad6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,54 @@ exports[`AST Fixtures declaration VariableDeclaration var-without-value AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + VariableDeclaration { + type: 'VariableDeclaration', + declarations: Array [ + VariableDeclarator { + type: 'VariableDeclarator', +- definite: false, + id: Identifier { + type: 'Identifier', + name: 'x', +- optional: false, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + init: null, + + range: [4, 5], + loc: { + start: { column: 4, line: 1 }, + end: { column: 5, line: 1 }, + }, + }, + ], +- declare: false, + kind: 'var', + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot index 00745c8a8d3..8a6df23d6a3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot @@ -55,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot index b6b30dd18c6..8ccbd8202c3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot @@ -61,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot index abb1554d8a2..a3b985799f4 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot @@ -55,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot index bd3b115af80..8ae414860c6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot @@ -61,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot index 24de40f9aae..9ac161655c2 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot @@ -55,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot index 3ca8eaf26ea..a1de6a75a0d 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot @@ -61,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot index e30dd5e502f..516e2665f52 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot @@ -54,6 +54,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot index 100c519c06c..cc1a41a56b9 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot @@ -60,6 +60,7 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot index 06a3b3705ed..9d0b3d306d7 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot @@ -55,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot index f831283bcb4..6f9a498971c 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot @@ -61,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot index 1c8247fb96d..e1230755754 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [41, 44], loc: { @@ -63,6 +64,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [15, 18], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot index 420e13ca4bf..5be300528db 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [41, 44], loc: { @@ -63,6 +64,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [15, 18], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot index b0e78060a09..9a51b8f4ef8 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [44, 47], loc: { @@ -54,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { @@ -64,6 +66,7 @@ Program { superClass: Identifier { type: "Identifier", name: "Bar", + optional: false, range: [18, 21], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot index 7949a056f9a..c4c38eece16 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot @@ -22,6 +22,7 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [44, 47], loc: { @@ -60,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { @@ -70,6 +72,7 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - superClass: Identifier { type: 'Identifier', name: 'Bar', +- optional: false, range: [18, 21], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot index 0f0fa0f2a10..57e2030bf07 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [31, 34], loc: { @@ -55,6 +56,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot index fd302779cf1..8b707c3dabd 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [31, 34], loc: { @@ -61,6 +62,7 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot index d862c8f8648..442610bed95 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [33, 36], loc: { @@ -55,6 +56,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot index c26ec2b5985..be682606071 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [33, 36], loc: { @@ -61,6 +62,7 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot index 6a1c4d1b7ec..9384270e41d 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [30, 33], loc: { @@ -55,6 +56,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot index 9eb4ac8ef9b..9770f7cc2c0 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot @@ -23,6 +23,7 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [30, 33], loc: { @@ -61,6 +62,7 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot index 41928f7e572..7e112c6c207 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [32, 35], loc: { @@ -55,6 +56,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot index 7f48bba2e58..83680e88455 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot @@ -22,6 +22,7 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [32, 35], loc: { @@ -61,6 +62,7 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot index 6733de847c8..fde84261d28 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "foo", + optional: false, range: [30, 33], loc: { @@ -54,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot index c5c6c8589ee..08331aede3b 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot @@ -22,6 +22,7 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A key: Identifier { type: 'Identifier', name: 'foo', +- optional: false, range: [30, 33], loc: { @@ -60,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot index a5341fd2f70..75cb9c5fb29 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [23, 27], loc: { @@ -44,6 +45,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot index b08e790e91d..639152e55b3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot @@ -22,6 +22,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm key: Identifier { type: 'Identifier', name: 'prop', +- optional: false, range: [23, 27], loc: { @@ -50,6 +51,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot index 0cc63f22486..4bf1c177c54 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [23, 27], loc: { @@ -54,6 +55,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot index 2d4b943581c..da9b4802312 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot @@ -22,6 +22,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig key: Identifier { type: 'Identifier', name: 'prop', +- optional: false, range: [23, 27], loc: { @@ -60,6 +61,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig id: Identifier { type: 'Identifier', name: 'Foo', +- optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot index be65f1b2fcd..87062df188f 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [23, 27], loc: { @@ -62,6 +63,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot index 9e9448b46f1..8a495215bd0 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [23, 27], loc: { @@ -72,6 +73,7 @@ Program { id: Identifier { type: "Identifier", name: "Foo", + optional: false, range: [6, 9], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot index 508caf4b944..f772edce544 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { expression: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { @@ -25,6 +26,7 @@ Program { typeName: Identifier { type: "Identifier", name: "bar", + optional: false, range: [14, 17], loc: { @@ -51,6 +53,7 @@ Program { typeName: Identifier { type: "Identifier", name: "baz", + optional: false, range: [28, 31], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot index 0d7d689095e..5f662cc7bc0 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,97 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + typeAnnotation: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'bar', +- optional: false, + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [14, 17], + loc: { + start: { column: 14, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [0, 17], + loc: { + start: { column: 0, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + typeAnnotation: TSTypeReference { + type: 'TSTypeReference', + typeName: Identifier { + type: 'Identifier', + name: 'baz', +- optional: false, + + range: [28, 31], + loc: { + start: { column: 28, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + + range: [28, 31], + loc: { + start: { column: 28, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot index bb649ea977d..719447c46f0 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -51,6 +51,7 @@ Program { test: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot index a35b55978ba..4cd0698378c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,88 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: ConditionalExpression { + type: 'ConditionalExpression', + alternate: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Literal { + type: 'Literal', + raw: '0', + value: 0, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + typeAnnotation: TSNumberKeyword { + type: 'TSNumberKeyword', + + range: [23, 29], + loc: { + start: { column: 23, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [11, 29], + loc: { + start: { column: 11, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + consequent: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [6, 7], + loc: { + start: { column: 6, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + test: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot index 2194d921890..02171dda1b7 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -35,6 +35,7 @@ Program { test: Identifier { type: "Identifier", name: "foo", + optional: false, range: [1, 4], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot index 45e35dfc272..c13834b85c3 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,88 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: ConditionalExpression { + type: 'ConditionalExpression', + alternate: Literal { + type: 'Literal', + raw: '0', + value: 0, + + range: [11, 12], + loc: { + start: { column: 11, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + consequent: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [7, 8], + loc: { + start: { column: 7, line: 1 }, + end: { column: 8, line: 1 }, + }, + }, + test: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [1, 4], + loc: { + start: { column: 1, line: 1 }, + end: { column: 4, line: 1 }, + }, + }, + + range: [1, 12], + loc: { + start: { column: 1, line: 1 }, + end: { column: 12, line: 1 }, + }, + }, + typeAnnotation: TSNumberKeyword { + type: 'TSNumberKeyword', + + range: [24, 30], + loc: { + start: { column: 24, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot index 7b7bb15a5af..6dd86e55c85 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { expression: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot index c167cbcb46b..8deecbff393 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,57 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + typeAnnotation: TSBooleanKeyword { + type: 'TSBooleanKeyword', + + range: [14, 21], + loc: { + start: { column: 14, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 21], + loc: { + start: { column: 0, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 22], + loc: { + start: { column: 0, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot index 6197262c7a0..534eb23c449 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { expression: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { @@ -24,9 +25,11 @@ Program { TSPropertySignature { type: "TSPropertySignature", computed: false, + export: false, key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [16, 20], loc: { @@ -34,6 +37,9 @@ Program { end: { column: 20, line: 1 }, }, }, + optional: false, + readonly: false, + static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSLiteralType { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot index 8e025552275..06beac2ea6b 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,113 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + typeAnnotation: TSTypeLiteral { + type: 'TSTypeLiteral', + members: Array [ + TSPropertySignature { + type: 'TSPropertySignature', + computed: false, +- export: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [16, 20], + loc: { + start: { column: 16, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, +- optional: false, +- readonly: false, +- static: false, + typeAnnotation: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '\\\\'value\\\\'', + value: 'value', + + range: [22, 29], + loc: { + start: { column: 22, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [22, 29], + loc: { + start: { column: 22, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [20, 29], + loc: { + start: { column: 20, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [16, 29], + loc: { + start: { column: 16, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + + range: [14, 31], + loc: { + start: { column: 14, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot index 57c80c5a805..b0e4e77d6a1 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { expression: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot index eb993d611eb..0c7c89fbecc 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,119 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + typeAnnotation: TSTupleType { + type: 'TSTupleType', + elementTypes: Array [ + TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + + range: [15, 16], + loc: { + start: { column: 15, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '2', + value: 2, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + TSLiteralType { + type: 'TSLiteralType', + literal: Literal { + type: 'Literal', + raw: '3', + value: 3, + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + ], + + range: [14, 23], + loc: { + start: { column: 14, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot index 1ad1131264a..d56b22dd7a3 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { left: Identifier { type: "Identifier", name: "foo", + optional: false, range: [0, 3], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot index a21b35204c9..56e09382a5c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,78 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: BinaryExpression { + type: 'BinaryExpression', + left: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [0, 3], + loc: { + start: { column: 0, line: 1 }, + end: { column: 3, line: 1 }, + }, + }, + operator: '===', + right: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + typeAnnotation: TSNumberKeyword { + type: 'TSNumberKeyword', + + range: [21, 27], + loc: { + start: { column: 21, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [9, 27], + loc: { + start: { column: 9, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot index 4401893b67e..cb93ef5f427 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { left: Identifier { type: "Identifier", name: "foo", + optional: false, range: [1, 4], loc: { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot index 28594822212..038cacf41e0 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,78 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: BinaryExpression { + type: 'BinaryExpression', + left: Identifier { + type: 'Identifier', + name: 'foo', +- optional: false, + + range: [1, 4], + loc: { + start: { column: 1, line: 1 }, + end: { column: 4, line: 1 }, + }, + }, + operator: '===', + right: Literal { + type: 'Literal', + raw: '1', + value: 1, + + range: [9, 10], + loc: { + start: { column: 9, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + + range: [1, 10], + loc: { + start: { column: 1, line: 1 }, + end: { column: 10, line: 1 }, + }, + }, + typeAnnotation: TSBooleanKeyword { + type: 'TSBooleanKeyword', + + range: [22, 29], + loc: { + start: { column: 22, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot index c39ffc049d1..6cf9c73f586 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [3, 7], loc: { @@ -26,6 +27,7 @@ Program { }, kind: "init", method: false, + optional: false, shorthand: false, value: Literal { type: "Literal", @@ -59,9 +61,11 @@ Program { TSPropertySignature { type: "TSPropertySignature", computed: false, + export: false, key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [32, 36], loc: { @@ -69,6 +73,9 @@ Program { end: { column: 36, line: 1 }, }, }, + optional: false, + readonly: false, + static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot index bad308efe92..318e1192b69 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,138 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: ObjectExpression { + type: 'ObjectExpression', + properties: Array [ + Property { + type: 'Property', + computed: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [3, 7], + loc: { + start: { column: 3, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + kind: 'init', + method: false, +- optional: false, + shorthand: false, + value: Literal { + type: 'Literal', + raw: '\\\\'string\\\\'', + value: 'string', + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [3, 17], + loc: { + start: { column: 3, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [1, 19], + loc: { + start: { column: 1, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + typeAnnotation: TSTypeLiteral { + type: 'TSTypeLiteral', + members: Array [ + TSPropertySignature { + type: 'TSPropertySignature', + computed: false, +- export: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [32, 36], + loc: { + start: { column: 32, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, +- optional: false, +- readonly: false, +- static: false, + typeAnnotation: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSStringKeyword { + type: 'TSStringKeyword', + + range: [38, 44], + loc: { + start: { column: 38, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + + range: [36, 44], + loc: { + start: { column: 36, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + + range: [32, 44], + loc: { + start: { column: 32, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + ], + + range: [30, 46], + loc: { + start: { column: 30, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + + range: [1, 46], + loc: { + start: { column: 1, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + + range: [0, 48], + loc: { + start: { column: 0, line: 1 }, + end: { column: 48, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 49], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot index 9100755681a..bb2b0604a5b 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot @@ -17,6 +17,7 @@ Program { key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [3, 7], loc: { @@ -26,6 +27,7 @@ Program { }, kind: "init", method: false, + optional: false, shorthand: false, value: Literal { type: "Literal", @@ -59,9 +61,11 @@ Program { TSPropertySignature { type: "TSPropertySignature", computed: false, + export: false, key: Identifier { type: "Identifier", name: "prop", + optional: false, range: [32, 36], loc: { @@ -69,6 +73,9 @@ Program { end: { column: 36, line: 1 }, }, }, + optional: false, + readonly: false, + static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", typeAnnotation: TSStringKeyword { diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot index 982ccda73a2..c9130e3a2ee 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,138 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-parentheses AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExpressionStatement { + type: 'ExpressionStatement', + expression: TSSatisfiesExpression { + type: 'TSSatisfiesExpression', + expression: ObjectExpression { + type: 'ObjectExpression', + properties: Array [ + Property { + type: 'Property', + computed: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [3, 7], + loc: { + start: { column: 3, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + kind: 'init', + method: false, +- optional: false, + shorthand: false, + value: Literal { + type: 'Literal', + raw: '\\\\'string\\\\'', + value: 'string', + + range: [9, 17], + loc: { + start: { column: 9, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + + range: [3, 17], + loc: { + start: { column: 3, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + ], + + range: [1, 19], + loc: { + start: { column: 1, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + typeAnnotation: TSTypeLiteral { + type: 'TSTypeLiteral', + members: Array [ + TSPropertySignature { + type: 'TSPropertySignature', + computed: false, +- export: false, + key: Identifier { + type: 'Identifier', + name: 'prop', +- optional: false, + + range: [32, 36], + loc: { + start: { column: 32, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, +- optional: false, +- readonly: false, +- static: false, + typeAnnotation: TSTypeAnnotation { + type: 'TSTypeAnnotation', + typeAnnotation: TSStringKeyword { + type: 'TSStringKeyword', + + range: [38, 44], + loc: { + start: { column: 38, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + + range: [36, 44], + loc: { + start: { column: 36, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + + range: [32, 44], + loc: { + start: { column: 32, line: 1 }, + end: { column: 44, line: 1 }, + }, + }, + ], + + range: [30, 46], + loc: { + start: { column: 30, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + + range: [1, 46], + loc: { + start: { column: 1, line: 1 }, + end: { column: 46, line: 1 }, + }, + }, + + range: [0, 48], + loc: { + start: { column: 0, line: 1 }, + end: { column: 48, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 49], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index e6ea1804e84..bcb32f9d4e8 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -2,28 +2,97 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` Set { + "declaration/ClassDeclaration/fixtures/abstract/fixture.ts", + "declaration/ClassDeclaration/fixtures/declare/fixture.ts", + "declaration/ClassDeclaration/fixtures/decorator-many/fixture.ts", + "declaration/ClassDeclaration/fixtures/decorator-one/fixture.ts", + "declaration/ClassDeclaration/fixtures/empty/fixture.ts", + "declaration/ClassDeclaration/fixtures/extends-literal/fixture.ts", + "declaration/ClassDeclaration/fixtures/extends-type-param/fixture.ts", + "declaration/ClassDeclaration/fixtures/extends/fixture.ts", "declaration/ClassDeclaration/fixtures/implements-many/fixture.ts", "declaration/ClassDeclaration/fixtures/implements-one/fixture.ts", "declaration/ClassDeclaration/fixtures/type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/with-member-one/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/assertion/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/named/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/class-expression/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/class/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/function/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/identifier/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/interface/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/class/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/declare-function/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/enum/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/function-declaration/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/identifier-many/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/interface/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/namespace/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/type-alias/fixture.ts", + "declaration/ExportNamedDeclaration/fixtures/variable-declaration/fixture.ts", + "declaration/FunctionDeclaration/fixtures/async/fixture.ts", + "declaration/FunctionDeclaration/fixtures/empty/fixture.ts", + "declaration/FunctionDeclaration/fixtures/generator/fixture.ts", + "declaration/FunctionDeclaration/fixtures/param-many/fixture.ts", + "declaration/FunctionDeclaration/fixtures/param-one/fixture.ts", + "declaration/FunctionDeclaration/fixtures/returnType/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-many/fixture.ts", "declaration/FunctionDeclaration/fixtures/type-param-one/fixture.ts", + "declaration/ImportDeclaration/fixtures/assertion/fixture.ts", + "declaration/ImportDeclaration/fixtures/default-and-named-many/fixture.ts", + "declaration/ImportDeclaration/fixtures/default-and-named-none/fixture.ts", + "declaration/ImportDeclaration/fixtures/default-and-named-one/fixture.ts", + "declaration/ImportDeclaration/fixtures/default-and-namespace/fixture.ts", + "declaration/ImportDeclaration/fixtures/default/fixture.ts", + "declaration/ImportDeclaration/fixtures/named-many/fixture.ts", + "declaration/ImportDeclaration/fixtures/named-one/fixture.ts", + "declaration/TSDeclareFunction/fixtures/empty/fixture.ts", + "declaration/TSDeclareFunction/fixtures/generator/fixture.ts", + "declaration/TSDeclareFunction/fixtures/param-many/fixture.ts", + "declaration/TSDeclareFunction/fixtures/param-one/fixture.ts", + "declaration/TSDeclareFunction/fixtures/returnType/fixture.ts", "declaration/TSDeclareFunction/fixtures/type-param-many/fixture.ts", "declaration/TSDeclareFunction/fixtures/type-param-one/fixture.ts", + "declaration/TSDeclareFunction/fixtures/without-declare/fixture.ts", + "declaration/TSEnumDeclaration/fixtures/const/fixture.ts", + "declaration/TSEnumDeclaration/fixtures/declare/fixture.ts", + "declaration/TSEnumDeclaration/fixtures/empty/fixture.ts", + "declaration/TSEnumDeclaration/fixtures/with-member-one/fixture.ts", + "declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/fixture.ts", + "declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/fixture.ts", "declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/fixture.ts", + "declaration/TSInterfaceDeclaration/fixtures/declare/fixture.ts", + "declaration/TSInterfaceDeclaration/fixtures/empty/fixture.ts", "declaration/TSInterfaceDeclaration/fixtures/extends-many/fixture.ts", "declaration/TSInterfaceDeclaration/fixtures/extends-one/fixture.ts", "declaration/TSInterfaceDeclaration/fixtures/type-param-many/fixture.ts", "declaration/TSInterfaceDeclaration/fixtures/type-param-one/fixture.ts", + "declaration/TSInterfaceDeclaration/fixtures/with-member-one/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/global/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-declare-no-body/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-id-identifier/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-id-literal/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/fixture.ts", + "declaration/TSNamespaceExportDeclaration/fixtures/valid/fixture.ts", + "declaration/TSTypeAliasDeclaration/fixtures/declare/fixture.ts", "declaration/TSTypeAliasDeclaration/fixtures/type-param-many/fixture.ts", "declaration/TSTypeAliasDeclaration/fixtures/type-param-one/fixture.ts", + "declaration/TSTypeAliasDeclaration/fixtures/valid/fixture.ts", + "declaration/VariableDeclaration/fixtures/const-with-value/fixture.ts", + "declaration/VariableDeclaration/fixtures/const-without-value/fixture.ts", + "declaration/VariableDeclaration/fixtures/declare/fixture.ts", + "declaration/VariableDeclaration/fixtures/let-with-value/fixture.ts", + "declaration/VariableDeclaration/fixtures/let-without-value/fixture.ts", + "declaration/VariableDeclaration/fixtures/multiple-declarations/fixture.ts", + "declaration/VariableDeclaration/fixtures/var-with-value/fixture.ts", + "declaration/VariableDeclaration/fixtures/var-without-value/fixture.ts", "element/AccessorProperty/fixtures/key-computed-complex/fixture.ts", "element/AccessorProperty/fixtures/key-computed-number/fixture.ts", "element/AccessorProperty/fixtures/key-computed-string/fixture.ts", @@ -38,5 +107,15 @@ Set { "element/AccessorProperty/fixtures/no-annotation-no-value/fixture.ts", "element/AccessorProperty/fixtures/no-annotation-with-value/fixture.ts", "expression/TSSatisfiesExpression/fixtures/arrow-func-with-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/chained-satisfies/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/identifier-keyword/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/identifier-object-type/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture.ts", + "expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture.ts", } `; diff --git a/packages/parser/tests/lib/__snapshots__/services.ts.snap b/packages/parser/tests/lib/__snapshots__/services.ts.snap index 7dfa8a7b4d4..3cab382777c 100644 --- a/packages/parser/tests/lib/__snapshots__/services.ts.snap +++ b/packages/parser/tests/lib/__snapshots__/services.ts.snap @@ -6,6 +6,7 @@ exports[`services fixtures/isolated-file.src 1`] = ` { "declarations": [ { + "definite": false, "id": { "loc": { "end": { @@ -18,6 +19,7 @@ exports[`services fixtures/isolated-file.src 1`] = ` }, }, "name": "x", + "optional": false, "range": [ 6, 7, @@ -117,6 +119,7 @@ exports[`services fixtures/isolated-file.src 1`] = ` "type": "VariableDeclarator", }, ], + "declare": false, "kind": "const", "loc": { "end": { From 3c5877d4609f0819f4321258853f5bd97283b6f0 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Fri, 20 Jan 2023 10:42:23 -0500 Subject: [PATCH 4/8] Remove optionality altogether --- packages/ast-spec/src/base/ClassBase.ts | 22 +- packages/ast-spec/src/base/FunctionBase.ts | 11 +- .../ast-spec/src/base/MethodDefinitionBase.ts | 10 +- .../src/base/PropertyDefinitionBase.ts | 14 +- .../src/base/TSFunctionSignatureBase.ts | 4 +- packages/ast-spec/src/base/TSHeritageBase.ts | 2 +- .../abstract/snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../declare/snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 6 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../empty/snapshots/1-TSESTree-AST.shot | 5 + .../empty/snapshots/5-AST-Alignment-AST.shot | 5 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 6 + .../extends/snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 6 + .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 7 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../type-param/snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 6 + .../snapshots/1-TSESTree-AST.shot | 8 + .../snapshots/5-AST-Alignment-AST.shot | 8 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../assertion/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../named/snapshots/1-TSESTree-AST.shot | 1 + .../named/snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 51 +- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 51 +- .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../class/snapshots/1-TSESTree-AST.shot | 5 + .../class/snapshots/5-AST-Alignment-AST.shot | 5 + .../function/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../identifier/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../interface/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../aliased/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../class/snapshots/1-TSESTree-AST.shot | 5 + .../class/snapshots/5-AST-Alignment-AST.shot | 5 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../enum/snapshots/1-TSESTree-AST.shot | 1 + .../enum/snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../interface/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../namespace/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../type-alias/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../async/snapshots/1-TSESTree-AST.shot | 2 + .../async/snapshots/5-AST-Alignment-AST.shot | 2 + .../empty/snapshots/1-TSESTree-AST.shot | 2 + .../empty/snapshots/5-AST-Alignment-AST.shot | 2 + .../generator/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../param-many/snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../param-one/snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../returnType/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 11 +- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../declaration/FunctionDeclaration/spec.ts | 2 +- .../assertion/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 7 + .../snapshots/5-AST-Alignment-AST.shot | 7 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../default/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../named-many/snapshots/1-TSESTree-AST.shot | 6 + .../snapshots/5-AST-Alignment-AST.shot | 6 + .../named-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../empty/snapshots/1-TSESTree-AST.shot | 1 + .../empty/snapshots/5-AST-Alignment-AST.shot | 1 + .../generator/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../param-many/snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../param-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../returnType/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../src/declaration/TSDeclareFunction/spec.ts | 3 +- .../const/snapshots/1-TSESTree-AST.shot | 1 + .../const/snapshots/5-AST-Alignment-AST.shot | 1 + .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../empty/snapshots/1-TSESTree-AST.shot | 1 + .../empty/snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../declare/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../empty/snapshots/1-TSESTree-AST.shot | 2 + .../empty/snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 4 + .../extends-one/snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 5 + .../snapshots/5-AST-Alignment-AST.shot | 5 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../TSInterfaceDeclaration/spec.ts | 5 +- .../global/snapshots/1-TSESTree-AST.shot | 1 + .../global/snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../valid/snapshots/1-TSESTree-AST.shot | 1 + .../valid/snapshots/5-AST-Alignment-AST.shot | 1 + .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 4 + .../snapshots/5-AST-Alignment-AST.shot | 10 +- .../valid/snapshots/1-TSESTree-AST.shot | 1 + .../valid/snapshots/5-AST-Alignment-AST.shot | 1 + .../TSTypeAliasDeclaration/spec.ts | 3 +- .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../declare/snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../key-private/snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../key-string/snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 11 + .../snapshots/5-AST-Alignment-AST.shot | 11 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 9 + .../snapshots/5-AST-Alignment-AST.shot | 9 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/5-AST-Alignment-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../snapshots/1-TSESTree-AST.shot | 10 + .../ast-spec/src/element/TSEnumMember/spec.ts | 2 +- .../src/element/TSIndexSignature/spec.ts | 4 +- .../src/element/TSMethodSignature/spec.ts | 6 +- .../src/element/TSPropertySignature/spec.ts | 6 +- .../ArrowFunctionExpression/spec.ts | 4 +- .../src/expression/CallExpression/spec.ts | 2 +- .../src/expression/ClassExpression/spec.ts | 6 +- .../src/expression/Identifier/spec.ts | 4 +- .../src/expression/NewExpression/spec.ts | 2 +- .../snapshots/1-TSESTree-AST.shot | 3 + .../snapshots/5-AST-Alignment-AST.shot | 3 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 1 + .../snapshots/5-AST-Alignment-AST.shot | 1 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../snapshots/1-TSESTree-AST.shot | 2 + .../snapshots/5-AST-Alignment-AST.shot | 2 + .../TaggedTemplateExpression/spec.ts | 2 +- .../src/expression/YieldExpression/spec.ts | 2 +- .../src/jsx/JSXOpeningElement/spec.ts | 2 +- .../src/parameter/ArrayPattern/spec.ts | 4 +- .../src/parameter/AssignmentPattern/spec.ts | 4 +- .../src/parameter/ObjectPattern/spec.ts | 4 +- .../src/parameter/RestElement/spec.ts | 6 +- .../src/parameter/TSParameterProperty/spec.ts | 4 +- packages/ast-spec/src/special/Program/spec.ts | 4 +- .../src/special/TSTypeParameter/spec.ts | 4 +- .../src/statement/ExpressionStatement/spec.ts | 2 +- .../ast-spec/src/type/TSMappedType/spec.ts | 6 +- .../ast-spec/src/type/TSTypeOperator/spec.ts | 2 +- .../ast-spec/src/type/TSTypeQuery/spec.ts | 2 +- .../ast-spec/src/type/TSTypeReference/spec.ts | 2 +- .../tests/fixtures-with-differences-ast.shot | 2 + packages/eslint-plugin/src/rules/indent.ts | 17 +- .../rules/no-unnecessary-type-constraint.ts | 6 +- .../tests/lib/__snapshots__/services.ts.snap | 1 + .../src/referencer/ClassVisitor.ts | 18 +- .../src/referencer/Referencer.ts | 16 +- .../class/emit-metadata/accessor-deco.ts.shot | 2 +- .../class/emit-metadata/method-deco.ts.shot | 4 +- .../emit-metadata/nested-class-inner.ts.shot | 2 +- .../emit-metadata/nested-class-outer.ts.shot | 2 +- .../emit-metadata/parameters-deco.ts.shot | 2 +- .../class/emit-metadata/property-deco.ts.shot | 2 +- packages/typescript-estree/src/convert.ts | 589 +++++++----------- packages/typescript-estree/src/node-utils.ts | 6 +- .../lib/__snapshots__/convert.test.ts.snap | 19 + .../lib/__snapshots__/parse.test.ts.snap | 41 ++ .../__snapshots__/semanticInfo.test.ts.snap | 14 + .../typescript-estree/tests/lib/parse.test.ts | 3 + .../block-trailing-comment.src.js.shot | 4 + .../comment-within-condition.src.js.shot | 2 + ...export-default-anonymous-class.src.js.shot | 15 + .../comments/jsdoc-comment.src.js.shot | 9 + .../jsx-attr-and-text-with-url.src.js.shot | 2 + .../comments/jsx-block-comment.src.js.shot | 4 + .../jsx-comment-after-jsx.src.js.shot | 4 + ...comment-after-self-closing-jsx.src.js.shot | 4 + ...sx-generic-with-comment-in-tag.src.js.shot | 2 + .../jsx-tag-comment-after-prop.src.js.shot | 4 + .../comments/jsx-tag-comments.src.js.shot | 4 + ...ext-with-multiline-non-comment.src.js.shot | 4 + .../comments/jsx-text-with-url.src.js.shot | 10 + .../jsx-with-greather-than.src.js.shot | 6 + .../comments/jsx-with-operators.src.js.shot | 6 + .../mix-line-and-block-comments.src.js.shot | 2 + .../comments/no-comment-regex.src.js.shot | 2 + .../comments/no-comment-template.src.js.shot | 4 + .../surrounding-call-comments.src.js.shot | 9 + .../surrounding-debugger-comments.src.js.shot | 5 + .../surrounding-return-comments.src.js.shot | 5 + .../surrounding-throw-comments.src.js.shot | 5 + ...urrounding-while-loop-comments.src.js.shot | 7 + ...allthrough-comment-in-function.src.js.shot | 13 + .../switch-fallthrough-comment.src.js.shot | 6 + ...no-default-comment-in-function.src.js.shot | 9 + ...lt-comment-in-nested-functions.src.js.shot | 34 + .../switch-no-default-comment.src.js.shot | 2 + .../template-string-block.src.js.shot | 4 + ...type-assertion-regression-test.src.ts.shot | 6 + .../array-literal-in-lhs.src.js.shot | 8 + .../array-literals-in-binary-expr.src.js.shot | 1 + .../as-param-with-params.src.js.shot | 10 + .../arrowFunctions/as-param.src.js.shot | 6 + .../basic-in-binary-expression.src.js.shot | 10 + .../arrowFunctions/basic.src.js.shot | 3 + .../block-body-not-object.src.js.shot | 8 + .../arrowFunctions/block-body.src.js.shot | 6 + .../error-dup-params.src.js.shot | 7 + ...rror-strict-default-param-eval.src.js.shot | 7 + .../error-strict-dup-params.src.js.shot | 7 + .../error-strict-eval-return.src.js.shot | 5 + .../error-strict-eval.src.js.shot | 6 + .../error-strict-octal.src.js.shot | 5 + .../error-strict-param-arguments.src.js.shot | 7 + .../error-strict-param-eval.src.js.shot | 7 + .../error-strict-param-names.src.js.shot | 7 + ...trict-param-no-paren-arguments.src.js.shot | 5 + ...ror-strict-param-no-paren-eval.src.js.shot | 5 + .../error-two-lines.src.js.shot | 4 + .../arrowFunctions/expression.src.js.shot | 7 + .../arrowFunctions/iife.src.js.shot | 7 + .../multiple-params.src.js.shot | 7 + .../arrowFunctions/no-auto-return.src.js.shot | 8 + .../not-strict-arguments.src.js.shot | 5 + .../not-strict-eval-params.src.js.shot | 7 + .../not-strict-eval.src.js.shot | 5 + .../not-strict-octal.src.js.shot | 5 + .../return-arrow-function.src.js.shot | 9 + .../return-sequence.src.js.shot | 17 + .../single-param-parens.src.js.shot | 5 + ...single-param-return-identifier.src.js.shot | 7 + .../arrowFunctions/single-param.src.js.shot | 5 + .../and-operator-array-object.src.js.shot | 8 + .../basics/delete-expression.src.js.shot | 5 + .../basics/do-while-statements.src.js.shot | 7 + .../identifiers-double-underscore.src.js.shot | 15 + .../javascript/basics/instanceof.src.js.shot | 3 + .../new-with-member-expression.src.js.shot | 6 + .../basics/new-without-parens.src.js.shot | 9 + .../or-operator-array-object.src.js.shot | 8 + .../basics/typeof-expression.src.js.shot | 1 + .../basics/update-expression.src.js.shot | 14 + .../basics/void-expression.src.js.shot | 2 + .../bigIntLiterals/binary.src.js.shot | 1 + .../bigIntLiterals/decimal.src.js.shot | 1 + .../javascript/bigIntLiterals/hex.src.js.shot | 1 + .../numeric-separator.src.js.shot | 1 + .../bigIntLiterals/octal.src.js.shot | 1 + .../binaryLiterals/lowercase.src.js.shot | 1 + .../binaryLiterals/uppercase.src.js.shot | 1 + .../blockBindings/const.src.js.shot | 4 + .../let-in-switchcase.src.js.shot | 4 + .../javascript/blockBindings/let.src.js.shot | 4 + .../call-expression-with-array.src.js.shot | 4 + .../call-expression-with-object.src.js.shot | 4 + .../mixed-expression.src.js.shot | 14 + .../new-expression-with-array.src.js.shot | 8 + .../new-expression-with-object.src.js.shot | 4 + .../class-accessor-properties.src.js.shot | 28 + .../class-computed-static-method.src.js.shot | 17 + .../classes/class-expression.src.js.shot | 7 + .../class-method-named-prototype.src.js.shot | 17 + .../class-method-named-static.src.js.shot | 17 + .../class-method-named-with-space.src.js.shot | 17 + .../class-one-method-super.src.js.shot | 19 + .../classes/class-one-method.src.js.shot | 17 + ...ss-private-identifier-accessor.src.js.shot | 34 + ...class-private-identifier-field.src.js.shot | 32 +- ...lass-private-identifier-method.src.js.shot | 26 + ...-static-method-named-prototype.src.js.shot | 15 + ...ass-static-method-named-static.src.js.shot | 17 + .../classes/class-static-method.src.js.shot | 17 + ...ethods-and-accessor-properties.src.js.shot | 37 ++ ...ss-two-computed-static-methods.src.js.shot | 26 + ...o-methods-computed-constructor.src.js.shot | 24 + .../class-two-methods-semi.src.js.shot | 26 + .../class-two-methods-three-semi.src.js.shot | 26 + .../class-two-methods-two-semi.src.js.shot | 26 + .../classes/class-two-methods.src.js.shot | 26 + ...atic-methods-named-constructor.src.js.shot | 26 + ...ss-with-constructor-parameters.src.js.shot | 21 + ...ss-with-constructor-with-space.src.js.shot | 17 + .../class-with-constructor.src.js.shot | 17 + .../derived-class-assign-to-var.src.js.shot | 10 + .../derived-class-expression.src.js.shot | 7 + .../empty-class-double-semi.src.js.shot | 8 + .../classes/empty-class-semi.src.js.shot | 8 + .../classes/empty-class.src.js.shot | 8 + .../empty-literal-derived-class.src.js.shot | 8 + .../invalid-class-declaration.src.js.shot | 6 + ...valid-class-setter-declaration.src.js.shot | 17 + .../named-class-expression.src.js.shot | 9 + ...named-derived-class-expression.src.js.shot | 9 + .../comma-operator-conditional.src.js.shot | 6 + .../comma-operator-multi.src.js.shot | 2 + .../comma-operator-nested.src.js.shot | 2 + .../comma-operator-return.src.js.shot | 13 + .../comma-operator-simple-nested.src.js.shot | 2 + .../comma-operator-simple.src.js.shot | 2 + .../class-constructor.src.js.shot | 21 + .../defaultParams/class-method.src.js.shot | 21 + .../defaultParams/declaration.src.js.shot | 9 + .../defaultParams/expression.src.js.shot | 10 + .../defaultParams/method.src.js.shot | 12 + .../defaultParams/not-all-params.src.js.shot | 13 + .../arrow-param-array.src.js.shot | 9 + .../arrow-param-nested-array.src.js.shot | 13 + ...rrow-param-nested-object-named.src.js.shot | 19 + .../arrow-param-nested-object.src.js.shot | 19 + .../arrow-param-object.src.js.shot | 11 + .../param-defaults-array.src.js.shot | 11 + .../param-defaults-object-nested.src.js.shot | 25 + .../param-defaults-object.src.js.shot | 13 + .../array-const-undefined.src.js.shot | 4 + .../array-let-undefined.src.js.shot | 4 + .../object-const-named.src.js.shot | 6 + .../object-const-undefined.src.js.shot | 6 + .../object-let-named.src.js.shot | 6 + .../object-let-undefined.src.js.shot | 6 + .../param-array.src.js.shot | 11 + .../param-object-short.src.js.shot | 16 + .../param-object-wrapped.src.js.shot | 16 + .../param-object.src.js.shot | 16 + .../destructuring-and-forOf/loop.src.js.shot | 6 + .../complex-destructured.src.js.shot | 20 + .../destructured-array-literal.src.js.shot | 16 + .../destructuring-param.src.js.shot | 18 + ...plex-destructured-spread-first.src.js.shot | 20 + .../invalid-not-final-array-empty.src.js.shot | 10 + .../multi-destructured.src.js.shot | 12 + .../not-final-array.src.js.shot | 12 + .../single-destructured.src.js.shot | 10 + .../var-complex-destructured.src.js.shot | 19 + ...var-destructured-array-literal.src.js.shot | 15 + .../var-multi-destructured.src.js.shot | 11 + .../var-single-destructured.src.js.shot | 9 + .../destructuring/array-member.src.js.shot | 7 + .../destructuring/array-to-array.src.js.shot | 11 + .../array-var-undefined.src.js.shot | 4 + ...l-expression-destruction-array.src.js.shot | 4 + ...-expression-destruction-object.src.js.shot | 4 + ...class-constructor-params-array.src.js.shot | 23 + ...structor-params-defaults-array.src.js.shot | 27 + ...tructor-params-defaults-object.src.js.shot | 31 + ...lass-constructor-params-object.src.js.shot | 27 + .../class-method-params-array.src.js.shot | 23 + ...s-method-params-defaults-array.src.js.shot | 27 + ...-method-params-defaults-object.src.js.shot | 31 + .../class-method-params-object.src.js.shot | 27 + .../defaults-array-all.src.js.shot | 16 + ...ts-array-longform-nested-multi.src.js.shot | 22 + .../defaults-array-multi.src.js.shot | 12 + .../defaults-array-nested-all.src.js.shot | 14 + .../defaults-array-nested-multi.src.js.shot | 12 + .../destructuring/defaults-array.src.js.shot | 9 + .../defaults-object-all.src.js.shot | 22 + .../defaults-object-assign.src.js.shot | 15 + .../defaults-object-longform-all.src.js.shot | 22 + ...defaults-object-longform-multi.src.js.shot | 18 + .../defaults-object-longform.src.js.shot | 10 + .../defaults-object-mixed-multi.src.js.shot | 18 + .../defaults-object-multi.src.js.shot | 18 + .../defaults-object-nested-all.src.js.shot | 20 + .../defaults-object-nested-multi.src.js.shot | 18 + .../destructuring/defaults-object.src.js.shot | 10 + .../destructured-array-catch.src.js.shot | 23 + .../destructured-object-catch.src.js.shot | 25 + ...invalid-defaults-object-assign.src.js.shot | 13 + .../destructuring/named-param.src.js.shot | 9 + .../destructuring/nested-array.src.js.shot | 8 + .../destructuring/nested-object.src.js.shot | 20 + .../object-var-named.src.js.shot | 6 + .../object-var-undefined.src.js.shot | 6 + .../param-defaults-array.src.js.shot | 11 + .../param-defaults-object-nested.src.js.shot | 23 + .../param-defaults-object.src.js.shot | 13 + .../params-array-wrapped.src.js.shot | 12 + .../destructuring/params-array.src.js.shot | 11 + .../params-multi-object.src.js.shot | 13 + .../params-nested-array.src.js.shot | 13 + .../params-nested-object.src.js.shot | 19 + .../params-object-wrapped.src.js.shot | 16 + .../destructuring/params-object.src.js.shot | 15 + .../destructuring/sparse-array.src.js.shot | 9 + .../javascript/directives/block.src.js.shot | 8 + .../directives/directive-in-class.src.js.shot | 46 ++ .../directives/first-expression.src.js.shot | 2 + .../function-non-strict.src.js.shot | 6 + .../non-directive-string.src.js.shot | 4 + .../directives/program-order.src.js.shot | 2 + .../javascript/directives/program.src.js.shot | 3 + .../async-generators.src.js.shot | 5 + .../async-iterator.src.js.shot | 9 + .../dynamic-import.src.js.shot | 6 + .../arg-spread.src.js.shot | 16 + .../destructuring-assign-mirror.src.js.shot | 18 + ...nction-parameter-object-spread.src.js.shot | 12 + .../invalid-rest-trailing-comma.src.js.shot | 17 + .../object-rest.src.js.shot | 23 + .../property-spread.src.js.shot | 20 + .../shorthand-method-args.src.js.shot | 21 + .../shorthand-methods.src.js.shot | 22 + .../shorthand-properties.src.js.shot | 18 + .../single-spread.src.js.shot | 18 + .../spread-trailing-comma.src.js.shot | 11 + .../two-spread.src.js.shot | 16 + .../exponential-operators.src.js.shot | 5 + .../javascript/for/for-loop.src.js.shot | 6 + .../javascript/for/for-with-coma.src.js.shot | 12 + .../javascript/for/for-with-const.src.js.shot | 6 + .../for/for-with-function.src.js.shot | 11 + .../javascript/for/for-with-let.src.js.shot | 6 + .../javascript/forIn/for-in-array.src.js.shot | 2 + .../forIn/for-in-bare-nonstrict.src.js.shot | 23 + .../for-in-destruction-object.src.js.shot | 12 + .../forIn/for-in-destruction.src.js.shot | 8 + .../forIn/for-in-object-with-body.src.js.shot | 2 + .../forIn/for-in-with-assigment.src.js.shot | 10 + .../for-in-with-bare-assigment.src.js.shot | 6 + .../forIn/for-in-with-const.src.js.shot | 10 + .../for-in-with-milti-asigment.src.js.shot | 8 + .../forIn/for-in-with-rest.src.js.shot | 13 + .../forIn/for-in-with-var.src.js.shot | 10 + .../javascript/forOf/for-of-array.src.js.shot | 6 + .../for-of-destruction-object.src.js.shot | 12 + .../forOf/for-of-destruction.src.js.shot | 8 + .../forOf/for-of-object.src.js.shot | 6 + ...r-of-with-function-initializer.src.js.shot | 13 + .../forOf/for-of-with-rest.src.js.shot | 13 + .../for-of-with-var-and-braces.src.js.shot | 8 + .../for-of-with-var-and-no-braces.src.js.shot | 8 + ...or-of-with-const-and-no-braces.src.js.shot | 8 + ...-for-of-with-let-and-no-braces.src.js.shot | 8 + .../return-multiline-sequence.src.js.shot | 17 + .../function/return-sequence.src.js.shot | 17 + .../anonymous-generator.src.js.shot | 7 + .../async-generator-function.src.js.shot | 5 + .../async-generator-method.src.js.shot | 22 + .../generators/double-yield.src.js.shot | 5 + .../empty-generator-declaration.src.js.shot | 5 + .../generator-declaration.src.js.shot | 8 + .../generators/yield-delegation.src.js.shot | 7 + .../yield-without-value-in-call.src.js.shot | 8 + .../yield-without-value-no-semi.src.js.shot | 5 + .../yield-without-value.src.js.shot | 5 + .../return-identifier.src.js.shot | 2 + .../hexLiterals/lowercase.src.js.shot | 1 + .../hexLiterals/uppercase.src.js.shot | 1 + .../importMeta/simple-import-meta.src.js.shot | 7 + .../javascript/labels/label-break.src.js.shot | 4 + .../labels/label-continue.src.js.shot | 4 + .../modules/error-delete.src.js.shot | 5 + .../modules/error-function.src.js.shot | 7 + .../modules/error-strict.src.js.shot | 12 + .../export-async-named-function.src.js.shot | 5 + .../modules/export-const.src.js.shot | 2 + ...t-default-async-named-function.src.js.shot | 5 + .../modules/export-default-class.src.js.shot | 6 + .../export-default-function.src.js.shot | 3 + .../export-default-named-class.src.js.shot | 8 + .../export-default-named-function.src.js.shot | 5 + .../modules/export-default-object.src.js.shot | 2 + .../modules/export-default-value.src.js.shot | 2 + .../modules/export-from-default.src.js.shot | 4 + .../export-from-named-as-default.src.js.shot | 4 + ...export-from-named-as-specifier.src.js.shot | 4 + ...xport-from-named-as-specifiers.src.js.shot | 8 + .../modules/export-from-specifier.src.js.shot | 4 + .../export-from-specifiers.src.js.shot | 8 + .../modules/export-function.src.js.shot | 5 + .../javascript/modules/export-let.src.js.shot | 2 + .../export-named-as-default.src.js.shot | 4 + .../export-named-as-specifier.src.js.shot | 4 + .../export-named-as-specifiers.src.js.shot | 8 + .../modules/export-named-class.src.js.shot | 8 + .../export-named-specifier.src.js.shot | 4 + .../export-named-specifiers-comma.src.js.shot | 8 + .../export-named-specifiers.src.js.shot | 8 + .../export-var-anonymous-function.src.js.shot | 5 + .../modules/export-var-number.src.js.shot | 2 + .../javascript/modules/export-var.src.js.shot | 2 + ...t-default-and-named-specifiers.src.js.shot | 6 + ...fault-and-namespace-specifiers.src.js.shot | 4 + .../modules/import-default-as.src.js.shot | 4 + .../modules/import-default.src.js.shot | 2 + .../modules/import-jquery.src.js.shot | 2 + .../import-named-as-specifier.src.js.shot | 4 + .../import-named-as-specifiers.src.js.shot | 8 + .../import-named-specifier.src.js.shot | 4 + .../import-named-specifiers-comma.src.js.shot | 8 + .../import-named-specifiers.src.js.shot | 8 + .../import-namespace-specifier.src.js.shot | 2 + .../modules/import-null-as-nil.src.js.shot | 4 + .../modules/invalid-await.src.js.shot | 2 + .../modules/invalid-class.src.js.shot | 6 + .../invalid-export-named-default.src.js.shot | 4 + .../newTarget/invalid-new-target.src.js.shot | 6 + .../invalid-unknown-property.src.js.shot | 10 + .../newTarget/simple-new-target.src.js.shot | 11 + .../object-literal-in-lhs.src.js.shot | 8 + .../computed-addition-property.src.js.shot | 4 + .../computed-and-identifier.src.js.shot | 5 + .../computed-getter-and-setter.src.js.shot | 13 + .../computed-string-property.src.js.shot | 4 + .../computed-variable-property.src.js.shot | 6 + ...alone-expression-with-addition.src.js.shot | 1 + ...ndalone-expression-with-method.src.js.shot | 6 + .../standalone-expression.src.js.shot | 3 + .../error-proto-property.src.js.shot | 12 + .../error-proto-string-property.src.js.shot | 8 + .../strict-duplicate-properties.src.js.shot | 6 + ...ct-duplicate-string-properties.src.js.shot | 2 + .../method-property.src.js.shot | 9 + .../simple-method-named-get.src.js.shot | 8 + .../simple-method-named-set.src.js.shot | 8 + .../simple-method-with-argument.src.js.shot | 10 + ...simple-method-with-string-name.src.js.shot | 6 + .../simple-method.src.js.shot | 8 + .../string-name-method-property.src.js.shot | 7 + .../shorthand-properties.src.js.shot | 20 + .../octalLiterals/legacy.src.js.shot | 1 + .../octalLiterals/lowercase.src.js.shot | 1 + .../strict-uppercase.src.js.shot | 1 + .../octalLiterals/uppercase.src.js.shot | 1 + .../regex/regexp-simple.src.js.shot | 2 + .../regex-u-extended-escape.src.js.shot | 2 + ...egex-u-invalid-extended-escape.src.js.shot | 2 + .../regexUFlag/regex-u-simple.src.js.shot | 2 + .../regexYFlag/regexp-y-simple.src.js.shot | 2 + .../restParams/basic-rest.src.js.shot | 12 + .../restParams/class-constructor.src.js.shot | 22 + .../restParams/class-method.src.js.shot | 22 + .../restParams/error-no-default.src.js.shot | 12 + .../restParams/error-not-last.src.js.shot | 14 + .../func-expression-multi.src.js.shot | 12 + .../restParams/func-expression.src.js.shot | 10 + .../restParams/invalid-rest-param.src.js.shot | 14 + .../restParams/single-rest.src.js.shot | 10 + .../literal-float-negative.src.js.shot | 2 + .../simple-literals/literal-float.src.js.shot | 2 + .../simple-literals/literal-null.src.js.shot | 2 + .../literal-number-negative.src.js.shot | 2 + .../literal-number.src.js.shot | 2 + .../literal-string.src.js.shot | 2 + .../literal-undefined.src.js.shot | 4 + .../spread/complex-spread.src.js.shot | 65 ++ .../spread/multi-function-call.src.js.shot | 8 + .../spread/not-final-param.src.js.shot | 8 + .../spread/simple-function-call.src.js.shot | 6 + .../templateStrings/deeply-nested.src.js.shot | 3 + .../error-octal-literal.src.js.shot | Bin 2317 -> 2347 bytes .../escape-characters.src.js.shot | 2 + .../templateStrings/expressions.src.js.shot | 9 + .../multi-line-template-string.src.js.shot | 1 + .../simple-template-string.src.js.shot | 1 + .../single-dollar-sign.src.js.shot | 2 + .../tagged-no-placeholders.src.js.shot | 3 + .../tagged-template-string.src.js.shot | 20 + .../ignored.src.js.shot | 33 + .../self-closing-tag-inside-tag.src.js.shot | 1 + .../test-content.src.js.shot | 1 + .../snapshots/jsx/attributes.src.js.shot | 5 + .../jsx/element-keyword-name.src.js.shot | 1 + .../jsx/embedded-comment.src.js.shot | 1 + .../jsx/embedded-conditional.src.js.shot | 3 + ...embedded-invalid-js-identifier.src.js.shot | 1 + .../jsx/empty-placeholder.src.js.shot | 1 + .../jsx/escape-patterns-ignored.src.js.shot | 1 + .../jsx/escape-patterns-unknown.src.js.shot | 6 + .../jsx/escape-patterns-valid.src.js.shot | 1 + .../jsx/escape-patters-multi.src.js.shot | 1 + ...alid-namespace-value-with-dots.src.js.shot | 1 + .../jsx/japanese-characters.src.js.shot | 1 + .../jsx/less-than-operator.src.js.shot | 3 + .../jsx/member-expression-this.src.js.shot | 2 + .../jsx/member-expression.src.js.shot | 1 + .../jsx/multiple-blank-spaces.src.js.shot | 1 + .../jsx/namespace-this-name.src.js.shot | 1 + ...d-attribute-and-value-inserted.src.js.shot | 3 + .../namespaced-name-and-attribute.src.js.shot | 1 + .../self-closing-tag-inside-tag.src.js.shot | 1 + .../jsx/self-closing-tag.src.js.shot | 1 + .../shorthand-fragment-with-child.src.js.shot | 1 + .../jsx/shorthand-fragment.src.js.shot | 1 + .../snapshots/jsx/spread-child.src.js.shot | 1 + ...ttribute-and-regular-attribute.src.js.shot | 3 + .../spread-operator-attributes.src.js.shot | 3 + .../jsx/tag-names-with-dots.src.js.shot | 1 + ...ag-names-with-multi-dots-multi.src.js.shot | 1 + .../jsx/tag-names-with-multi-dots.src.js.shot | 1 + .../snapshots/jsx/test-content.src.js.shot | 1 + ...ling-spread-operator-attribute.src.js.shot | 3 + .../tsx/generic-jsx-element.src.tsx.shot | 1 + .../generic-jsx-opening-element.src.tsx.shot | 1 + .../tsx/react-typed-props.src.tsx.shot | 20 + .../type-parameter-whitespace-loc.src.ts.shot | 6 + .../type-parameters.src.ts.shot | 6 + ...lass-with-abstract-constructor.src.ts.shot | 16 + ...act-class-with-abstract-method.src.ts.shot | 17 + ...class-with-abstract-properties.src.ts.shot | 24 +- ...ith-abstract-readonly-property.src.ts.shot | 12 + ...th-abstract-static-constructor.src.ts.shot | 16 + ...-class-with-declare-properties.src.ts.shot | 41 +- ...act-class-with-optional-method.src.ts.shot | 16 + ...act-class-with-override-method.src.ts.shot | 18 + ...t-class-with-override-property.src.ts.shot | 18 +- .../basics/abstract-interface.src.ts.shot | 4 + ...-type-assertion-arrow-function.src.ts.shot | 8 + .../angle-bracket-type-assertion.src.ts.shot | 2 + ...nction-with-optional-parameter.src.ts.shot | 8 + ...-function-with-type-parameters.src.ts.shot | 10 + .../async-function-expression.src.ts.shot | 7 + ...-function-with-var-declaration.src.ts.shot | 11 + .../await-without-async-function.src.ts.shot | 14 + .../call-signatures-with-generics.src.ts.shot | 9 + .../basics/call-signatures.src.ts.shot | 7 + .../basics/cast-as-expression.src.ts.shot | 5 + .../basics/cast-as-multi-assign.src.ts.shot | 3 + .../basics/cast-as-multi.src.ts.shot | 5 + .../basics/cast-as-operator.src.ts.shot | 3 + .../basics/cast-as-simple.src.ts.shot | 4 + .../catch-clause-with-annotation.src.ts.shot | 2 + ...clause-with-invalid-annotation.src.ts.shot | 1 + ...ss-multi-line-keyword-abstract.src.ts.shot | 11 + ...ass-multi-line-keyword-declare.src.ts.shot | 11 + ...field-with-accessibility-error.src.ts.shot | 24 +- ...entifier-field-with-annotation.src.ts.shot | 30 +- ...vate-identifier-readonly-field.src.ts.shot | 12 + .../basics/class-static-blocks.src.ts.shot | 23 +- ...s-with-accessibility-modifiers.src.ts.shot | 46 +- ...-with-constructor-and-modifier.src.ts.shot | 22 + ...ameter-property-with-modifiers.src.ts.shot | 21 + ...roptery-with-override-modifier.src.ts.shot | 23 + ...th-constructor-and-return-type.src.ts.shot | 22 + ...onstructor-and-type-parameters.src.ts.shot | 26 + .../class-with-declare-properties.src.ts.shot | 54 +- ...class-with-definite-assignment.src.ts.shot | 15 +- ...th-export-parameter-properties.src.ts.shot | 19 + ...ss-with-extends-and-implements.src.ts.shot | 12 + ...-with-extends-generic-multiple.src.ts.shot | 16 + .../class-with-extends-generic.src.ts.shot | 12 + ...ss-with-generic-method-default.src.ts.shot | 20 + .../class-with-generic-method.src.ts.shot | 18 + ...ss-with-implements-and-extends.src.ts.shot | 12 + ...th-implements-generic-multiple.src.ts.shot | 13 + .../class-with-implements-generic.src.ts.shot | 11 + .../basics/class-with-implements.src.ts.shot | 10 + .../basics/class-with-method.src.ts.shot | 35 ++ .../class-with-mixin-reference.src.ts.shot | 13 + .../basics/class-with-mixin.src.ts.shot | 56 ++ ...-with-optional-computed-method.src.ts.shot | 87 +++ ...ith-optional-computed-property.src.ts.shot | 15 +- .../class-with-optional-methods.src.ts.shot | 29 + ...class-with-optional-properties.src.ts.shot | 70 ++- ...th-optional-property-undefined.src.ts.shot | 17 +- .../class-with-override-method.src.ts.shot | 19 + .../class-with-override-property.src.ts.shot | 19 +- ...with-private-optional-property.src.ts.shot | 24 +- ...h-private-parameter-properties.src.ts.shot | 29 + .../class-with-property-function.src.ts.shot | 30 +- .../class-with-property-values.src.ts.shot | 56 +- ...protected-parameter-properties.src.ts.shot | 29 + ...th-public-parameter-properties.src.ts.shot | 29 + ...-readonly-parameter-properties.src.ts.shot | 23 + .../class-with-readonly-property.src.ts.shot | 14 + ...th-static-parameter-properties.src.ts.shot | 19 + ...o-methods-computed-constructor.src.ts.shot | 22 + ...ss-with-type-parameter-default.src.ts.shot | 11 + ...with-type-parameter-underscore.src.ts.shot | 9 + .../class-with-type-parameter.src.ts.shot | 9 + .../basics/const-assertions.src.ts.shot | 28 + .../typescript/basics/const-enum.src.ts.shot | 7 + ...are-class-with-optional-method.src.ts.shot | 14 + .../basics/declare-function.src.ts.shot | 4 + ...estructuring-assignment-nested.src.ts.shot | 45 ++ ...estructuring-assignment-object.src.ts.shot | 11 + ...tructuring-assignment-property.src.ts.shot | 17 + .../destructuring-assignment.src.ts.shot | 11 + .../basics/directive-in-module.src.ts.shot | 5 + .../basics/directive-in-namespace.src.ts.shot | 5 + ...-import-with-import-assertions.src.ts.shot | 5 + ...ort-all-with-import-assertions.src.ts.shot | 2 + .../basics/export-as-namespace.src.ts.shot | 2 + .../basics/export-assignment.src.ts.shot | 2 + ...xport-declare-const-named-enum.src.ts.shot | 7 + .../export-declare-named-enum.src.ts.shot | 7 + ...ort-default-class-with-generic.src.ts.shot | 7 + ...t-class-with-multiple-generics.src.ts.shot | 9 + .../export-default-interface.src.ts.shot | 8 + ...xport-named-class-with-generic.src.ts.shot | 9 + ...d-class-with-multiple-generics.src.ts.shot | 11 + ...ort-named-enum-computed-number.src.ts.shot | 3 + ...ort-named-enum-computed-string.src.ts.shot | 3 + ...rt-named-enum-computed-var-ref.src.ts.shot | 5 + .../basics/export-named-enum.src.ts.shot | 7 + .../basics/export-star-as-ns-from.src.ts.shot | 2 + .../basics/export-type-as.src.ts.shot | 4 + .../basics/export-type-from-as.src.ts.shot | 4 + .../basics/export-type-from.src.ts.shot | 4 + .../typescript/basics/export-type.src.ts.shot | 4 + .../export-with-import-assertions.src.ts.shot | 6 + ...-anonymus-with-type-parameters.src.ts.shot | 9 + ...tion-anynomus-with-return-type.src.ts.shot | 4 + .../basics/function-overloads.src.ts.shot | 17 + .../basics/function-with-await.src.ts.shot | 10 + ...-type-with-optional-properties.src.ts.shot | 20 + ...object-type-without-annotation.src.ts.shot | 20 + ...-parameters-that-have-comments.src.ts.shot | 6 + ...ype-parameters-with-constraint.src.ts.shot | 12 + .../function-with-type-parameters.src.ts.shot | 12 + ...unction-with-types-assignation.src.ts.shot | 16 + .../basics/function-with-types.src.ts.shot | 7 + .../typescript/basics/global-this.src.ts.shot | 14 + .../import-equal-declaration.src.ts.shot | 2 + .../import-equal-type-declaration.src.ts.shot | 2 + ...mport-export-equal-declaration.src.ts.shot | 2 + ...-export-equal-type-declaration.src.ts.shot | 2 + .../basics/import-type-default.src.ts.shot | 2 + .../basics/import-type-empty.src.ts.shot | 2 + .../basics/import-type-error.src.ts.shot | 6 + .../basics/import-type-named-as.src.ts.shot | 4 + .../basics/import-type-named.src.ts.shot | 8 + .../basics/import-type-star-as-ns.src.ts.shot | 2 + .../import-with-import-assertions.src.ts.shot | 4 + .../interface-extends-multiple.src.ts.shot | 9 + .../basics/interface-extends.src.ts.shot | 6 + .../interface-type-parameters.src.ts.shot | 5 + ...erface-with-all-property-types.src.ts.shot | 64 ++ ...e-with-parameter-accessibility.src.ts.shot | 12 + ...with-extends-member-expression.src.ts.shot | 8 + ...e-with-extends-type-parameters.src.ts.shot | 8 + .../basics/interface-with-generic.src.ts.shot | 5 + .../basics/interface-with-jsdoc.src.ts.shot | 11 + .../basics/interface-with-method.src.ts.shot | 19 + ...rface-with-optional-properties.src.ts.shot | 20 + ...erface-without-type-annotation.src.ts.shot | 7 + .../basics/intrinsic-keyword.src.ts.shot | 16 + .../basics/keyof-operator.src.ts.shot | 5 + .../basics/keyword-variables.src.ts.shot | 235 +++++++ .../basics/nested-type-arguments.src.ts.shot | 7 + .../basics/never-type-param.src.ts.shot | 8 + ...-target-in-arrow-function-body.src.ts.shot | 8 + .../non-null-assertion-operator.src.ts.shot | 20 + ...and-undefined-type-annotations.src.ts.shot | 2 + .../basics/nullish-coalescing.src.ts.shot | 10 + ...object-with-escaped-properties.src.ts.shot | 21 +- .../object-with-typed-methods.src.ts.shot | 19 + ...n-call-with-non-null-assertion.src.ts.shot | 48 ++ ...ptional-chain-call-with-parens.src.ts.shot | 68 ++ .../basics/optional-chain-call.src.ts.shot | 68 ++ ...access-with-non-null-assertion.src.ts.shot | 36 ++ ...ain-element-access-with-parens.src.ts.shot | 24 + .../optional-chain-element-access.src.ts.shot | 24 + ...-chain-with-non-null-assertion.src.ts.shot | 27 + .../optional-chain-with-parens.src.ts.shot | 54 ++ .../basics/optional-chain.src.ts.shot | 43 ++ .../parenthesized-use-strict.src.ts.shot | 1 + .../basics/private-fields-in-in.src.ts.shot | 28 +- .../basics/readonly-arrays.src.ts.shot | 38 ++ .../basics/readonly-tuples.src.ts.shot | 17 + ...-circuiting-assignment-and-and.src.ts.shot | 5 + ...rt-circuiting-assignment-or-or.src.ts.shot | 5 + ...g-assignment-question-question.src.ts.shot | 5 + .../basics/symbol-type-param.src.ts.shot | 8 + ...claration-export-function-type.src.ts.shot | 5 + ...declaration-export-object-type.src.ts.shot | 6 + .../type-alias-declaration-export.src.ts.shot | 3 + ...ith-constrained-type-parameter.src.ts.shot | 10 + .../basics/type-alias-declaration.src.ts.shot | 10 + ...lias-object-without-annotation.src.ts.shot | 9 + ...pe-assertion-in-arrow-function.src.ts.shot | 6 + .../type-assertion-in-function.src.ts.shot | 7 + .../type-assertion-in-interface.src.ts.shot | 11 + .../type-assertion-in-method.src.ts.shot | 26 +- ...n-with-guard-in-arrow-function.src.ts.shot | 6 + ...sertion-with-guard-in-function.src.ts.shot | 7 + ...ertion-with-guard-in-interface.src.ts.shot | 11 + ...assertion-with-guard-in-method.src.ts.shot | 26 +- .../type-guard-in-arrow-function.src.ts.shot | 8 + .../basics/type-guard-in-function.src.ts.shot | 9 + .../type-guard-in-interface.src.ts.shot | 11 + .../basics/type-guard-in-method.src.ts.shot | 30 +- ...e-parameters-in-type-reference.src.ts.shot | 7 + .../basics/type-import-type.src.ts.shot | 11 + .../type-only-export-specifiers.src.ts.shot | 8 + .../type-only-import-specifiers.src.ts.shot | 8 + ...e-parameters-comments-heritage.src.ts.shot | 40 ++ .../type-parameters-comments.src.ts.shot | 19 + .../type-reference-comments.src.ts.shot | 20 +- .../basics/typed-keyword-bigint.src.ts.shot | 3 + .../basics/typed-keyword-boolean.src.ts.shot | 3 + .../basics/typed-keyword-false.src.ts.shot | 3 + .../basics/typed-keyword-never.src.ts.shot | 3 + .../basics/typed-keyword-null.src.ts.shot | 3 + .../basics/typed-keyword-number.src.ts.shot | 3 + .../basics/typed-keyword-object.src.ts.shot | 3 + .../basics/typed-keyword-string.src.ts.shot | 3 + .../basics/typed-keyword-symbol.src.ts.shot | 3 + .../basics/typed-keyword-true.src.ts.shot | 3 + .../typed-keyword-undefined.src.ts.shot | 3 + .../basics/typed-keyword-unknown.src.ts.shot | 3 + .../basics/typed-keyword-void.src.ts.shot | 3 + .../basics/typed-method-signature.src.ts.shot | 18 + .../typescript/basics/typed-this.src.ts.shot | 14 + .../basics/union-intersection.src.ts.shot | 16 + .../basics/unique-symbol.src.ts.shot | 3 + .../unknown-type-annotation.src.ts.shot | 1 + .../var-with-definite-assignment.src.ts.shot | 3 + .../basics/var-with-dotted-type.src.ts.shot | 7 + .../basics/var-with-type.src.ts.shot | 2 + ...ration-type-annotation-spacing.src.ts.shot | 1 + .../declare/abstract-class.src.ts.shot | 6 + .../typescript/declare/class.src.ts.shot | 7 + .../typescript/declare/enum.src.ts.shot | 8 + .../typescript/declare/function.src.ts.shot | 3 + .../typescript/declare/interface.src.ts.shot | 4 + .../typescript/declare/module.src.ts.shot | 2 + .../typescript/declare/namespace.src.ts.shot | 2 + .../typescript/declare/type-alias.src.ts.shot | 3 + .../typescript/declare/variable.src.ts.shot | 1 + ...orator-factory-instance-member.src.ts.shot | 21 + ...ecorator-factory-static-member.src.ts.shot | 23 + ...ssor-decorator-instance-member.src.ts.shot | 20 + ...cessor-decorator-static-member.src.ts.shot | 25 + .../class-decorator-factory.src.ts.shot | 12 + .../class-decorator.src.ts.shot | 9 + .../class-parameter-property.src.ts.shot | 20 + ...export-default-class-decorator.src.ts.shot | 9 + .../export-named-class-decorator.src.ts.shot | 9 + ...orator-factory-instance-member.src.ts.shot | 19 + ...ecorator-factory-static-member.src.ts.shot | 19 + ...thod-decorator-instance-member.src.ts.shot | 18 + ...method-decorator-static-member.src.ts.shot | 18 + ...ameter-array-pattern-decorator.src.ts.shot | 22 + ...arameter-decorator-constructor.src.ts.shot | 31 + ...ator-decorator-instance-member.src.ts.shot | 20 + ...orator-decorator-static-member.src.ts.shot | 20 + ...eter-decorator-instance-member.src.ts.shot | 21 + ...ameter-decorator-static-member.src.ts.shot | 21 + ...meter-object-pattern-decorator.src.ts.shot | 24 + ...rameter-rest-element-decorator.src.ts.shot | 23 + ...orator-factory-instance-member.src.ts.shot | 33 +- ...ecorator-factory-static-member.src.ts.shot | 30 +- ...erty-decorator-instance-member.src.ts.shot | 28 +- ...operty-decorator-static-member.src.ts.shot | 28 +- ...class-empty-extends-implements.src.ts.shot | 10 + .../class-empty-extends.src.ts.shot | 8 + ...class-extends-empty-implements.src.ts.shot | 9 + .../class-multiple-implements.src.ts.shot | 10 + .../decorator-on-enum-declaration.src.ts.shot | 2 + .../decorator-on-function.src.ts.shot | 5 + ...rator-on-interface-declaration.src.ts.shot | 4 + .../decorator-on-variable.src.ts.shot | 2 + ...e-arguments-in-call-expression.src.ts.shot | 3 + ...pe-arguments-in-new-expression.src.ts.shot | 3 + .../empty-type-arguments.src.ts.shot | 3 + ...e-parameters-in-arrow-function.src.ts.shot | 4 + ...type-parameters-in-constructor.src.ts.shot | 16 + ...ameters-in-function-expression.src.ts.shot | 4 + ...parameters-in-method-signature.src.ts.shot | 8 + ...mpty-type-parameters-in-method.src.ts.shot | 16 + .../empty-type-parameters.src.ts.shot | 4 + .../enum-with-keywords.src.ts.shot | 2 + .../index-signature-parameters.src.ts.shot | 6 + .../interface-empty-extends.src.ts.shot | 4 + .../interface-implements.src.ts.shot | 4 + ...terface-index-signature-export.src.ts.shot | 6 + ...erface-index-signature-private.src.ts.shot | 5 + ...face-index-signature-protected.src.ts.shot | 5 + ...terface-index-signature-public.src.ts.shot | 5 + ...terface-index-signature-static.src.ts.shot | 6 + .../interface-method-export.src.ts.shot | 9 + .../interface-method-private.src.ts.shot | 8 + .../interface-method-protected.src.ts.shot | 8 + .../interface-method-public.src.ts.shot | 8 + .../interface-method-readonly.src.ts.shot | 9 + .../interface-method-static.src.ts.shot | 9 + .../interface-multiple-extends.src.ts.shot | 9 + .../interface-property-export.src.ts.shot | 7 + .../interface-property-private.src.ts.shot | 6 + .../interface-property-protected.src.ts.shot | 6 + .../interface-property-public.src.ts.shot | 6 + .../interface-property-static.src.ts.shot | 7 + ...ce-property-with-default-value.src.ts.shot | 7 + ...-with-optional-index-signature.src.ts.shot | 6 + .../object-assertion-not-allowed.src.ts.shot | 7 + .../object-optional-not-allowed.src.ts.shot | 7 + ...call-expression-type-arguments.src.ts.shot | 8 + .../instantiation-expression.src.ts.shot | 43 ++ .../new-expression-type-arguments.src.ts.shot | 6 + ...call-expression-type-arguments.src.ts.shot | 12 + ...late-expression-type-arguments.src.ts.shot | 5 + ...module-declaration-with-import.src.ts.shot | 2 + ...mespace-with-exported-function.src.ts.shot | 9 + .../global-module-declaration.src.ts.shot | 6 + .../module-with-default-exports.src.ts.shot | 23 + .../nested-internal-module.src.ts.shot | 34 + .../typescript/types/array-type.src.ts.shot | 3 + .../conditional-infer-nested.src.ts.shot | 26 + .../conditional-infer-simple.src.ts.shot | 18 + ...ditional-infer-with-constraint.src.ts.shot | 66 ++ .../types/conditional-infer.src.ts.shot | 12 + .../types/conditional-with-null.src.ts.shot | 1 + .../typescript/types/conditional.src.ts.shot | 1 + .../types/constructor-abstract.src.ts.shot | 2 + .../types/constructor-empty.src.ts.shot | 2 + .../types/constructor-generic.src.ts.shot | 8 + .../types/constructor-in-generic.src.ts.shot | 4 + .../types/constructor-with-rest.src.ts.shot | 6 + .../typescript/types/constructor.src.ts.shot | 4 + .../types/function-generic.src.ts.shot | 8 + .../types/function-in-generic.src.ts.shot | 4 + ...unction-with-array-destruction.src.ts.shot | 7 + ...nction-with-object-destruction.src.ts.shot | 9 + .../types/function-with-rest.src.ts.shot | 6 + .../types/function-with-this.src.ts.shot | 3 + .../typescript/types/function.src.ts.shot | 4 + .../index-signature-readonly.src.ts.shot | 5 + .../index-signature-without-type.src.ts.shot | 6 + .../types/index-signature.src.ts.shot | 5 + .../typescript/types/indexed.src.ts.shot | 5 + .../interface-with-accessors.src.ts.shot | 14 + .../types/intersection-type.src.ts.shot | 13 + .../types/literal-number-negative.src.ts.shot | 1 + .../types/literal-number.src.ts.shot | 1 + .../types/literal-string.src.ts.shot | 1 + .../types/mapped-named-type.src.ts.shot | 14 + .../types/mapped-readonly-minus.src.ts.shot | 3 + .../types/mapped-readonly-plus.src.ts.shot | 3 + .../types/mapped-readonly.src.ts.shot | 3 + .../types/mapped-untypped.src.ts.shot | 6 + .../typescript/types/mapped.src.ts.shot | 5 + .../typescript/types/nested-types.src.ts.shot | 3 + ...ct-literal-type-with-accessors.src.ts.shot | 13 + .../optional-variance-in-and-out.src.ts.shot | 12 + .../optional-variance-in-out.src.ts.shot | 10 + .../types/optional-variance-in.src.ts.shot | 8 + .../types/optional-variance-out.src.ts.shot | 7 + .../types/parenthesized-type.src.ts.shot | 3 + .../reference-generic-nested.src.ts.shot | 5 + .../types/reference-generic.src.ts.shot | 3 + .../typescript/types/reference.src.ts.shot | 3 + .../types/template-literal-type-1.src.ts.shot | 3 + .../types/template-literal-type-2.src.ts.shot | 3 + .../types/template-literal-type-3.src.ts.shot | 13 + .../types/template-literal-type-4.src.ts.shot | 25 + .../types/this-type-expanded.src.ts.shot | 97 ++- .../typescript/types/this-type.src.ts.shot | 16 + .../typescript/types/tuple-empty.src.ts.shot | 1 + .../types/tuple-named-optional.src.ts.shot | 7 + .../types/tuple-named-rest.src.ts.shot | 5 + .../types/tuple-named-type.src.ts.shot | 7 + .../typescript/types/tuple-named.src.ts.shot | 7 + .../types/tuple-optional.src.ts.shot | 1 + .../typescript/types/tuple-rest.src.ts.shot | 1 + .../typescript/types/tuple-type.src.ts.shot | 3 + .../typescript/types/tuple.src.ts.shot | 1 + .../typescript/types/type-literal.src.ts.shot | 4 + .../types/type-operator.src.ts.shot | 4 + .../typescript/types/typeof-this.src.ts.shot | 4 + .../typeof-with-type-parameters.src.ts.shot | 7 + .../typescript/types/typeof.src.ts.shot | 5 + .../types/union-intersection.src.ts.shot | 4 + .../typescript/types/union-type.src.ts.shot | 3 + 1079 files changed, 10093 insertions(+), 535 deletions(-) diff --git a/packages/ast-spec/src/base/ClassBase.ts b/packages/ast-spec/src/base/ClassBase.ts index 4878cfc87b6..2b912cb14d9 100644 --- a/packages/ast-spec/src/base/ClassBase.ts +++ b/packages/ast-spec/src/base/ClassBase.ts @@ -13,10 +13,8 @@ export interface ClassBase extends BaseNode { * ``` * abstract class Foo {...} * ``` - * This is always `undefined` for `ClassExpression`. */ - // TODO(#5020) - make this `false` if it is not `abstract` - abstract?: boolean; + abstract: boolean; /** * The class body. */ @@ -26,21 +24,16 @@ export interface ClassBase extends BaseNode { * ``` * declare class Foo {...} * ``` - * This is always `undefined` for `ClassExpression`. */ - // TODO(#5020) - make this `false` if it is not `declare`d - declare?: boolean; + declare: boolean; /** * The decorators declared for the class. - * This is `undefined` if there are no decorators. * ``` * @deco * class Foo {...} * ``` - * This is always `undefined` for `ClassExpression`. */ - // TODO(#5020) - make this an empty array if there are none declared - decorators?: Decorator[]; + decorators: Decorator[]; /** * The class's name. * - For a `ClassExpression` this may be `null` if the name is omitted. @@ -50,21 +43,18 @@ export interface ClassBase extends BaseNode { id: Identifier | null; /** * The implemented interfaces for the class. - * This is `undefined` if there are no implemented interfaces. */ - implements?: TSClassImplements[]; + implements: TSClassImplements[]; /** * The super class this class extends. */ superClass: LeftHandSideExpression | null; /** * The generic type parameters passed to the superClass. - * This is `undefined` if there are no generic type parameters passed. */ - superTypeParameters?: TSTypeParameterInstantiation; + superTypeParameters: TSTypeParameterInstantiation | undefined; /** * The generic type parameters declared for the class. - * This is `undefined` if there are no generic type parameters declared. */ - typeParameters?: TSTypeParameterDeclaration; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/base/FunctionBase.ts b/packages/ast-spec/src/base/FunctionBase.ts index 56446bc78ba..035b18a682e 100644 --- a/packages/ast-spec/src/base/FunctionBase.ts +++ b/packages/ast-spec/src/base/FunctionBase.ts @@ -23,15 +23,14 @@ export interface FunctionBase extends BaseNode { * - For a `TSDeclareFunction` this is always `undefined`. * - For a `TSEmptyBodyFunctionExpression` this is always `null`. */ - body?: BlockStatement | Expression | null; + body: BlockStatement | Expression | null | undefined; /** * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: * ``` * declare function foo(...) {...} * ``` */ - // TODO(#5020) - make this always `false` if it is not `declare`d instead of `undefined` - declare?: boolean; + declare: boolean; /** * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body * is an expression: @@ -63,12 +62,10 @@ export interface FunctionBase extends BaseNode { params: Parameter[]; /** * The return type annotation for the function. - * This is `undefined` if there is no return type declared. */ - returnType?: TSTypeAnnotation; + returnType: TSTypeAnnotation | undefined; /** * The generic type parameter declaration for the function. - * This is `undefined` if there are no generic type parameters declared. */ - typeParameters?: TSTypeParameterDeclaration; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/base/MethodDefinitionBase.ts b/packages/ast-spec/src/base/MethodDefinitionBase.ts index f1f2087ccae..4c77abab358 100644 --- a/packages/ast-spec/src/base/MethodDefinitionBase.ts +++ b/packages/ast-spec/src/base/MethodDefinitionBase.ts @@ -18,11 +18,11 @@ interface MethodDefinitionBase extends BaseNode { computed: boolean; static: boolean; kind: 'constructor' | 'get' | 'method' | 'set'; - optional?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - typeParameters?: TSTypeParameterDeclaration; - override?: boolean; + optional: boolean; + decorators: Decorator[]; + accessibility: Accessibility | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; + override: boolean; } export interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { diff --git a/packages/ast-spec/src/base/PropertyDefinitionBase.ts b/packages/ast-spec/src/base/PropertyDefinitionBase.ts index f1d5b9cc440..a379ac92242 100644 --- a/packages/ast-spec/src/base/PropertyDefinitionBase.ts +++ b/packages/ast-spec/src/base/PropertyDefinitionBase.ts @@ -16,13 +16,13 @@ interface PropertyDefinitionBase extends BaseNode { computed: boolean; static: boolean; declare: boolean; - readonly?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - optional?: boolean; - definite?: boolean; - typeAnnotation?: TSTypeAnnotation; - override?: boolean; + readonly: boolean; + decorators: Decorator[]; + accessibility: Accessibility | undefined; + optional: boolean; + definite: boolean; + typeAnnotation: TSTypeAnnotation | undefined; + override: boolean; } export interface PropertyDefinitionComputedNameBase diff --git a/packages/ast-spec/src/base/TSFunctionSignatureBase.ts b/packages/ast-spec/src/base/TSFunctionSignatureBase.ts index 0da1e7b414d..afd906f3778 100644 --- a/packages/ast-spec/src/base/TSFunctionSignatureBase.ts +++ b/packages/ast-spec/src/base/TSFunctionSignatureBase.ts @@ -5,6 +5,6 @@ import type { BaseNode } from './BaseNode'; export interface TSFunctionSignatureBase extends BaseNode { params: Parameter[]; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; + returnType: TSTypeAnnotation | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/base/TSHeritageBase.ts b/packages/ast-spec/src/base/TSHeritageBase.ts index 683600ec01d..91a11b9eb3a 100644 --- a/packages/ast-spec/src/base/TSHeritageBase.ts +++ b/packages/ast-spec/src/base/TSHeritageBase.ts @@ -5,5 +5,5 @@ import type { BaseNode } from './BaseNode'; export interface TSHeritageBase extends BaseNode { // TODO(#1852) - this should be restricted to MemberExpression | Identifier expression: Expression; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; } diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot index eae7396ac38..64e97c1b760 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/1-TSESTree-AST.shot @@ -17,8 +17,11 @@ Program { end: { column: 21, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -28,6 +31,7 @@ Program { end: { column: 18, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 21], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot index 939ccdfa98f..b4665912df8 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/abstract/snapshots/5-AST-Alignment-AST.shot @@ -21,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration abstract AST Alignment - AST end: { column: 21, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -32,6 +35,7 @@ exports[`AST Fixtures declaration ClassDeclaration abstract AST Alignment - AST end: { column: 18, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 21], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index f4eb9c1cb89..c3e3ad5c040 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -17,8 +18,10 @@ Program { }, }, declare: true, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -28,6 +31,7 @@ Program { end: { column: 17, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 20], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 9f5d906362a..7b52ed82f8c 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration declare AST Alignment - AST 1 body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -21,8 +22,10 @@ exports[`AST Fixtures declaration ClassDeclaration declare AST Alignment - AST 1 }, }, declare: true, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -32,6 +35,7 @@ exports[`AST Fixtures declaration ClassDeclaration declare AST Alignment - AST 1 end: { column: 17, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 20], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot index 13b703c36d8..a0dac6da40d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,11 +17,13 @@ Program { end: { column: 12, line: 3 }, }, }, + declare: false, decorators: Array [ Decorator { type: "Decorator", expression: Identifier { type: "Identifier", + decorators: Array [], name: "decoratorOne", optional: false, @@ -41,6 +44,7 @@ Program { type: "Decorator", expression: Identifier { type: "Identifier", + decorators: Array [], name: "decoratorTwo", optional: false, @@ -60,6 +64,7 @@ Program { ], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -69,6 +74,7 @@ Program { end: { column: 9, line: 3 }, }, }, + implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot index a89b9ebc054..8170c78f09b 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-many/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,11 +21,13 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment end: { column: 12, line: 3 }, }, }, +- declare: false, decorators: Array [ Decorator { type: 'Decorator', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'decoratorOne', - optional: false, @@ -45,6 +48,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment type: 'Decorator', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'decoratorTwo', - optional: false, @@ -64,6 +68,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment ], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -73,6 +78,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-many AST Alignment end: { column: 9, line: 3 }, }, }, +- implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot index 11250415f63..563d92bd12f 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,11 +17,13 @@ Program { end: { column: 12, line: 2 }, }, }, + declare: false, decorators: Array [ Decorator { type: "Decorator", expression: Identifier { type: "Identifier", + decorators: Array [], name: "decorator", optional: false, @@ -40,6 +43,7 @@ Program { ], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -49,6 +53,7 @@ Program { end: { column: 9, line: 2 }, }, }, + implements: Array [], superClass: null, range: [0, 23], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot index 0bd7a140434..373c6c0b694 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/decorator-one/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one AST Alignment - body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,11 +21,13 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one AST Alignment - end: { column: 12, line: 2 }, }, }, +- declare: false, decorators: Array [ Decorator { type: 'Decorator', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'decorator', - optional: false, @@ -44,6 +47,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one AST Alignment - ], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -53,6 +57,7 @@ exports[`AST Fixtures declaration ClassDeclaration decorator-one AST Alignment - end: { column: 9, line: 2 }, }, }, +- implements: Array [], superClass: null, range: [0, 23], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index d9f690061b7..31df417d6ce 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 12, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,6 +31,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 12], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 3819a8bb8b6..230ef4b49bc 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration empty AST Alignment - AST 1`] body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration empty AST Alignment - AST 1`] end: { column: 12, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,6 +35,7 @@ exports[`AST Fixtures declaration ClassDeclaration empty AST Alignment - AST 1`] end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 12], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot index 53501a6b842..2a09699f774 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 28, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,6 +31,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: Literal { type: "Literal", raw: "'Thing'", diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot index 3ec302097f9..f4826edf0bd 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-literal/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal AST Alignment end: { column: 28, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,6 +35,7 @@ exports[`AST Fixtures declaration ClassDeclaration extends-literal AST Alignment end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: Literal { type: 'Literal', raw: '\\\\'Thing\\\\'', diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot index e1244953a30..de8e2c0a17d 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 32, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,8 +31,10 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: Identifier { type: "Identifier", + decorators: Array [], name: "Set", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot index 999e6e4d2bb..ec3a6a87d39 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends-type-param/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param AST Alignm body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param AST Alignm end: { column: 32, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,8 +35,10 @@ exports[`AST Fixtures declaration ClassDeclaration extends-type-param AST Alignm end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Set', - optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot index 399955a7a36..1cb7686b2fb 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 27, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,8 +31,10 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: Identifier { type: "Identifier", + decorators: Array [], name: "Object", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot index 3473e7ab8f9..724e995d358 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/extends/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration extends AST Alignment - AST 1 body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration extends AST Alignment - AST 1 end: { column: 27, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,8 +35,10 @@ exports[`AST Fixtures declaration ClassDeclaration extends AST Alignment - AST 1 end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Object', - optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot index de4c782cb94..98f7f00d3fa 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 48, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -32,6 +36,7 @@ Program { type: "TSClassImplements", expression: Identifier { type: "Identifier", + decorators: Array [], name: "Object", optional: false, @@ -52,6 +57,7 @@ Program { type: "TSClassImplements", expression: Identifier { type: "Identifier", + decorators: Array [], name: "Function", optional: false, @@ -72,6 +78,7 @@ Program { type: "TSClassImplements", expression: Identifier { type: "Identifier", + decorators: Array [], name: "RegExp", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot index f7f498d1eed..d38bcdd0e91 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-many/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment end: { column: 48, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -38,6 +42,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Object', - optional: false, @@ -60,6 +65,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Function', - optional: false, @@ -82,6 +88,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-many AST Alignment + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'RegExp', - optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot index d9d83fb7f61..81c06012334 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 30, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -32,6 +36,7 @@ Program { type: "TSClassImplements", expression: Identifier { type: "Identifier", + decorators: Array [], name: "Object", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot index 57f42bd1328..e8a1bd9feae 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/implements-one/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one AST Alignment end: { column: 30, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -38,6 +42,7 @@ exports[`AST Fixtures declaration ClassDeclaration implements-one AST Alignment + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Object', - optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot index 79d05259854..e200139e258 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 15, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,6 +31,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, typeParameters: TSTypeParameterDeclaration { type: "TSTypeParameterDeclaration", @@ -36,6 +41,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot index 2c66985aba0..9b530ba8f6f 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-param/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS end: { column: 15, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,6 +35,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, typeParameters: TSTypeParameterDeclaration { type: 'TSTypeParameterDeclaration', @@ -40,6 +45,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-param AST Alignment - AS - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot index 33870a2f9fc..f02e1c39426 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -16,8 +17,11 @@ Program { end: { column: 30, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -27,8 +31,10 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: Identifier { type: "Identifier", + decorators: Array [], name: "Set", optional: false, @@ -45,6 +51,7 @@ Program { type: "TSTypeReference", typeName: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -77,6 +84,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot index 196a5e86453..74174de6ff7 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -20,8 +21,11 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- end: { column: 30, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -31,8 +35,10 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Set', - optional: false, @@ -49,6 +55,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- type: 'TSTypeReference', typeName: Identifier { type: 'Identifier', +- decorators: Array [], name: 'T', - optional: false, @@ -81,6 +88,7 @@ exports[`AST Fixtures declaration ClassDeclaration type-parameters-extends-type- - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index 3bb3aebf84d..7643464fb80 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "PropertyDefinition", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 6, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: null, @@ -42,8 +48,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -53,6 +62,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 21], diff --git a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index 1d68fd961b8..24c2998c99c 100644 --- a/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ClassDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -17,8 +18,11 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment type: 'PropertyDefinition', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -28,7 +32,9 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment end: { column: 6, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: null, @@ -46,8 +52,11 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -57,6 +66,7 @@ exports[`AST Fixtures declaration ClassDeclaration with-member-one AST Alignment end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 21], diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 8a4e1fef5ec..39df284a861 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { type: "ImportAttribute", key: Identifier { type: "Identifier", + decorators: Array [], name: "type", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot index a73338c0964..947c76a3a24 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot @@ -15,6 +15,7 @@ exports[`AST Fixtures declaration ExportAllDeclaration assertion AST Alignment - type: 'ImportAttribute', key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'type', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot index 59b99a73b40..8691d8d833a 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { assertions: Array [], exported: Identifier { type: "Identifier", + decorators: Array [], name: "mod", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot index dbf3cd4fcd0..56c645ce776 100644 --- a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/named/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration ExportAllDeclaration named AST Alignment - AST assertions: Array [], exported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'mod', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot index bc5b9ffa8c1..1002eb6e018 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -18,7 +19,10 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, + decorators: Array [], id: null, + implements: Array [], superClass: null, range: [15, 23], diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/5-AST-Alignment-AST.shot index 6c617458733..27fa552a126 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-class/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,54 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-class AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: ClassDeclaration { + type: 'ClassDeclaration', +- abstract: false, + body: ClassBody { + type: 'ClassBody', + body: Array [], + + range: [21, 23], + loc: { + start: { column: 21, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +- declare: false, +- decorators: Array [], + id: null, +- implements: Array [], + superClass: null, + + range: [15, 23], + loc: { + start: { column: 15, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 23], + loc: { + start: { column: 0, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot index e30c973e4c5..fe82d48ec18 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/1-TSESTree-AST.shot @@ -19,6 +19,7 @@ Program { end: { column: 29, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: null, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/5-AST-Alignment-AST.shot index 0472fbccb82..5ccd7cf076e 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/anonymous-function/snapshots/5-AST-Alignment-AST.shot @@ -2,5 +2,54 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration anonymous-function AST Alignment - AST 1`] = ` "Snapshot Diff: -Compared values have no visual difference." +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportDefaultDeclaration { + type: 'ExportDefaultDeclaration', + declaration: FunctionDeclaration { + type: 'FunctionDeclaration', + async: false, + body: BlockStatement { + type: 'BlockStatement', + body: Array [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +- declare: false, + expression: false, + generator: false, + id: null, + params: Array [], + + range: [15, 29], + loc: { + start: { column: 15, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + exportKind: 'value', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" `; diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot index df079bc0138..68d2d08a73f 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "ExportDefaultDeclaration", declaration: ClassExpression { type: "ClassExpression", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -18,8 +19,11 @@ Program { end: { column: 28, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -29,6 +33,7 @@ Program { end: { column: 25, line: 1 }, }, }, + implements: Array [], superClass: null, range: [16, 28], diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot index 2682347fd5c..f49e8ea492d 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class-expression/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression AST type: 'ExportDefaultDeclaration', declaration: ClassExpression { type: 'ClassExpression', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -22,8 +23,11 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression AST end: { column: 28, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -33,6 +37,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class-expression AST end: { column: 25, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [16, 28], diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index 0e11d4e1269..32276d23114 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "ExportDefaultDeclaration", declaration: ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -18,8 +19,11 @@ Program { end: { column: 27, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -29,6 +33,7 @@ Program { end: { column: 24, line: 1 }, }, }, + implements: Array [], superClass: null, range: [15, 27], diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot index 39d40f50f28..31cfe8a973e 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class AST Alignment - type: 'ExportDefaultDeclaration', declaration: ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -22,8 +23,11 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class AST Alignment - end: { column: 27, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -33,6 +37,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration class AST Alignment - end: { column: 24, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [15, 27], diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot index 126b2374d0f..3475e4fb805 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/1-TSESTree-AST.shot @@ -19,10 +19,12 @@ Program { end: { column: 32, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot index f24a9df7daf..d5c74ed1fc0 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/function/snapshots/5-AST-Alignment-AST.shot @@ -23,10 +23,12 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration function AST Alignmen end: { column: 32, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot index 8bcc402d533..9afeac442a3 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "ExportDefaultDeclaration", declaration: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot index 55d75fdfaaa..5682d50ae12 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/identifier/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration identifier AST Alignm type: 'ExportDefaultDeclaration', declaration: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index 44e4e7f213a..ca7b222b396 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -19,8 +19,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot index 213c1fc5d9a..5818ff75d81 100644 --- a/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportDefaultDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot @@ -23,8 +23,10 @@ exports[`AST Fixtures declaration ExportDefaultDeclaration interface AST Alignme }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot index ff188f640eb..9999b76d853 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { type: "ExportSpecifier", exported: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -27,6 +28,7 @@ Program { exportKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot index 13aa2888bdf..81487c9bfc1 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/aliased/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - type: 'ExportSpecifier', exported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration aliased AST Alignment - exportKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot index cf7064051cf..37bbf2ab102 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { assertions: Array [], declaration: ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [], @@ -19,8 +20,11 @@ Program { end: { column: 19, line: 1 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -30,6 +34,7 @@ Program { end: { column: 16, line: 1 }, }, }, + implements: Array [], superClass: null, range: [7, 19], diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot index 18e0f10224f..1e08010d64d 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/class/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class AST Alignment - A assertions: Array [], declaration: ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [], @@ -23,8 +24,11 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class AST Alignment - A end: { column: 19, line: 1 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -34,6 +38,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration class AST Alignment - A end: { column: 16, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [7, 19], diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot index 886c3a0d491..a87f2cf3a5d 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot index 020583adb6f..b1623c4968c 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/declare-function/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration declare-function AST Al generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot index d93043696da..81f38327c02 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/1-TSESTree-AST.shot @@ -13,6 +13,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot index e4216ffbbbb..cba00ad04c1 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/enum/snapshots/5-AST-Alignment-AST.shot @@ -17,6 +17,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration enum AST Alignment - AS - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot index bcb9f46779a..9ad5b32ef09 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/1-TSESTree-AST.shot @@ -20,10 +20,12 @@ Program { end: { column: 24, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot index eb7f4fcd56f..31a4f289f30 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/function-declaration/snapshots/5-AST-Alignment-AST.shot @@ -24,10 +24,12 @@ exports[`AST Fixtures declaration ExportNamedDeclaration function-declaration AS end: { column: 24, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot index 3a6ed4d9335..961e113ada8 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { type: "ExportSpecifier", exported: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -27,6 +28,7 @@ Program { exportKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot index 88e8545f061..d17b88c8cc6 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-braced/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST A type: 'ExportSpecifier', exported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-braced AST A exportKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot index a92c8aa6275..b679600c3ac 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { type: "ExportSpecifier", exported: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -27,6 +28,7 @@ Program { exportKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -47,6 +49,7 @@ Program { type: "ExportSpecifier", exported: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -59,6 +62,7 @@ Program { exportKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot index 2487dbdbd0e..19de4d0f7c2 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/identifier-many/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali type: 'ExportSpecifier', exported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -31,6 +32,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali exportKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -51,6 +53,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali type: 'ExportSpecifier', exported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -63,6 +66,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration identifier-many AST Ali exportKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot index cc42ddd8ce7..fa87e7b81e9 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/1-TSESTree-AST.shot @@ -20,8 +20,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot index ebeff8c7bbc..4a6ef4e90d4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/interface/snapshots/5-AST-Alignment-AST.shot @@ -24,8 +24,10 @@ exports[`AST Fixtures declaration ExportNamedDeclaration interface AST Alignment }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot index 6ac3233ed4c..53be14527bf 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/1-TSESTree-AST.shot @@ -23,6 +23,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot index bd2b5ec2f68..54d74092f42 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/namespace/snapshots/5-AST-Alignment-AST.shot @@ -27,6 +27,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration namespace AST Alignment - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot index 2d8f6ae69ee..4f908cbe9e4 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot index e76efbf042a..896628c6482 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/type-alias/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration type-alias AST Alignmen - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot index 4b5418116c0..b9e39191619 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot index ed7cc5a0f72..b265b8c947b 100644 --- a/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ExportNamedDeclaration/fixtures/variable-declaration/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration ExportNamedDeclaration variable-declaration AS - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot index aff6daeb1f0..96a295753f9 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot index eb798c023b9..0d134e323b2 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/async/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration async AST Alignment - AST end: { column: 23, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 4f8b305ba12..f91fefb612f 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 17, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index a21980fcb1d..4d1680384f2 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration empty AST Alignment - AST end: { column: 17, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot index 4ce20020aff..96f2b929cae 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 18, line: 1 }, }, }, + declare: false, expression: false, generator: true, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot index 2415f201ddf..37659c98a4a 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/generator/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration generator AST Alignment - end: { column: 18, line: 1 }, }, }, +- declare: false, expression: false, generator: true, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot index 17ecff8bc58..a62be20d2f3 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 24, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -33,6 +35,7 @@ Program { params: Array [ Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -44,6 +47,7 @@ Program { }, Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -55,6 +59,7 @@ Program { }, Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot index d528ab0164a..8e1fef0e8e0 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many AST Alignment - end: { column: 24, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -37,6 +39,7 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many AST Alignment - params: Array [ Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -48,6 +51,7 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many AST Alignment - }, Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -59,6 +63,7 @@ exports[`AST Fixtures declaration FunctionDeclaration param-many AST Alignment - }, Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 236c8b50026..adc9b06ff70 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 18, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -33,6 +35,7 @@ Program { params: Array [ Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot index 96daa22ac60..24d97c68311 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration param-one AST Alignment - end: { column: 18, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -37,6 +39,7 @@ exports[`AST Fixtures declaration FunctionDeclaration param-one AST Alignment - params: Array [ Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot index c19007ffb34..db4980861e7 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 23, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot index 2aad82b811d..50df6aa1bbb 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration returnType AST Alignment - end: { column: 23, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 93a4f018df7..69180dcc5a9 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 26, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -39,6 +41,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -61,6 +64,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "U", optional: false, @@ -83,6 +87,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "V", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 0c832e6531b..726103271df 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm end: { column: 26, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -43,6 +45,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - @@ -66,9 +69,11 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'U', - optional: false, -- ++ name: 'U', + - range: [16, 17], - loc: { - start: { column: 16, line: 1 }, @@ -76,8 +81,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - }, - }, - out: false, -+ name: 'U', - +- range: [16, 17], loc: { start: { column: 16, line: 1 }, @@ -89,6 +93,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-many AST Alignm - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'V', - optional: false, - diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 6b599c28777..7728bf5e746 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -17,10 +17,12 @@ Program { end: { column: 20, line: 1 }, }, }, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -39,6 +41,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index c48c153aed2..2aa9e8c922b 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -21,10 +21,12 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one AST Alignme end: { column: 20, line: 1 }, }, }, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -43,6 +45,7 @@ exports[`AST Fixtures declaration FunctionDeclaration type-param-one AST Alignme - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - diff --git a/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts b/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts index e99150c5f52..0ede710628c 100644 --- a/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/FunctionDeclaration/spec.ts @@ -6,7 +6,7 @@ import type { BlockStatement } from '../../statement/BlockStatement/spec'; interface FunctionDeclarationBase extends FunctionBase { type: AST_NODE_TYPES.FunctionDeclaration; body: BlockStatement; - declare?: false; + declare: false; expression: false; } diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot index 6fb8620b9fb..a4bf6d24dde 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/1-TSESTree-AST.shot @@ -11,6 +11,7 @@ Program { type: "ImportAttribute", key: Identifier { type: "Identifier", + decorators: Array [], name: "type", optional: false, @@ -56,6 +57,7 @@ Program { type: "ImportNamespaceSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot index ae08fe756ac..f436b762068 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/assertion/snapshots/5-AST-Alignment-AST.shot @@ -15,6 +15,7 @@ exports[`AST Fixtures declaration ImportDeclaration assertion AST Alignment - AS type: 'ImportAttribute', key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'type', - optional: false, @@ -60,6 +61,7 @@ exports[`AST Fixtures declaration ImportDeclaration assertion AST Alignment - AS type: 'ImportNamespaceSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot index f3c646c0cb2..128bab49345 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -44,6 +45,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -56,6 +58,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -76,6 +79,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, @@ -88,6 +92,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, @@ -108,6 +113,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "d", optional: false, @@ -120,6 +126,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "d", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot index 591024760d4..03e54d7e051 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-many/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -60,6 +62,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -80,6 +83,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, @@ -92,6 +96,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, @@ -112,6 +117,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'd', - optional: false, @@ -124,6 +130,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-many AST A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'd', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot index 88e4ac693fd..3065e8eb00f 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot index d7901f941f4..d926e582ed9 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-none/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-none AST A type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot index 183db0e9375..fe502b6b0d3 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -44,6 +45,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -56,6 +58,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot index ab4bc6be08f..0280dbae760 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-named-one/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one AST Al type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one AST Al type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -60,6 +62,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-named-one AST Al importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot index 867107943df..7e030105805 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -44,6 +45,7 @@ Program { type: "ImportNamespaceSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot index d1df32b0089..2dcdcf88ed5 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default-and-namespace/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-namespace AST Al type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration ImportDeclaration default-and-namespace AST Al type: 'ImportNamespaceSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot index 78c923b52ac..e6fe948ca49 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportDefaultSpecifier", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot index 39daf9e6786..f26f750648d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/default/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration default AST Alignment - AST type: 'ImportDefaultSpecifier', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot index 45c3c12e653..eb4c0dd8130 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -36,6 +37,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -56,6 +58,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -68,6 +71,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -88,6 +92,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, @@ -100,6 +105,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot index 973642ecc77..60c608085c4 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-many/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -40,6 +41,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -60,6 +62,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -72,6 +75,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -92,6 +96,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, @@ -104,6 +109,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-many AST Alignment - A importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot index 391753c4ef2..e510756d52d 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { type: "ImportSpecifier", imported: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -36,6 +37,7 @@ Program { importKind: "value", local: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot index 93e58c3caad..9f183659098 100644 --- a/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/ImportDeclaration/fixtures/named-one/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-one AST Alignment - AS type: 'ImportSpecifier', imported: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -40,6 +41,7 @@ exports[`AST Fixtures declaration ImportDeclaration named-one AST Alignment - AS importKind: 'value', local: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot index 3306a2be605..dfc85ae7607 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index a7c25dbccde..db8ca71596d 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction empty AST Alignment - AST 1` generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot index f60ecb16dbe..e25ebf8ff6c 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: true, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot index 1e592b621d2..f2de95210fa 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/generator/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction generator AST Alignment - AS generator: true, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot index 49bb9a2f8dc..765afe70a95 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -24,6 +25,7 @@ Program { params: Array [ Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, @@ -35,6 +37,7 @@ Program { }, Identifier { type: "Identifier", + decorators: Array [], name: "b", optional: false, @@ -46,6 +49,7 @@ Program { }, Identifier { type: "Identifier", + decorators: Array [], name: "c", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot index 9373f888258..a5f9bb2ff41 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-many/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many AST Alignment - A generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -28,6 +29,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many AST Alignment - A params: Array [ Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, @@ -39,6 +41,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many AST Alignment - A }, Identifier { type: 'Identifier', +- decorators: Array [], name: 'b', - optional: false, @@ -50,6 +53,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-many AST Alignment - A }, Identifier { type: 'Identifier', +- decorators: Array [], name: 'c', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot index 1620a39b3ce..11466eba5a3 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -24,6 +25,7 @@ Program { params: Array [ Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot index 5695b24b797..45d4a64b961 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/param-one/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-one AST Alignment - AS generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -28,6 +29,7 @@ exports[`AST Fixtures declaration TSDeclareFunction param-one AST Alignment - AS params: Array [ Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot index bdb04ed819a..4fdca5e50ec 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot index 6f08dcf72cf..291cdb6599d 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/returnType/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction returnType AST Alignment - A generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 90b2fdbeb95..f5f26eb7006 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -30,6 +31,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -52,6 +54,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "U", optional: false, @@ -74,6 +77,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "V", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 332b75e2927..8fe3efcd40b 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -34,6 +35,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - @@ -57,6 +59,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'U', - optional: false, - @@ -80,6 +83,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-many AST Alignmen - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'V', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index a80e1e34532..49e351a22e6 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -30,6 +31,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index 3b24f70c74c..b0d76bffd6e 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one AST Alignment generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -34,6 +35,7 @@ exports[`AST Fixtures declaration TSDeclareFunction type-param-one AST Alignment - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot index 954675f7e09..11e3cf1261b 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/1-TSESTree-AST.shot @@ -7,10 +7,12 @@ Program { TSDeclareFunction { type: "TSDeclareFunction", async: false, + declare: false, expression: false, generator: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot index 964330be876..3de9bc65960 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/fixtures/without-declare/snapshots/5-AST-Alignment-AST.shot @@ -11,10 +11,12 @@ exports[`AST Fixtures declaration TSDeclareFunction without-declare AST Alignmen TSDeclareFunction { type: 'TSDeclareFunction', async: false, +- declare: false, expression: false, generator: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts b/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts index 4f77fd47ab5..50cc07ec424 100644 --- a/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts +++ b/packages/ast-spec/src/declaration/TSDeclareFunction/spec.ts @@ -5,8 +5,7 @@ import type { BlockStatement } from '../../statement/BlockStatement/spec'; // TODO(#1852) - async + declare are semantically invalid together export interface TSDeclareFunction extends FunctionBase { type: AST_NODE_TYPES.TSDeclareFunction; - // TODO(#1852) - breaking change enforce this is always `null` like `TSEmptyBodyFunctionExpression` - body?: BlockStatement; + body: BlockStatement | undefined; declare: boolean; expression: false; } diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot index ffc3d49c881..c14a66f0983 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot index 67f7ca4109e..c9480e42c3a 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/const/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration const AST Alignment - AST 1` - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 7c371b95a86..07212c2caa2 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { declare: true, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 3479d1f35cf..3926e3f88cc 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration declare AST Alignment - AST declare: true, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index 882f67cd409..f63e5c4ae75 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index a8e76ea1404..86d2f4844f4 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration empty AST Alignment - AST 1` - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index 6df30c0ae8f..94bdc25daf6 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -25,6 +26,7 @@ Program { computed: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, diff --git a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index 5562ddef536..7137394a11b 100644 --- a/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSEnumDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration with-member-one AST Alignmen - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -29,6 +30,7 @@ exports[`AST Fixtures declaration TSEnumDeclaration with-member-one AST Alignmen - computed: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot index d0fefbe1c48..4defc66cc22 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "TSImportEqualsDeclaration", id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, @@ -25,6 +26,7 @@ Program { type: "TSQualifiedName", left: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, @@ -36,6 +38,7 @@ Program { }, right: Identifier { type: "Identifier", + decorators: Array [], name: "B", optional: false, @@ -54,6 +57,7 @@ Program { }, right: Identifier { type: "Identifier", + decorators: Array [], name: "C", optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot index 786c8c3830d..6fd6ed43498 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-many/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many AST type: 'TSImportEqualsDeclaration', id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, @@ -29,6 +30,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many AST type: 'TSQualifiedName', left: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, @@ -40,6 +42,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many AST }, right: Identifier { type: 'Identifier', +- decorators: Array [], name: 'B', - optional: false, @@ -58,6 +61,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-many AST }, right: Identifier { type: 'Identifier', +- decorators: Array [], name: 'C', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot index 3b2288a4c12..304efa38d67 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "TSImportEqualsDeclaration", id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, @@ -21,6 +22,7 @@ Program { isExport: false, moduleReference: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot index a850297fdbf..a86664a6eb4 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/entity-name-one/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one AST type: 'TSImportEqualsDeclaration', id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, @@ -25,6 +26,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration entity-name-one AST isExport: false, moduleReference: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot index 84066570bd1..be418a5bda5 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "TSImportEqualsDeclaration", id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot index 73a07558055..613759e2433 100644 --- a/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSImportEqualsDeclaration/fixtures/external-module-ref-string/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration TSImportEqualsDeclaration external-module-ref- type: 'TSImportEqualsDeclaration', id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 4577e0ff3c3..f75a923e311 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -17,8 +17,10 @@ Program { }, }, declare: true, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index 74e3f0a4335..f283ed85e49 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -21,8 +21,10 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration declare AST Alignment - }, }, declare: true, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot index f5a1ad72b59..a76723a4202 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/1-TSESTree-AST.shot @@ -17,8 +17,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot index 2107110dd9b..81a856aecb1 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/empty/snapshots/5-AST-Alignment-AST.shot @@ -21,8 +21,10 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration empty AST Alignment - A }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot index f93280b8283..382ae653723 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, @@ -42,6 +43,7 @@ Program { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", + decorators: Array [], name: "B", optional: false, @@ -62,6 +64,7 @@ Program { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", + decorators: Array [], name: "C", optional: false, @@ -81,6 +84,7 @@ Program { ], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot index 6bd7f1d3d75..5a1f33b4a95 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-many/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, @@ -50,6 +51,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'B', - optional: false, @@ -72,6 +74,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'C', - optional: false, @@ -91,6 +94,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-many AST Alignm ], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot index 9d0442391bf..2613dccbcd7 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/1-TSESTree-AST.shot @@ -22,6 +22,7 @@ Program { type: "TSInterfaceHeritage", expression: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, @@ -41,6 +42,7 @@ Program { ], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot index 51d29872c1e..a33d62920a1 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/extends-one/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one AST Alignme + type: 'TSExpressionWithTypeArguments', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, @@ -47,6 +48,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration extends-one AST Alignme ], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index e4f0b6c45ad..439b8b61589 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -17,8 +17,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, @@ -36,6 +38,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -58,6 +61,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "U", optional: false, @@ -80,6 +84,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "V", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index ff0b3377ce1..1c04bc51282 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -21,8 +21,10 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, @@ -40,6 +42,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - @@ -63,6 +66,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'U', - optional: false, - @@ -86,6 +90,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-many AST Ali - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'V', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 7519171edba..991f44fcc75 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -17,8 +17,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, @@ -36,6 +38,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index 4138a1cad3c..f8638701bcd 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -21,8 +21,10 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one AST Alig }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, @@ -40,6 +42,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration type-param-one AST Alig - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'T', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot index 1b9818fdeb8..2d6f6d28068 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/1-TSESTree-AST.shot @@ -15,6 +15,7 @@ Program { export: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -43,8 +44,10 @@ Program { }, }, declare: false, + extends: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot index 576097ba67b..1c9e9d76628 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/fixtures/with-member-one/snapshots/5-AST-Alignment-AST.shot @@ -19,6 +19,7 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one AST Ali - export: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -47,8 +48,10 @@ exports[`AST Fixtures declaration TSInterfaceDeclaration with-member-one AST Ali }, }, - declare: false, +- extends: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts index cc52616d801..9a35efc7c15 100644 --- a/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSInterfaceDeclaration/spec.ts @@ -18,14 +18,13 @@ export interface TSInterfaceDeclaration extends BaseNode { /** * The types this interface `extends` */ - extends?: TSInterfaceHeritage[]; + extends: TSInterfaceHeritage[]; /** * The name of this interface */ id: Identifier; /** * The generic type parameters declared for the interface. - * This is `undefined` if there are no generic type parameters declared. */ - typeParameters?: TSTypeParameterDeclaration; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot index b986c8cf5de..cb5f9a6a210 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { global: true, id: Identifier { type: "Identifier", + decorators: Array [], name: "global", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot index 3eee36aa889..028523225ac 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/global/snapshots/5-AST-Alignment-AST.shot @@ -24,6 +24,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration global AST Alignment - AST global: true, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'global', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot index 39ae7305132..58179b427d9 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot index 16c6cddef62..cae7671c8f3 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-declare/snapshots/5-AST-Alignment-AST.shot @@ -24,6 +24,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-declare AST Alignme - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot index d013ab3b7b1..1e42614369b 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot index f4beac5edc8..89b0e7f51cf 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-identifier/snapshots/5-AST-Alignment-AST.shot @@ -24,6 +24,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-identifier AST A - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot index c6aded300d0..4f000a94598 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "C", optional: false, @@ -44,6 +45,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "B", optional: false, @@ -64,6 +66,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot index a7658ae374c..792cf11b144 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name A - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'C', - optional: false, @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name A - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'B', - optional: false, @@ -68,6 +70,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration module-id-qualified-name A - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot index bad03729aec..43a9e8118cd 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot index abf01262461..29af3edc0e2 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-declare/snapshots/5-AST-Alignment-AST.shot @@ -24,6 +24,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-declare AST Alig - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot index a68de341f22..4773fdf9531 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/1-TSESTree-AST.shot @@ -20,6 +20,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "F", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot index 48fb299e4c7..fcd8e9071ec 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/snapshots/5-AST-Alignment-AST.shot @@ -24,6 +24,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-identifier AS - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'F', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot index 56f4cf5639c..d4708f0dfc5 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/1-TSESTree-AST.shot @@ -24,6 +24,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "C", optional: false, @@ -44,6 +45,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "B", optional: false, @@ -64,6 +66,7 @@ Program { global: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "A", optional: false, diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot index 35ef462d3da..7835c5de7c8 100644 --- a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/snapshots/5-AST-Alignment-AST.shot @@ -28,6 +28,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-nam - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'C', - optional: false, @@ -48,6 +49,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-nam - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'B', - optional: false, @@ -68,6 +70,7 @@ exports[`AST Fixtures declaration TSModuleDeclaration namespace-id-qualified-nam - global: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'A', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index 7d5017da0cc..b19984c215f 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -8,6 +8,7 @@ Program { type: "TSNamespaceExportDeclaration", id: Identifier { type: "Identifier", + decorators: Array [], name: "a", optional: false, diff --git a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot index 932c2efdaf8..21c15688f30 100644 --- a/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSNamespaceExportDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot @@ -12,6 +12,7 @@ exports[`AST Fixtures declaration TSNamespaceExportDeclaration valid AST Alignme type: 'TSNamespaceExportDeclaration', id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'a', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index e282cbbc6dd..474b5c7dd88 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { declare: true, id: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index a2941346b5e..253e63408e6 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration declare AST Alignment - declare: true, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'T', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot index 926affbe0a6..6e34b7e37d0 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -46,6 +47,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "U", optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot index 47391333a1d..d6907099380 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-many/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many AST Ali - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'T', - optional: false, @@ -50,6 +51,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-many AST Ali - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'U', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot index 87cf9724ca1..bafeb9f8298 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, @@ -46,6 +47,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "U", optional: false, @@ -68,6 +70,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "V", optional: false, @@ -90,6 +93,7 @@ Program { in: false, name: Identifier { type: "Identifier", + decorators: Array [], name: "W", optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot index ae944d0d396..f9e09081c6a 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/type-param-one/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'T', - optional: false, @@ -50,6 +51,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'U', - optional: false, - @@ -73,9 +75,11 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'V', - optional: false, -- ++ name: 'V', + - range: [10, 11], - loc: { - start: { column: 10, line: 1 }, @@ -83,8 +87,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - }, - }, - out: false, -+ name: 'V', - +- range: [10, 11], loc: { start: { column: 10, line: 1 }, @@ -96,6 +99,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration type-param-one AST Alig - in: false, - name: Identifier { - type: 'Identifier', +- decorators: Array [], - name: 'W', - optional: false, - diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot index b1c370c49c1..252b109bbac 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/1-TSESTree-AST.shot @@ -9,6 +9,7 @@ Program { declare: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "T", optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot index 4446a09bb25..fe331054c0f 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/fixtures/valid/snapshots/5-AST-Alignment-AST.shot @@ -13,6 +13,7 @@ exports[`AST Fixtures declaration TSTypeAliasDeclaration valid AST Alignment - A - declare: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'T', - optional: false, diff --git a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts index c961b7aad65..6d7232344b2 100644 --- a/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts +++ b/packages/ast-spec/src/declaration/TSTypeAliasDeclaration/spec.ts @@ -23,7 +23,6 @@ export interface TSTypeAliasDeclaration extends BaseNode { typeAnnotation: TypeNode; /** * The generic type parameters declared for the type. - * This is `undefined` if there are no generic type parameters declared. */ - typeParameters?: TSTypeParameterDeclaration; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot index 03700b02f70..4f91419cb04 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot index 9ae06997902..d997027ffab 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-with-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration const-with-value AST Align - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot index ea430a699c8..ce53f114348 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot index 5f3ff239774..077480be9fd 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/const-without-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration const-without-value AST Al - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot index 8f6b0cfaf0c..64eea0d74fb 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot index a10d69fe363..87e680ef9a2 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/declare/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration declare AST Alignment - AS - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot index 4bfa687da32..c85ab81344f 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot index 1462820da10..b275669e12a 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-with-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration let-with-value AST Alignme - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot index d81de6670f5..e5cc8db17bf 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot index f7d843faabd..7df64b552f6 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/let-without-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration let-without-value AST Alig - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot index c20575baa83..e02278f0253 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, @@ -34,6 +35,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "y", optional: false, @@ -56,6 +58,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "z", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot index e283da78f1e..f7e6ff872f0 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/multiple-declarations/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations AST - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, @@ -38,6 +39,7 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations AST - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'y', - optional: false, @@ -60,6 +62,7 @@ exports[`AST Fixtures declaration VariableDeclaration multiple-declarations AST - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'z', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot index 31ff00f49fb..1821c356a1d 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot index dd4d70e9ddc..f9ec50b22b4 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-with-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration var-with-value AST Alignme - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot index 38b1fcfe0c2..6cc3a16f274 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { definite: false, id: Identifier { type: "Identifier", + decorators: Array [], name: "x", optional: false, diff --git a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot index 7d1b618cad6..af47a7b5819 100644 --- a/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/declaration/VariableDeclaration/fixtures/var-without-value/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures declaration VariableDeclaration var-without-value AST Alig - definite: false, id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'x', - optional: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot index 8a6df23d6a3..f8d28da3ff4 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,6 +14,8 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Literal { type: "Literal", raw: "1", @@ -24,7 +27,9 @@ Program { end: { column: 12, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +57,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +71,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 31], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot index 8ccbd8202c3..cc863efb53e 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-complex/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,6 +20,8 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Literal { type: 'Literal', raw: '1', @@ -30,7 +33,9 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen end: { column: 12, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +63,11 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +77,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-complex AST Alignmen end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 31], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot index a3b985799f4..b732b38fcaa 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,6 +14,8 @@ Program { type: "AccessorProperty", computed: true, declare: false, + decorators: Array [], + definite: false, key: Literal { type: "Literal", raw: "1", @@ -24,7 +27,9 @@ Program { end: { column: 13, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +57,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +71,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 33], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot index 8ae414860c6..f4e4e3be0f2 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-number/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,6 +20,8 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment + type: 'ClassAccessorProperty', computed: true, - declare: false, +- decorators: Array [], +- definite: false, key: Literal { type: 'Literal', raw: '1', @@ -30,7 +33,9 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment end: { column: 13, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +63,11 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +77,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-number AST Alignment end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 33], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot index 9ac161655c2..1b6c803cccb 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,6 +14,8 @@ Program { type: "AccessorProperty", computed: true, declare: false, + decorators: Array [], + definite: false, key: Literal { type: "Literal", raw: "'prop'", @@ -24,7 +27,9 @@ Program { end: { column: 18, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +57,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +71,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 44], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot index a1de6a75a0d..19306f51f95 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-computed-string/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,6 +20,8 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment + type: 'ClassAccessorProperty', computed: true, - declare: false, +- decorators: Array [], +- definite: false, key: Literal { type: 'Literal', raw: '\\\\'prop\\\\'', @@ -30,7 +33,9 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment end: { column: 18, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +63,11 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +77,7 @@ exports[`AST Fixtures element AccessorProperty key-computed-string AST Alignment end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 44], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot index 516e2665f52..0d9b49ae835 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,6 +14,8 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: PrivateIdentifier { type: "PrivateIdentifier", name: "foo", @@ -23,7 +26,9 @@ Program { end: { column: 15, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -51,8 +56,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -62,6 +70,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 34], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot index cc1a41a56b9..78ff86db859 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-private/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,6 +20,8 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: PrivateIdentifier { type: 'PrivateIdentifier', name: 'foo', @@ -29,7 +32,9 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 end: { column: 15, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -57,8 +62,11 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -68,6 +76,7 @@ exports[`AST Fixtures element AccessorProperty key-private AST Alignment - AST 1 end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 34], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot index 9d0b3d306d7..0f5cd36e1df 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,6 +14,8 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Literal { type: "Literal", raw: "'prop'", @@ -24,7 +27,9 @@ Program { end: { column: 17, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +57,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +71,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 42], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot index 6f9a498971c..5b81a96c913 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/key-string/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,6 +20,8 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Literal { type: 'Literal', raw: '\\\\'prop\\\\'', @@ -30,7 +33,9 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` end: { column: 17, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +63,11 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +77,7 @@ exports[`AST Fixtures element AccessorProperty key-string AST Alignment - AST 1` end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 42], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot index e1230755754..131625db754 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/snapshots/1-TSESTree-AST.shot @@ -14,8 +14,11 @@ Program { type: "TSAbstractAccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,7 +28,9 @@ Program { end: { column: 23, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", @@ -61,8 +66,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -72,6 +80,7 @@ Program { end: { column: 18, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 59], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot index 5be300528db..5b7c646dd52 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract/snapshots/1-TSESTree-AST.shot @@ -14,8 +14,11 @@ Program { type: "TSAbstractAccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,7 +28,9 @@ Program { end: { column: 23, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", @@ -61,8 +66,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -72,6 +80,7 @@ Program { end: { column: 18, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 55], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot index 9a51b8f4ef8..c8816b3e961 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 23, line: 2 }, }, }, + optional: false, override: true, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +58,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,8 +72,10 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: Identifier { type: "Identifier", + decorators: Array [], name: "Bar", optional: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot index c4c38eece16..4586e088951 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-override/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,8 +20,11 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -30,7 +34,9 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - end: { column: 23, line: 2 }, }, }, +- optional: false, override: true, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +64,11 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,8 +78,10 @@ exports[`AST Fixtures element AccessorProperty modifier-override AST Alignment - end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Bar', - optional: false, diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot index 57e2030bf07..e96909134a6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -14,8 +15,11 @@ Program { accessibility: "private", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,7 +29,9 @@ Program { end: { column: 22, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -53,8 +59,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -64,6 +73,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 41], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot index 8b707c3dabd..d3111bb3ed9 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-private/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -20,8 +21,11 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - accessibility: 'private', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -31,7 +35,9 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - end: { column: 22, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -59,8 +65,11 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -70,6 +79,7 @@ exports[`AST Fixtures element AccessorProperty modifier-private AST Alignment - end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 41], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot index 442610bed95..5f4807e6d28 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -14,8 +15,11 @@ Program { accessibility: "protected", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,7 +29,9 @@ Program { end: { column: 24, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -53,8 +59,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -64,6 +73,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 43], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot index be682606071..821908cd72a 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-protected/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -20,8 +21,11 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment accessibility: 'protected', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -31,7 +35,9 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment end: { column: 24, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -59,8 +65,11 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -70,6 +79,7 @@ exports[`AST Fixtures element AccessorProperty modifier-protected AST Alignment end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 43], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot index 9384270e41d..1122b795bc8 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -14,8 +15,11 @@ Program { accessibility: "public", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,7 +29,9 @@ Program { end: { column: 21, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -53,8 +59,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -64,6 +73,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot index 9770f7cc2c0..b5c95aa7471 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-public/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -20,8 +21,11 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A accessibility: 'public', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -31,7 +35,9 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A end: { column: 21, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -59,8 +65,11 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -70,6 +79,7 @@ exports[`AST Fixtures element AccessorProperty modifier-public AST Alignment - A end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot index 7e112c6c207..729514f58a3 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -24,6 +28,7 @@ Program { end: { column: 23, line: 2 }, }, }, + optional: false, override: false, readonly: true, static: false, @@ -53,8 +58,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -64,6 +72,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 42], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot index 83680e88455..1b4e86bf4f6 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-readonly/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,8 +20,11 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -30,6 +34,7 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - end: { column: 23, line: 2 }, }, }, +- optional: false, - override: false, readonly: true, static: false, @@ -59,8 +64,11 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -70,6 +78,7 @@ exports[`AST Fixtures element AccessorProperty modifier-readonly AST Alignment - end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 42], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot index fde84261d28..4569d9539f2 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 21, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: true, value: Literal { type: "Literal", @@ -52,8 +58,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +72,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot index 08331aede3b..1786d890224 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-static/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,8 +20,11 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -30,7 +34,9 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A end: { column: 21, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: true, value: Literal { type: 'Literal', @@ -58,8 +64,11 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +78,7 @@ exports[`AST Fixtures element AccessorProperty modifier-static AST Alignment - A end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 40], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot index 75cb9c5fb29..72e8429280b 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 15, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: null, @@ -42,8 +48,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -53,6 +62,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 30], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot index 639152e55b3..000f205df51 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-no-value/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,8 +20,11 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -30,7 +34,9 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm end: { column: 15, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: null, @@ -48,8 +54,11 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -59,6 +68,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-no-value AST Alignm end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 30], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot index 4bf1c177c54..521e0a423e5 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 15, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, value: Literal { type: "Literal", @@ -52,8 +58,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -63,6 +72,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 38], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot index da9b4802312..65a2b2405a9 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/no-annotation-with-value/snapshots/5-AST-Alignment-AST.shot @@ -10,6 +10,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig body: Array [ ClassDeclaration { type: 'ClassDeclaration', +- abstract: false, body: ClassBody { type: 'ClassBody', body: Array [ @@ -19,8 +20,11 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig + type: 'ClassAccessorProperty', computed: false, - declare: false, +- decorators: Array [], +- definite: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -30,7 +34,9 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig end: { column: 15, line: 2 }, }, }, +- optional: false, - override: false, +- readonly: false, static: false, value: Literal { type: 'Literal', @@ -58,8 +64,11 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig end: { column: 1, line: 3 }, }, }, +- declare: false, +- decorators: Array [], id: Identifier { type: 'Identifier', +- decorators: Array [], name: 'Foo', - optional: false, @@ -69,6 +78,7 @@ exports[`AST Fixtures element AccessorProperty no-annotation-with-value AST Alig end: { column: 9, line: 1 }, }, }, +- implements: Array [], superClass: null, range: [0, 38], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot index 87062df188f..e12625a5c19 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-no-value/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 15, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", @@ -60,8 +66,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -71,6 +80,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 38], diff --git a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot index 8a495215bd0..92037bc642b 100644 --- a/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/element/AccessorProperty/fixtures/with-annotation-with-value/snapshots/1-TSESTree-AST.shot @@ -6,6 +6,7 @@ Program { body: Array [ ClassDeclaration { type: "ClassDeclaration", + abstract: false, body: ClassBody { type: "ClassBody", body: Array [ @@ -13,8 +14,11 @@ Program { type: "AccessorProperty", computed: false, declare: false, + decorators: Array [], + definite: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -24,7 +28,9 @@ Program { end: { column: 15, line: 2 }, }, }, + optional: false, override: false, + readonly: false, static: false, typeAnnotation: TSTypeAnnotation { type: "TSTypeAnnotation", @@ -70,8 +76,11 @@ Program { end: { column: 1, line: 3 }, }, }, + declare: false, + decorators: Array [], id: Identifier { type: "Identifier", + decorators: Array [], name: "Foo", optional: false, @@ -81,6 +90,7 @@ Program { end: { column: 9, line: 1 }, }, }, + implements: Array [], superClass: null, range: [0, 46], diff --git a/packages/ast-spec/src/element/TSEnumMember/spec.ts b/packages/ast-spec/src/element/TSEnumMember/spec.ts index f81c0f4c7a8..9dd1ddeee69 100644 --- a/packages/ast-spec/src/element/TSEnumMember/spec.ts +++ b/packages/ast-spec/src/element/TSEnumMember/spec.ts @@ -11,7 +11,7 @@ interface TSEnumMemberBase extends BaseNode { id: | PropertyNameComputed // this should only happen in semantically invalid code (ts error 1164) | PropertyNameNonComputed; - initializer?: Expression; + initializer: Expression | undefined; computed: boolean; } diff --git a/packages/ast-spec/src/element/TSIndexSignature/spec.ts b/packages/ast-spec/src/element/TSIndexSignature/spec.ts index deffb59d5c3..4df5be7c546 100644 --- a/packages/ast-spec/src/element/TSIndexSignature/spec.ts +++ b/packages/ast-spec/src/element/TSIndexSignature/spec.ts @@ -7,9 +7,9 @@ import type { Parameter } from '../../unions/Parameter'; export interface TSIndexSignature extends BaseNode { type: AST_NODE_TYPES.TSIndexSignature; parameters: Parameter[]; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; readonly: boolean; - accessibility?: Accessibility; + accessibility: Accessibility | undefined; export: boolean; static: boolean; } diff --git a/packages/ast-spec/src/element/TSMethodSignature/spec.ts b/packages/ast-spec/src/element/TSMethodSignature/spec.ts index bd515d17c93..10a7d41a8c8 100644 --- a/packages/ast-spec/src/element/TSMethodSignature/spec.ts +++ b/packages/ast-spec/src/element/TSMethodSignature/spec.ts @@ -16,10 +16,10 @@ interface TSMethodSignatureBase extends BaseNode { computed: boolean; params: Parameter[]; optional: boolean; - returnType?: TSTypeAnnotation; + returnType: TSTypeAnnotation | undefined; readonly: boolean; - typeParameters?: TSTypeParameterDeclaration; - accessibility?: Accessibility; + typeParameters: TSTypeParameterDeclaration | undefined; + accessibility: Accessibility | undefined; export: boolean; static: boolean; kind: 'get' | 'method' | 'set'; diff --git a/packages/ast-spec/src/element/TSPropertySignature/spec.ts b/packages/ast-spec/src/element/TSPropertySignature/spec.ts index e2df01e6687..a989e53bfbb 100644 --- a/packages/ast-spec/src/element/TSPropertySignature/spec.ts +++ b/packages/ast-spec/src/element/TSPropertySignature/spec.ts @@ -14,12 +14,12 @@ interface TSPropertySignatureBase extends BaseNode { key: PropertyName; optional: boolean; computed: boolean; - typeAnnotation?: TSTypeAnnotation; - initializer?: Expression; + typeAnnotation: TSTypeAnnotation | undefined; + initializer: Expression | undefined; readonly: boolean; static: boolean; export: boolean; - accessibility?: Accessibility; + accessibility: Accessibility | undefined; } export interface TSPropertySignatureComputedName diff --git a/packages/ast-spec/src/expression/ArrowFunctionExpression/spec.ts b/packages/ast-spec/src/expression/ArrowFunctionExpression/spec.ts index 347ee854137..8532636554a 100644 --- a/packages/ast-spec/src/expression/ArrowFunctionExpression/spec.ts +++ b/packages/ast-spec/src/expression/ArrowFunctionExpression/spec.ts @@ -14,6 +14,6 @@ export interface ArrowFunctionExpression extends BaseNode { body: BlockStatement | Expression; async: boolean; expression: boolean; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; + returnType: TSTypeAnnotation | undefined; + typeParameters: TSTypeParameterDeclaration | undefined; } diff --git a/packages/ast-spec/src/expression/CallExpression/spec.ts b/packages/ast-spec/src/expression/CallExpression/spec.ts index bd71773a1be..27f22bfcb62 100644 --- a/packages/ast-spec/src/expression/CallExpression/spec.ts +++ b/packages/ast-spec/src/expression/CallExpression/spec.ts @@ -8,6 +8,6 @@ export interface CallExpression extends BaseNode { type: AST_NODE_TYPES.CallExpression; callee: LeftHandSideExpression; arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; optional: boolean; } diff --git a/packages/ast-spec/src/expression/ClassExpression/spec.ts b/packages/ast-spec/src/expression/ClassExpression/spec.ts index dfe6c0d1b41..dbd4936f67c 100644 --- a/packages/ast-spec/src/expression/ClassExpression/spec.ts +++ b/packages/ast-spec/src/expression/ClassExpression/spec.ts @@ -3,7 +3,7 @@ import type { ClassBase } from '../../base/ClassBase'; export interface ClassExpression extends ClassBase { type: AST_NODE_TYPES.ClassExpression; - abstract?: undefined; - declare?: undefined; - decorators?: undefined; + abstract: false; + declare: false; + decorators: []; } diff --git a/packages/ast-spec/src/expression/Identifier/spec.ts b/packages/ast-spec/src/expression/Identifier/spec.ts index 76536f30759..d18ba7b9b99 100644 --- a/packages/ast-spec/src/expression/Identifier/spec.ts +++ b/packages/ast-spec/src/expression/Identifier/spec.ts @@ -6,7 +6,7 @@ import type { TSTypeAnnotation } from '../../special/TSTypeAnnotation/spec'; export interface Identifier extends BaseNode { type: AST_NODE_TYPES.Identifier; name: string; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; optional: boolean; - decorators?: Decorator[]; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/expression/NewExpression/spec.ts b/packages/ast-spec/src/expression/NewExpression/spec.ts index 1ee93ef507d..652f47a99ac 100644 --- a/packages/ast-spec/src/expression/NewExpression/spec.ts +++ b/packages/ast-spec/src/expression/NewExpression/spec.ts @@ -8,5 +8,5 @@ export interface NewExpression extends BaseNode { type: AST_NODE_TYPES.NewExpression; callee: LeftHandSideExpression; arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; } diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot index f772edce544..0bdfeb5aa60 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { type: "TSSatisfiesExpression", expression: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -25,6 +26,7 @@ Program { type: "TSTypeReference", typeName: Identifier { type: "Identifier", + decorators: Array [], name: "bar", optional: false, @@ -52,6 +54,7 @@ Program { type: "TSTypeReference", typeName: Identifier { type: "Identifier", + decorators: Array [], name: "baz", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot index 5f662cc7bc0..c3381385760 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/chained-satisfies/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies AST Ali type: 'TSSatisfiesExpression', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -29,6 +30,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies AST Ali type: 'TSTypeReference', typeName: Identifier { type: 'Identifier', +- decorators: Array [], name: 'bar', - optional: false, @@ -56,6 +58,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression chained-satisfies AST Ali type: 'TSTypeReference', typeName: Identifier { type: 'Identifier', +- decorators: Array [], name: 'baz', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot index 719447c46f0..ecdb83c7809 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -50,6 +50,7 @@ Program { }, test: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot index 4cd0698378c..b8284df201f 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-no-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -54,6 +54,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-no-parenthese }, test: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot index 02171dda1b7..af5b71d976d 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -34,6 +34,7 @@ Program { }, test: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot index c13834b85c3..8d2c36f9f1a 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/conditional-with-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -38,6 +38,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression conditional-with-parenthe }, test: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot index 6dd86e55c85..93148e4e73e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { type: "TSSatisfiesExpression", expression: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot index 8deecbff393..caa4c4e0517 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-keyword/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-keyword AST Al type: 'TSSatisfiesExpression', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot index 534eb23c449..6d4a608ef45 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { type: "TSSatisfiesExpression", expression: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, @@ -28,6 +29,7 @@ Program { export: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot index 06beac2ea6b..bb24060c763 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-object-type/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type AS type: 'TSSatisfiesExpression', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, @@ -32,6 +33,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-object-type AS - export: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot index b0e4e77d6a1..94891e7290c 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { type: "TSSatisfiesExpression", expression: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot index 0c7c89fbecc..9d2bc98de48 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/identifier-tuple-type/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression identifier-tuple-type AST type: 'TSSatisfiesExpression', expression: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot index d56b22dd7a3..b4e34c9e647 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/1-TSESTree-AST.shot @@ -10,6 +10,7 @@ Program { type: "BinaryExpression", left: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot index 56e09382a5c..7d464b640eb 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-no-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -14,6 +14,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-no-parentheses AS type: 'BinaryExpression', left: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot index cb93ef5f427..a69b07ee1c2 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/1-TSESTree-AST.shot @@ -12,6 +12,7 @@ Program { type: "BinaryExpression", left: Identifier { type: "Identifier", + decorators: Array [], name: "foo", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot index 038cacf41e0..d616143c031 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/logical-with-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -16,6 +16,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression logical-with-parentheses type: 'BinaryExpression', left: Identifier { type: 'Identifier', +- decorators: Array [], name: 'foo', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot index 6cf9c73f586..a2954891bbd 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { computed: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -64,6 +65,7 @@ Program { export: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot index 318e1192b69..f2aa2c588a7 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-paren computed: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -68,6 +69,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-inner-paren - export: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot index bb2b0604a5b..785962b498e 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/1-TSESTree-AST.shot @@ -16,6 +16,7 @@ Program { computed: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, @@ -64,6 +65,7 @@ Program { export: false, key: Identifier { type: "Identifier", + decorators: Array [], name: "prop", optional: false, diff --git a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot index c9130e3a2ee..b017e2e3799 100644 --- a/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot +++ b/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/snapshots/5-AST-Alignment-AST.shot @@ -20,6 +20,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-paren computed: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, @@ -68,6 +69,7 @@ exports[`AST Fixtures expression TSSatisfiesExpression object-object-outer-paren - export: false, key: Identifier { type: 'Identifier', +- decorators: Array [], name: 'prop', - optional: false, diff --git a/packages/ast-spec/src/expression/TaggedTemplateExpression/spec.ts b/packages/ast-spec/src/expression/TaggedTemplateExpression/spec.ts index e3438484d9d..341537c2874 100644 --- a/packages/ast-spec/src/expression/TaggedTemplateExpression/spec.ts +++ b/packages/ast-spec/src/expression/TaggedTemplateExpression/spec.ts @@ -6,7 +6,7 @@ import type { TemplateLiteral } from '../TemplateLiteral/spec'; export interface TaggedTemplateExpression extends BaseNode { type: AST_NODE_TYPES.TaggedTemplateExpression; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; tag: LeftHandSideExpression; quasi: TemplateLiteral; } diff --git a/packages/ast-spec/src/expression/YieldExpression/spec.ts b/packages/ast-spec/src/expression/YieldExpression/spec.ts index 1f07e4f78e3..00c64731e73 100644 --- a/packages/ast-spec/src/expression/YieldExpression/spec.ts +++ b/packages/ast-spec/src/expression/YieldExpression/spec.ts @@ -5,5 +5,5 @@ import type { Expression } from '../../unions/Expression'; export interface YieldExpression extends BaseNode { type: AST_NODE_TYPES.YieldExpression; delegate: boolean; - argument?: Expression; + argument: Expression | undefined; } diff --git a/packages/ast-spec/src/jsx/JSXOpeningElement/spec.ts b/packages/ast-spec/src/jsx/JSXOpeningElement/spec.ts index 710fade02fa..227663d6d7b 100644 --- a/packages/ast-spec/src/jsx/JSXOpeningElement/spec.ts +++ b/packages/ast-spec/src/jsx/JSXOpeningElement/spec.ts @@ -7,7 +7,7 @@ import type { JSXSpreadAttribute } from '../JSXSpreadAttribute/spec'; export interface JSXOpeningElement extends BaseNode { type: AST_NODE_TYPES.JSXOpeningElement; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; selfClosing: boolean; name: JSXTagNameExpression; attributes: (JSXAttribute | JSXSpreadAttribute)[]; diff --git a/packages/ast-spec/src/parameter/ArrayPattern/spec.ts b/packages/ast-spec/src/parameter/ArrayPattern/spec.ts index 0d900b3398e..9fd684b8044 100644 --- a/packages/ast-spec/src/parameter/ArrayPattern/spec.ts +++ b/packages/ast-spec/src/parameter/ArrayPattern/spec.ts @@ -7,7 +7,7 @@ import type { DestructuringPattern } from '../../unions/DestructuringPattern'; export interface ArrayPattern extends BaseNode { type: AST_NODE_TYPES.ArrayPattern; elements: (DestructuringPattern | null)[]; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; optional: boolean; - decorators?: Decorator[]; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts b/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts index 418de00607d..208a44e8298 100644 --- a/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts +++ b/packages/ast-spec/src/parameter/AssignmentPattern/spec.ts @@ -9,7 +9,7 @@ export interface AssignmentPattern extends BaseNode { type: AST_NODE_TYPES.AssignmentPattern; left: BindingName; right: Expression; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; optional: boolean; - decorators?: Decorator[]; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/ObjectPattern/spec.ts b/packages/ast-spec/src/parameter/ObjectPattern/spec.ts index 6ff698671dd..76c53798a4d 100644 --- a/packages/ast-spec/src/parameter/ObjectPattern/spec.ts +++ b/packages/ast-spec/src/parameter/ObjectPattern/spec.ts @@ -8,7 +8,7 @@ import type { RestElement } from '../RestElement/spec'; export interface ObjectPattern extends BaseNode { type: AST_NODE_TYPES.ObjectPattern; properties: (Property | RestElement)[]; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; optional: boolean; - decorators?: Decorator[]; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/RestElement/spec.ts b/packages/ast-spec/src/parameter/RestElement/spec.ts index 61a57c99f8a..59f07798864 100644 --- a/packages/ast-spec/src/parameter/RestElement/spec.ts +++ b/packages/ast-spec/src/parameter/RestElement/spec.ts @@ -8,8 +8,8 @@ import type { AssignmentPattern } from '../AssignmentPattern/spec'; export interface RestElement extends BaseNode { type: AST_NODE_TYPES.RestElement; argument: DestructuringPattern; - typeAnnotation?: TSTypeAnnotation; + typeAnnotation: TSTypeAnnotation | undefined; optional: boolean; - value?: AssignmentPattern; - decorators?: Decorator[]; + value: AssignmentPattern | undefined; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts b/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts index f09a28bd3db..ead662ad087 100644 --- a/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts +++ b/packages/ast-spec/src/parameter/TSParameterProperty/spec.ts @@ -8,11 +8,11 @@ import type { RestElement } from '../RestElement/spec'; export interface TSParameterProperty extends BaseNode { type: AST_NODE_TYPES.TSParameterProperty; - accessibility?: Accessibility; + accessibility: Accessibility | undefined; readonly: boolean; static: boolean; export: boolean; override: boolean; parameter: AssignmentPattern | BindingName | RestElement; - decorators?: Decorator[]; + decorators: Decorator[]; } diff --git a/packages/ast-spec/src/special/Program/spec.ts b/packages/ast-spec/src/special/Program/spec.ts index 8d84824f563..e338dbf677e 100644 --- a/packages/ast-spec/src/special/Program/spec.ts +++ b/packages/ast-spec/src/special/Program/spec.ts @@ -8,6 +8,6 @@ export interface Program extends NodeOrTokenData { type: AST_NODE_TYPES.Program; body: ProgramStatement[]; sourceType: 'module' | 'script'; - comments?: Comment[]; - tokens?: Token[]; + comments: Comment[] | undefined; + tokens: Token[] | undefined; } diff --git a/packages/ast-spec/src/special/TSTypeParameter/spec.ts b/packages/ast-spec/src/special/TSTypeParameter/spec.ts index 7487e4f5617..94430d980e8 100644 --- a/packages/ast-spec/src/special/TSTypeParameter/spec.ts +++ b/packages/ast-spec/src/special/TSTypeParameter/spec.ts @@ -6,8 +6,8 @@ import type { TypeNode } from '../../unions/TypeNode'; export interface TSTypeParameter extends BaseNode { type: AST_NODE_TYPES.TSTypeParameter; name: Identifier; - constraint?: TypeNode; - default?: TypeNode; + constraint: TypeNode | undefined; + default: TypeNode | undefined; in: boolean; out: boolean; } diff --git a/packages/ast-spec/src/statement/ExpressionStatement/spec.ts b/packages/ast-spec/src/statement/ExpressionStatement/spec.ts index f5fd336a960..9ae5cd1f31d 100644 --- a/packages/ast-spec/src/statement/ExpressionStatement/spec.ts +++ b/packages/ast-spec/src/statement/ExpressionStatement/spec.ts @@ -5,5 +5,5 @@ import type { Expression } from '../../unions/Expression'; export interface ExpressionStatement extends BaseNode { type: AST_NODE_TYPES.ExpressionStatement; expression: Expression; - directive?: string; + directive: string | undefined; } diff --git a/packages/ast-spec/src/type/TSMappedType/spec.ts b/packages/ast-spec/src/type/TSMappedType/spec.ts index db5abd4063a..8b81c4f77bb 100644 --- a/packages/ast-spec/src/type/TSMappedType/spec.ts +++ b/packages/ast-spec/src/type/TSMappedType/spec.ts @@ -6,8 +6,8 @@ import type { TypeNode } from '../../unions/TypeNode'; export interface TSMappedType extends BaseNode { type: AST_NODE_TYPES.TSMappedType; typeParameter: TSTypeParameter; - readonly?: boolean | '-' | '+'; - optional?: boolean | '-' | '+'; - typeAnnotation?: TypeNode; + readonly: boolean | '-' | '+' | undefined; + optional: boolean | '-' | '+' | undefined; + typeAnnotation: TypeNode | undefined; nameType: TypeNode | null; } diff --git a/packages/ast-spec/src/type/TSTypeOperator/spec.ts b/packages/ast-spec/src/type/TSTypeOperator/spec.ts index c83b8721eed..f6d530c084f 100644 --- a/packages/ast-spec/src/type/TSTypeOperator/spec.ts +++ b/packages/ast-spec/src/type/TSTypeOperator/spec.ts @@ -5,5 +5,5 @@ import type { TypeNode } from '../../unions/TypeNode'; export interface TSTypeOperator extends BaseNode { type: AST_NODE_TYPES.TSTypeOperator; operator: 'keyof' | 'readonly' | 'unique'; - typeAnnotation?: TypeNode; + typeAnnotation: TypeNode | undefined; } diff --git a/packages/ast-spec/src/type/TSTypeQuery/spec.ts b/packages/ast-spec/src/type/TSTypeQuery/spec.ts index bc9cb7e68d0..c0eaff4cf57 100644 --- a/packages/ast-spec/src/type/TSTypeQuery/spec.ts +++ b/packages/ast-spec/src/type/TSTypeQuery/spec.ts @@ -7,5 +7,5 @@ import type { TSImportType } from '../TSImportType/spec'; export interface TSTypeQuery extends BaseNode { type: AST_NODE_TYPES.TSTypeQuery; exprName: EntityName | TSImportType; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; } diff --git a/packages/ast-spec/src/type/TSTypeReference/spec.ts b/packages/ast-spec/src/type/TSTypeReference/spec.ts index 9d88fe7f6b4..8ea167c3211 100644 --- a/packages/ast-spec/src/type/TSTypeReference/spec.ts +++ b/packages/ast-spec/src/type/TSTypeReference/spec.ts @@ -6,5 +6,5 @@ import type { EntityName } from '../../unions/EntityName'; export interface TSTypeReference extends BaseNode { type: AST_NODE_TYPES.TSTypeReference; typeName: EntityName; - typeParameters?: TSTypeParameterInstantiation; + typeParameters: TSTypeParameterInstantiation | undefined; } diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index bcb32f9d4e8..0c97f5da058 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -17,6 +17,8 @@ Set { "declaration/ClassDeclaration/fixtures/with-member-one/fixture.ts", "declaration/ExportAllDeclaration/fixtures/assertion/fixture.ts", "declaration/ExportAllDeclaration/fixtures/named/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/anonymous-class/fixture.ts", + "declaration/ExportDefaultDeclaration/fixtures/anonymous-function/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/class-expression/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/class/fixture.ts", "declaration/ExportDefaultDeclaration/fixtures/function/fixture.ts", diff --git a/packages/eslint-plugin/src/rules/indent.ts b/packages/eslint-plugin/src/rules/indent.ts index da210ffb0e1..3ff64884213 100644 --- a/packages/eslint-plugin/src/rules/indent.ts +++ b/packages/eslint-plugin/src/rules/indent.ts @@ -163,9 +163,15 @@ export default util.createRule({ } else { return { type, - static: false, - readonly: false, + accessibility: undefined, declare: false, + decorators: [], + definite: false, + optional: false, + override: false, + readonly: false, + static: false, + typeAnnotation: undefined, ...base, } as TSESTree.PropertyDefinition; } @@ -354,6 +360,12 @@ export default util.createRule({ id: null, // TODO: This is invalid, there can be more than one extends in interface superClass: node.extends![0].expression as any, + abstract: false, + declare: false, + decorators: [], + implements: [], + superTypeParameters: undefined, + typeParameters: undefined, // location data parent: node.parent, @@ -461,6 +473,7 @@ export default util.createRule({ selfClosing: false, name: name as any, attributes: attributes as any, + typeParameters: undefined, // location data parent: node.parent, diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts index 4e4547e2ffb..e5a9694dd31 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts @@ -3,9 +3,9 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils'; import * as util from '../util'; -type MakeRequired = Omit & - Required>; - +type MakeRequired = Omit & { + [K in Key]-?: NonNullable; +}; type TypeParameterWithConstraint = MakeRequired< TSESTree.TSTypeParameter, 'constraint' diff --git a/packages/parser/tests/lib/__snapshots__/services.ts.snap b/packages/parser/tests/lib/__snapshots__/services.ts.snap index 3cab382777c..e9e804b60eb 100644 --- a/packages/parser/tests/lib/__snapshots__/services.ts.snap +++ b/packages/parser/tests/lib/__snapshots__/services.ts.snap @@ -8,6 +8,7 @@ exports[`services fixtures/isolated-file.src 1`] = ` { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, diff --git a/packages/scope-manager/src/referencer/ClassVisitor.ts b/packages/scope-manager/src/referencer/ClassVisitor.ts index 5f84e37404f..cb4e1b32459 100644 --- a/packages/scope-manager/src/referencer/ClassVisitor.ts +++ b/packages/scope-manager/src/referencer/ClassVisitor.ts @@ -103,12 +103,18 @@ class ClassVisitor extends Visitor { node: TSESTree.Parameter, withDecorators: boolean, ): void { - if ('typeAnnotation' in node) { - this.visitMetadataType(node.typeAnnotation, withDecorators); - } else if (node.type === AST_NODE_TYPES.AssignmentPattern) { - this.visitMetadataType(node.left.typeAnnotation, withDecorators); - } else if (node.type === AST_NODE_TYPES.TSParameterProperty) { - this.visitFunctionParameterTypeAnnotation(node.parameter, withDecorators); + switch (node.type) { + case AST_NODE_TYPES.AssignmentPattern: + this.visitMetadataType(node.left.typeAnnotation, withDecorators); + break; + case AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation( + node.parameter, + withDecorators, + ); + break; + default: + this.visitMetadataType(node.typeAnnotation, withDecorators); } } diff --git a/packages/scope-manager/src/referencer/Referencer.ts b/packages/scope-manager/src/referencer/Referencer.ts index 420d4d4aa89..825ea060a49 100644 --- a/packages/scope-manager/src/referencer/Referencer.ts +++ b/packages/scope-manager/src/referencer/Referencer.ts @@ -211,12 +211,16 @@ class Referencer extends Visitor { protected visitFunctionParameterTypeAnnotation( node: TSESTree.Parameter, ): void { - if ('typeAnnotation' in node) { - this.visitType(node.typeAnnotation); - } else if (node.type === AST_NODE_TYPES.AssignmentPattern) { - this.visitType(node.left.typeAnnotation); - } else if (node.type === AST_NODE_TYPES.TSParameterProperty) { - this.visitFunctionParameterTypeAnnotation(node.parameter); + switch (node.type) { + case AST_NODE_TYPES.AssignmentPattern: + this.visitType(node.left.typeAnnotation); + break; + case AST_NODE_TYPES.TSParameterProperty: + this.visitFunctionParameterTypeAnnotation(node.parameter); + break; + default: + this.visitType(node.typeAnnotation); + break; } } protected visitFunction( diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot index f535f8e61be..2f596b026c4 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot @@ -105,7 +105,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot index 74707c85f35..b8217ddd1b9 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot @@ -57,7 +57,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, @@ -65,7 +65,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot index 963402a9036..7d2367151cf 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-inner.ts.shot @@ -57,7 +57,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot index 5db83db9116..e7a3a41761c 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/nested-class-outer.ts.shot @@ -65,7 +65,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot index ac1f8b41de5..0170199de6d 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot @@ -89,7 +89,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot index 348c6009163..026f55225cc 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot @@ -57,7 +57,7 @@ ScopeManager { identifier: Identifier<"a">, isRead: true, isTypeReference: true, - isValueReference: false, + isValueReference: true, isWrite: false, resolved: Variable$5, }, diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index f066637cbb5..49e733fec4e 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -156,7 +156,6 @@ export class Converter { | ts.ModuleDeclaration, result: T, ): TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration | T { - // check for exports const modifiers = getModifiers(node); if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { /** @@ -647,10 +646,13 @@ export class Converter { return 'method'; } })(), + accessibility: undefined, export: false, optional: !!isOptional(node), readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + returnType: undefined, static: false, + typeParameters: undefined, }); if (node.type) { @@ -745,8 +747,10 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.Program, body: this.convertBodyExpressions(node.statements, node), - sourceType: node.externalModuleIndicator ? 'module' : 'script', + comments: undefined, range: [node.getStart(this.ast), node.endOfFileToken.end], + sourceType: node.externalModuleIndicator ? 'module' : 'script', + tokens: undefined, }); } @@ -767,8 +771,10 @@ export class Converter { } return this.createNode(node, { type: AST_NODE_TYPES.Identifier, - optional: false, + decorators: [], name: node.text, + optional: false, + typeAnnotation: undefined, }); } @@ -932,6 +938,9 @@ export class Converter { isDeclare || !node.body ? AST_NODE_TYPES.TSDeclareFunction : AST_NODE_TYPES.FunctionDeclaration, + declare: false, + returnType: undefined, + typeParameters: undefined, id: this.convertChild(node.name), generator: !!node.asteriskToken, expression: false, @@ -957,7 +966,6 @@ export class Converter { result.declare = true; } - // check for exports return this.fixExports(node, result); } @@ -1002,7 +1010,6 @@ export class Converter { result.declare = true; } - // check for exports return this.fixExports(node, result); } @@ -1020,6 +1027,7 @@ export class Converter { case SyntaxKind.ExpressionStatement: return this.createNode(node, { type: AST_NODE_TYPES.ExpressionStatement, + directive: undefined, expression: this.convertChild(node.expression), }); @@ -1033,8 +1041,10 @@ export class Converter { if (this.allowPattern) { return this.createNode(node, { type: AST_NODE_TYPES.ArrayPattern, - optional: false, + decorators: [], elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, }); } else { return this.createNode(node, { @@ -1049,8 +1059,10 @@ export class Converter { if (this.allowPattern) { return this.createNode(node, { type: AST_NODE_TYPES.ObjectPattern, + decorators: [], optional: false, properties: node.properties.map(el => this.convertPattern(el)), + typeAnnotation: undefined, }); } else { return this.createNode(node, { @@ -1084,9 +1096,11 @@ export class Converter { key: this.convertChild(node.name), value: this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, + decorators: [], left: this.convertPattern(node.name), optional: false, right: this.convertChild(node.objectAssignmentInitializer), + typeAnnotation: undefined, }), computed: false, optional: false, @@ -1130,6 +1144,7 @@ export class Converter { return AST_NODE_TYPES.PropertyDefinition; })(); + const key = this.convertChild(node.name); const result = this.createNode< | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition @@ -1137,42 +1152,27 @@ export class Converter { | TSESTree.AccessorProperty >(node, { type, - key: this.convertChild(node.name), - value: isAbstract ? null : this.convertChild(node.initializer), + accessibility: getTSNodeAccessibility(node), computed: isComputedProperty(node.name), - static: hasModifier(SyntaxKind.StaticKeyword, node), - readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node) || undefined, declare: hasModifier(SyntaxKind.DeclareKeyword, node), + decorators: + getDecorators(node)?.map(el => this.convertChild(el)) ?? [], + definite: !!node.exclamationToken, + key, + optional: + (node.name.kind === SyntaxKind.Identifier || + node.name.kind === SyntaxKind.ComputedPropertyName || + node.name.kind === SyntaxKind.PrivateIdentifier || + key.type === AST_NODE_TYPES.Literal) && + !!node.questionToken, override: hasModifier(SyntaxKind.OverrideKeyword, node), + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), + typeAnnotation: + node.type && this.convertTypeAnnotation(node.type, node), + value: isAbstract ? null : this.convertChild(node.initializer), }); - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - } - - const decorators = getDecorators(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - - const accessibility = getTSNodeAccessibility(node); - if (accessibility) { - result.accessibility = accessibility; - } - - if ( - (node.name.kind === SyntaxKind.Identifier || - node.name.kind === SyntaxKind.ComputedPropertyName || - node.name.kind === SyntaxKind.PrivateIdentifier) && - node.questionToken - ) { - result.optional = true; - } - - if (node.exclamationToken) { - result.definite = true; - } - if (result.key.type === AST_NODE_TYPES.Literal && node.questionToken) { result.optional = true; } @@ -1201,20 +1201,18 @@ export class Converter { expression: false, // ESTreeNode as ESTreeNode here async: hasModifier(SyntaxKind.AsyncKeyword, node), body: this.convertChild(node.body), + declare: false, range: [node.parameters.pos - 1, node.end], params: [], - }); - - if (node.type) { - method.returnType = this.convertTypeAnnotation(node.type, node); - } - - // Process typeParameters - if (node.typeParameters) { - method.typeParameters = + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); + ), + }); + + if (method.typeParameters) { this.fixParentLocation(method, method.typeParameters.range); } @@ -1231,7 +1229,7 @@ export class Converter { key: this.convertChild(node.name), value: method, computed: isComputedProperty(node.name), - optional: false, + optional: !!node.questionToken, method: node.kind === SyntaxKind.MethodDeclaration, shorthand: false, kind: 'init', @@ -1258,27 +1256,18 @@ export class Converter { TSESTree.TSAbstractMethodDefinition | TSESTree.MethodDefinition >(node, { type: methodDefinitionType, - key: this.convertChild(node.name), - value: method, + accessibility: getTSNodeAccessibility(node), computed: isComputedProperty(node.name), - static: hasModifier(SyntaxKind.StaticKeyword, node), + decorators: + getDecorators(node)?.map(el => this.convertChild(el)) ?? [], + key: this.convertChild(node.name), kind: 'method', + optional: !!node.questionToken, override: hasModifier(SyntaxKind.OverrideKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), + typeParameters: undefined, + value: method, }); - - const decorators = getDecorators(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - - const accessibility = getTSNodeAccessibility(node); - if (accessibility) { - result.accessibility = accessibility; - } - } - - if (node.questionToken) { - result.optional = true; } if (node.kind === SyntaxKind.GetAccessor) { @@ -1309,83 +1298,72 @@ export class Converter { type: !node.body ? AST_NODE_TYPES.TSEmptyBodyFunctionExpression : AST_NODE_TYPES.FunctionExpression, - id: null, - params: this.convertParameters(node.parameters), - generator: false, - expression: false, // is not present in ESTreeNode async: false, body: this.convertChild(node.body), + declare: false, + expression: false, + generator: false, + id: null, + params: this.convertParameters(node.parameters), range: [node.parameters.pos - 1, node.end], - }); - - // Process typeParameters - if (node.typeParameters) { - constructor.typeParameters = + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - this.fixParentLocation(constructor, constructor.typeParameters.range); - } + ), + }); - // Process returnType - if (node.type) { - constructor.returnType = this.convertTypeAnnotation(node.type, node); + if (constructor.typeParameters) { + this.fixParentLocation(constructor, constructor.typeParameters.range); } const constructorKey = this.createNode(node, { type: AST_NODE_TYPES.Identifier, + decorators: [], name: 'constructor', optional: false, range: [constructorToken.getStart(this.ast), constructorToken.end], + typeAnnotation: undefined, }); const isStatic = hasModifier(SyntaxKind.StaticKeyword, node); - const result = this.createNode< + return this.createNode< TSESTree.TSAbstractMethodDefinition | TSESTree.MethodDefinition >(node, { type: hasModifier(SyntaxKind.AbstractKeyword, node) ? AST_NODE_TYPES.TSAbstractMethodDefinition : AST_NODE_TYPES.MethodDefinition, + accessibility: getTSNodeAccessibility(node), key: constructorKey, - value: constructor, computed: false, - static: isStatic, + decorators: [], kind: isStatic ? 'method' : 'constructor', + optional: false, override: false, + static: isStatic, + typeParameters: undefined, + value: constructor, }); - - const accessibility = getTSNodeAccessibility(node); - if (accessibility) { - result.accessibility = accessibility; - } - - return result; } case SyntaxKind.FunctionExpression: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.FunctionExpression, - id: this.convertChild(node.name), - generator: !!node.asteriskToken, - params: this.convertParameters(node.parameters), - body: this.convertChild(node.body), async: hasModifier(SyntaxKind.AsyncKeyword, node), + declare: false, + body: this.convertChild(node.body), expression: false, - }); - - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = + generator: !!node.asteriskToken, + id: this.convertChild(node.name), + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - return result; + ), + }); } case SyntaxKind.SuperKeyword: @@ -1395,9 +1373,11 @@ export class Converter { case SyntaxKind.ArrayBindingPattern: return this.createNode(node, { - optional: false, type: AST_NODE_TYPES.ArrayPattern, + decorators: [], elements: node.elements.map(el => this.convertPattern(el)), + optional: false, + typeAnnotation: undefined, }); // occurs with missing array elements like [,] @@ -1407,8 +1387,10 @@ export class Converter { case SyntaxKind.ObjectBindingPattern: return this.createNode(node, { type: AST_NODE_TYPES.ObjectPattern, + decorators: [], optional: false, properties: node.elements.map(el => this.convertPattern(el)), + typeAnnotation: undefined, }); case SyntaxKind.BindingElement: { @@ -1418,15 +1400,20 @@ export class Converter { if (node.initializer) { return this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, + decorators: [], left: arrayItem, optional: false, right: this.convertChild(node.initializer), + typeAnnotation: undefined, }); } else if (node.dotDotDotToken) { return this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: arrayItem, + decorators: [], optional: false, + typeAnnotation: undefined, + value: undefined, }); } else { return arrayItem; @@ -1437,7 +1424,10 @@ export class Converter { result = this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertChild(node.propertyName ?? node.name), + decorators: [], optional: false, + typeAnnotation: undefined, + value: undefined, }); } else { result = this.createNode(node, { @@ -1458,10 +1448,12 @@ export class Converter { if (node.initializer) { result.value = this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, + decorators: [], left: this.convertChild(node.name), optional: false, - right: this.convertChild(node.initializer), range: [node.name.getStart(this.ast), node.initializer.end], + right: this.convertChild(node.initializer), + typeAnnotation: undefined, }); } return result; @@ -1469,29 +1461,21 @@ export class Converter { } case SyntaxKind.ArrowFunction: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.ArrowFunctionExpression, + async: hasModifier(SyntaxKind.AsyncKeyword, node), + body: this.convertChild(node.body), + expression: node.body.kind !== SyntaxKind.Block, generator: false, id: null, params: this.convertParameters(node.parameters), - body: this.convertChild(node.body), - async: hasModifier(SyntaxKind.AsyncKeyword, node), - expression: node.body.kind !== SyntaxKind.Block, - }); - - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - return result; + ), + }); } case SyntaxKind.YieldExpression: @@ -1549,12 +1533,9 @@ export class Converter { case SyntaxKind.TaggedTemplateExpression: return this.createNode(node, { type: AST_NODE_TYPES.TaggedTemplateExpression, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ) - : undefined, + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), tag: this.convertChild(node.tag), quasi: this.convertChild(node.template), }); @@ -1584,7 +1565,10 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertPattern(node.expression), + decorators: [], optional: false, + typeAnnotation: undefined, + value: undefined, }); } else { return this.createNode(node, { @@ -1602,15 +1586,20 @@ export class Converter { parameter = result = this.createNode(node, { type: AST_NODE_TYPES.RestElement, argument: this.convertChild(node.name), + decorators: [], optional: false, + typeAnnotation: undefined, + value: undefined, }); } else if (node.initializer) { parameter = this.convertChild(node.name) as TSESTree.BindingName; result = this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, + decorators: [], left: parameter, optional: false, right: this.convertChild(node.initializer), + typeAnnotation: undefined, }); const modifiers = getModifiers(node); @@ -1647,11 +1636,12 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.TSParameterProperty, accessibility: getTSNodeAccessibility(node) ?? undefined, - readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), - static: hasModifier(SyntaxKind.StaticKeyword, node), + decorators: [], export: hasModifier(SyntaxKind.ExportKeyword, node), override: hasModifier(SyntaxKind.OverrideKeyword, node), parameter: result, + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), }); } return result; @@ -1671,6 +1661,14 @@ export class Converter { clause => clause.token === SyntaxKind.ExtendsKeyword, ); + if (superClass?.types && superClass.types.length > 1) { + throw createError( + this.ast, + superClass.types[1].pos, + 'Classes can only extend a single class.', + ); + } + const implementsClause = heritageClauses.find( clause => clause.token === SyntaxKind.ImplementsKeyword, ); @@ -1679,63 +1677,33 @@ export class Converter { TSESTree.ClassDeclaration | TSESTree.ClassExpression >(node, { type: classNodeType, - id: this.convertChild(node.name), + abstract: hasModifier(SyntaxKind.AbstractKeyword, node), body: this.createNode(node, { type: AST_NODE_TYPES.ClassBody, body: [], range: [node.members.pos - 1, node.end], }), + declare: hasModifier(SyntaxKind.DeclareKeyword, node), + decorators: + getDecorators(node)?.map(el => this.convertChild(el)) ?? [], + id: this.convertChild(node.name), + implements: + implementsClause?.types.map(el => this.convertChild(el)) ?? [], superClass: superClass?.types[0] ? this.convertChild(superClass.types[0].expression) : null, - }); - - if (superClass) { - if (superClass.types.length > 1) { - throw createError( - this.ast, - superClass.types[1].pos, - 'Classes can only extend a single class.', - ); - } - - if (superClass.types[0]?.typeArguments) { - result.superTypeParameters = - this.convertTypeArgumentsToTypeParameters( - superClass.types[0].typeArguments, - superClass.types[0], - ); - } - } - - if (node.typeParameters) { - result.typeParameters = + superTypeParameters: + superClass?.types[0]?.typeArguments && + this.convertTypeArgumentsToTypeParameters( + superClass.types[0].typeArguments, + superClass.types[0], + ), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - - if (implementsClause) { - result.implements = implementsClause.types.map(el => - this.convertChild(el), - ); - } - - /** - * TypeScript class declarations can be defined as "abstract" - */ - if (hasModifier(SyntaxKind.AbstractKeyword, node)) { - result.abstract = true; - } - - if (hasModifier(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - - const decorators = getDecorators(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } + ), + }); const filteredMembers = node.members.filter(isESTreeClassMember); @@ -1743,7 +1711,6 @@ export class Converter { result.body.body = filteredMembers.map(el => this.convertChild(el)); } - // check for exports return this.fixExports(node, result); } @@ -1964,9 +1931,11 @@ export class Converter { ) { return this.createNode(node, { type: AST_NODE_TYPES.AssignmentPattern, + decorators: [], left: this.convertPattern(node.left, node), optional: false, right: this.convertChild(node.right), + typeAnnotation: undefined, }); } return this.createNode< @@ -2045,34 +2014,26 @@ export class Converter { callee, arguments: args, optional: node.questionDotToken !== undefined, + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), }); - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ); - } - return this.convertChainExpression(result, node); } case SyntaxKind.NewExpression: { // NOTE - NewExpression cannot have an optional chain in it - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.NewExpression, callee: this.convertChild(node.expression), arguments: node.arguments ? node.arguments.map(el => this.convertChild(el)) : [], + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), }); - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ); - } - return result; } case SyntaxKind.ConditionalExpression: @@ -2091,8 +2052,10 @@ export class Converter { node.getFirstToken()! as ts.Token, { type: AST_NODE_TYPES.Identifier, + decorators: [], name: getTextForTokenKind(node.keywordToken), optional: false, + typeAnnotation: undefined, }, ), property: this.convertChild(node.name), @@ -2227,12 +2190,12 @@ export class Converter { */ openingElement: this.createNode(node, { type: AST_NODE_TYPES.JSXOpeningElement, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ) - : undefined, + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters( + node.typeArguments, + node, + ), selfClosing: true, name: this.convertJSXTagName(node.tagName, node), attributes: node.attributes.properties.map(el => @@ -2248,12 +2211,9 @@ export class Converter { case SyntaxKind.JsxOpeningElement: return this.createNode(node, { type: AST_NODE_TYPES.JSXOpeningElement, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ) - : undefined, + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), selfClosing: false, name: this.convertJSXTagName(node.tagName, node), attributes: node.attributes.properties.map(el => @@ -2339,12 +2299,9 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.TSTypeReference, typeName: this.convertType(node.typeName), - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ) - : undefined, + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), }); } @@ -2352,10 +2309,8 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.TSTypeParameter, name: this.convertType(node.name), - constraint: node.constraint - ? this.convertType(node.constraint) - : undefined, - default: node.default ? this.convertType(node.default) : undefined, + constraint: node.constraint && this.convertType(node.constraint), + default: node.default && this.convertType(node.default), in: hasModifier(SyntaxKind.InKeyword, node), out: hasModifier(SyntaxKind.OutKeyword, node), }); @@ -2435,32 +2390,20 @@ export class Converter { } case SyntaxKind.MappedType: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.TSMappedType, typeParameter: this.convertType(node.typeParameter), nameType: this.convertType(node.nameType) ?? null, + optional: + node.questionToken && + (node.questionToken.kind === SyntaxKind.QuestionToken || + getTextForTokenKind(node.questionToken.kind)), + readonly: + node.readonlyToken && + (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword || + getTextForTokenKind(node.readonlyToken.kind)), + typeAnnotation: node.type && this.convertType(node.type), }); - - if (node.readonlyToken) { - if (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword) { - result.readonly = true; - } else { - result.readonly = getTextForTokenKind(node.readonlyToken.kind); - } - } - - if (node.questionToken) { - if (node.questionToken.kind === SyntaxKind.QuestionToken) { - result.optional = true; - } else { - result.optional = getTextForTokenKind(node.questionToken.kind); - } - } - - if (node.type) { - result.typeAnnotation = this.convertType(node.type); - } - return result; } case SyntaxKind.ParenthesizedExpression: @@ -2469,24 +2412,16 @@ export class Converter { case SyntaxKind.TypeAliasDeclaration: { const result = this.createNode(node, { type: AST_NODE_TYPES.TSTypeAliasDeclaration, - declare: false, + declare: hasModifier(SyntaxKind.DeclareKeyword, node), id: this.convertChild(node.name), typeAnnotation: this.convertType(node.type), - }); - - if (hasModifier(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } + ), + }); - // check for exports return this.fixExports(node, result); } @@ -2495,14 +2430,14 @@ export class Converter { } case SyntaxKind.PropertySignature: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.TSPropertySignature, + accessibility: getTSNodeAccessibility(node), optional: isOptional(node), computed: isComputedProperty(node.name), key: this.convertChild(node.name), - typeAnnotation: node.type - ? this.convertTypeAnnotation(node.type, node) - : undefined, + typeAnnotation: + node.type && this.convertTypeAnnotation(node.type, node), initializer: this.convertChild( // eslint-disable-next-line deprecation/deprecation -- TODO breaking change remove this from the AST @@ -2512,62 +2447,32 @@ export class Converter { static: hasModifier(SyntaxKind.StaticKeyword, node), export: hasModifier(SyntaxKind.ExportKeyword, node), }); - - const accessibility = getTSNodeAccessibility(node); - if (accessibility) { - result.accessibility = accessibility; - } - - return result; } case SyntaxKind.IndexSignature: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.TSIndexSignature, - export: false, + accessibility: getTSNodeAccessibility(node), + export: hasModifier(SyntaxKind.ExportKeyword, node), parameters: node.parameters.map(el => this.convertChild(el)), - readonly: false, - static: false, + readonly: hasModifier(SyntaxKind.ReadonlyKeyword, node), + static: hasModifier(SyntaxKind.StaticKeyword, node), + typeAnnotation: + node.type && this.convertTypeAnnotation(node.type, node), }); - - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - } - - if (hasModifier(SyntaxKind.ReadonlyKeyword, node)) { - result.readonly = true; - } - - const accessibility = getTSNodeAccessibility(node); - if (accessibility) { - result.accessibility = accessibility; - } - - if (hasModifier(SyntaxKind.ExportKeyword, node)) { - result.export = true; - } - - if (hasModifier(SyntaxKind.StaticKeyword, node)) { - result.static = true; - } - return result; } case SyntaxKind.ConstructorType: { - const result = this.createNode(node, { + return this.createNode(node, { type: AST_NODE_TYPES.TSConstructorType, - params: this.convertParameters(node.parameters), abstract: hasModifier(SyntaxKind.AbstractKeyword, node), - }); - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - if (node.typeParameters) { - result.typeParameters = + params: this.convertParameters(node.parameters), + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - return result; + ), + }); } case SyntaxKind.FunctionType: @@ -2579,25 +2484,20 @@ export class Converter { : node.kind === SyntaxKind.CallSignature ? AST_NODE_TYPES.TSCallSignatureDeclaration : AST_NODE_TYPES.TSFunctionType; - const result = this.createNode< + return this.createNode< | TSESTree.TSFunctionType | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration >(node, { - type: type, + type, params: this.convertParameters(node.parameters), - }); - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - - if (node.typeParameters) { - result.typeParameters = + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - return result; + ), + }); } case SyntaxKind.ExpressionWithTypeArguments: { @@ -2608,22 +2508,17 @@ export class Converter { : parentKind === SyntaxKind.HeritageClause ? AST_NODE_TYPES.TSClassImplements : AST_NODE_TYPES.TSInstantiationExpression; - const result = this.createNode< + return this.createNode< | TSESTree.TSInterfaceHeritage | TSESTree.TSClassImplements | TSESTree.TSInstantiationExpression >(node, { type, expression: this.convertChild(node.expression), + typeParameters: + node.typeArguments && + this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), }); - - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters( - node.typeArguments, - node, - ); - } - return result; } case SyntaxKind.InterfaceDeclaration: { @@ -2635,39 +2530,25 @@ export class Converter { body: node.members.map(member => this.convertChild(member)), range: [node.members.pos - 1, node.end], }), - declare: false, + declare: hasModifier(SyntaxKind.DeclareKeyword, node), + extends: interfaceHeritageClauses + .filter( + heritageClause => + heritageClause.token === SyntaxKind.ExtendsKeyword, + ) + .flatMap(heritageClause => + heritageClause.types.map( + n => this.convertChild(n, node) as TSESTree.TSInterfaceHeritage, + ), + ), id: this.convertChild(node.name), - }); - - if (node.typeParameters) { - result.typeParameters = + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - - if (interfaceHeritageClauses.length > 0) { - const interfaceExtends: TSESTree.TSInterfaceHeritage[] = []; - - for (const heritageClause of interfaceHeritageClauses) { - if (heritageClause.token === SyntaxKind.ExtendsKeyword) { - for (const n of heritageClause.types) { - interfaceExtends.push( - this.convertChild(n, node) as TSESTree.TSInterfaceHeritage, - ); - } - } - } - - if (interfaceExtends.length > 0) { - result.extends = interfaceExtends; - } - } + ), + }); - if (hasModifier(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - // check for exports return this.fixExports(node, result); } @@ -2712,6 +2593,7 @@ export class Converter { return this.createNode(node, { type: AST_NODE_TYPES.TSTypeQuery, exprName: result, + typeParameters: undefined, }); } return result; @@ -2742,6 +2624,7 @@ export class Converter { const result = this.createNode(node, { type: AST_NODE_TYPES.TSEnumMember, computed: false, + initializer: undefined, id: this.convertChild(node.name), }); if (node.initializer) { diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index 929d63cfcdf..22d3772974a 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -275,10 +275,10 @@ export function getDeclarationKind( */ export function getTSNodeAccessibility( node: ts.Node, -): 'public' | 'protected' | 'private' | null { +): 'public' | 'protected' | 'private' | undefined { const modifiers = getModifiers(node); if (modifiers == null) { - return null; + return undefined; } for (const modifier of modifiers) { switch (modifier.kind) { @@ -292,7 +292,7 @@ export function getTSNodeAccessibility( break; } } - return null; + return undefined; } /** diff --git a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap index 67b705aea02..73fe50eeecb 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap @@ -61,9 +61,11 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` "setExternalModuleIndicator": [Function], "statements": [ { + "directive": undefined, "expression": { "arguments": [], "callee": { + "decorators": [], "loc": { "end": { "column": 7, @@ -81,6 +83,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": { "end": { @@ -126,6 +129,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` ], "type": "TSTypeReference", "typeName": { + "decorators": [], "loc": { "end": { "column": 9, @@ -143,6 +147,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -219,6 +224,7 @@ exports[`convert deeplyCopy should convert node correctly 1`] = ` "typeParameters": null, }, ], + "comments": undefined, "loc": { "end": { "column": 35, @@ -234,6 +240,7 @@ exports[`convert deeplyCopy should convert node correctly 1`] = ` 35, ], "sourceType": "script", + "tokens": undefined, "type": "Program", } `; @@ -243,6 +250,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = "decorators": [ { "expression": { + "decorators": [], "loc": { "end": { "column": 5, @@ -260,6 +268,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": { "end": { @@ -290,6 +299,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = }, "members": [], "name": { + "decorators": [], "loc": { "end": { "column": 15, @@ -307,6 +317,7 @@ exports[`convert deeplyCopy should convert node with decorators correctly 1`] = 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": [ 0, @@ -321,6 +332,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` { "arguments": [], "expression": { + "decorators": [], "loc": { "end": { "column": 7, @@ -338,6 +350,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": { "end": { @@ -383,6 +396,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` ], "type": "TSTypeReference", "typeName": { + "decorators": [], "loc": { "end": { "column": 9, @@ -400,6 +414,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -427,6 +442,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 }, "members": [], "name": { + "decorators": [], "loc": { "end": { "column": 9, @@ -444,6 +460,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": [ 0, @@ -477,6 +494,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 }, }, "name": { + "decorators": [], "loc": { "end": { "column": 11, @@ -494,6 +512,7 @@ exports[`convert deeplyCopy should convert node with type parameters correctly 1 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": [ diff --git a/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap index 48da3d24f5a..47f62887b5e 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/parse.test.ts.snap @@ -91,6 +91,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -108,6 +109,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -384,6 +386,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -401,6 +404,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -677,6 +681,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -694,6 +699,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -860,6 +866,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -877,6 +884,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .js file - witho 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -1039,6 +1047,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .json file - wit "ast": { "body": [ { + "directive": undefined, "expression": { "loc": { "end": { @@ -1263,6 +1272,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -1280,6 +1290,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -1556,6 +1567,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -1573,6 +1585,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -1849,6 +1862,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -1866,6 +1880,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -2032,6 +2047,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -2049,6 +2065,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .jsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -2215,6 +2232,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -2232,6 +2250,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -2398,6 +2417,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -2415,6 +2435,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .ts file - witho 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -2581,6 +2602,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -2598,6 +2620,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -2874,6 +2897,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -2891,6 +2915,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -3167,6 +3192,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -3184,6 +3210,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -3350,6 +3377,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -3367,6 +3395,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .tsx file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -3533,6 +3562,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -3550,6 +3580,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "children": [], @@ -3826,6 +3857,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -3843,6 +3875,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -4009,6 +4042,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -4026,6 +4060,7 @@ exports[`parseAndGenerateServices isolated parsing should parse .vue file - with 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": { "loc": { @@ -4191,6 +4226,7 @@ exports[`parseWithNodeMaps() general output should not contain loc 1`] = ` { "definite": false, "id": { + "decorators": [], "name": "foo", "optional": false, "range": [ @@ -4200,6 +4236,7 @@ exports[`parseWithNodeMaps() general output should not contain loc 1`] = ` "type": "Identifier", }, "init": { + "decorators": [], "name": "bar", "optional": false, "range": [ @@ -4241,6 +4278,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -4256,6 +4294,7 @@ exports[`parseWithNodeMaps() general output should not contain range 1`] = ` "type": "Identifier", }, "init": { + "decorators": [], "loc": { "end": { "column": 13, @@ -4321,6 +4360,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -4340,6 +4380,7 @@ exports[`parseWithNodeMaps() general output tokens, comments, locs, and ranges w "type": "Identifier", }, "init": { + "decorators": [], "loc": { "end": { "column": 13, diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap index b8c93cbc14e..7b04e4ba0eb 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/semanticInfo.test.ts.snap @@ -352,6 +352,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, }, "local": { + "decorators": [], "loc": { "end": { "column": 10, @@ -434,6 +435,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, }, "object": { + "decorators": [], "loc": { "end": { "column": 3, @@ -454,6 +456,7 @@ exports[`semanticInfo fixtures/import-file.src 1`] = ` }, "optional": false, "property": { + "decorators": [], "loc": { "end": { "column": 8, @@ -794,6 +797,7 @@ exports[`semanticInfo fixtures/isolated-file.src 1`] = ` { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 7, @@ -1152,6 +1156,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` { "definite": false, "id": { + "decorators": [], "loc": { "end": { "column": 12, @@ -1262,11 +1267,14 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` "type": "VariableDeclaration", }, { + "abstract": false, "body": { "body": [ { "computed": true, "declare": false, + "decorators": [], + "definite": false, "key": { "loc": { "end": { @@ -1296,11 +1304,13 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` "line": 4, }, }, + "optional": false, "override": false, "range": [ 39, 56, ], + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": { @@ -1356,7 +1366,10 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` ], "type": "ClassBody", }, + "declare": false, + "decorators": [], "id": { + "decorators": [], "loc": { "end": { "column": 9, @@ -1375,6 +1388,7 @@ exports[`semanticInfo fixtures/non-existent-estree-nodes.src 1`] = ` ], "type": "Identifier", }, + "implements": [], "loc": { "end": { "column": 1, diff --git a/packages/typescript-estree/tests/lib/parse.test.ts b/packages/typescript-estree/tests/lib/parse.test.ts index afa44a8c5f8..b0d7b59c0dc 100644 --- a/packages/typescript-estree/tests/lib/parse.test.ts +++ b/packages/typescript-estree/tests/lib/parse.test.ts @@ -85,6 +85,7 @@ describe('parseWithNodeMaps()', () => { { "body": [ { + "directive": undefined, "expression": { "raw": "1", "type": "Literal", @@ -93,7 +94,9 @@ describe('parseWithNodeMaps()', () => { "type": "ExpressionStatement", }, ], + "comments": undefined, "sourceType": "script", + "tokens": undefined, "type": "Program", } `); diff --git a/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot index 8bf141db9b5..79f98905243 100644 --- a/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/block-trailing-comment.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +28,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 9, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot index 902a51ade42..e8d9e1190da 100644 --- a/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/comment-within-condition.src.js.shot @@ -38,6 +38,7 @@ Object { 30, ], "test": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -55,6 +56,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "IfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot index 54b6862d58b..f53fbf24d7b 100644 --- a/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/export-default-anonymous-class.src.js.shot @@ -5,11 +5,15 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -27,6 +31,7 @@ Object { 110, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -39,6 +44,7 @@ Object { "line": 8, }, }, + "optional": false, "override": false, "range": Array [ 103, @@ -46,6 +52,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -66,6 +73,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -84,7 +92,9 @@ Object { 110, 119, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -104,7 +114,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -120,7 +133,9 @@ Object { 121, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot index bd39f49c659..89327f903b6 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsdoc-comment.src.js.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -26,6 +27,7 @@ Object { 133, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,9 +62,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -80,6 +84,7 @@ Object { 111, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +98,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -110,13 +116,16 @@ Object { 115, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 99, 136, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot index 5044e2bb4ca..0dd1ca45457 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-attr-and-text-with-url.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot index 5c09498a7fb..76bf409f37b 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-block-comment.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -250,7 +252,9 @@ Object { 13, 97, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot index b346fd25fe2..1976fe78dcb 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-jsx.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -173,7 +175,9 @@ Object { 13, 69, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot index 82a9d84d183..72fdcdbea63 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-comment-after-self-closing-jsx.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -139,7 +141,9 @@ Object { 13, 65, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot index a6ff138ade9..ea6c181c416 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-generic-with-comment-in-tag.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot index a7d35f81362..9cc61ef5262 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comment-after-prop.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -265,7 +267,9 @@ Object { 13, 125, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot index 144a2952f36..7f900cacc43 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-tag-comments.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -195,7 +197,9 @@ Object { 13, 127, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot index f1d9e508209..39839405cec 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-multiline-non-comment.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -201,7 +203,9 @@ Object { 13, 93, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot index 2dd1ea8def0..cf4fda8c7c8 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-text-with-url.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -25,6 +26,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ @@ -177,6 +179,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -194,6 +197,7 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ @@ -307,6 +311,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -324,6 +329,7 @@ Object { 98, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ @@ -533,6 +539,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -550,6 +557,7 @@ Object { 151, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ @@ -793,6 +801,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -810,6 +819,7 @@ Object { 210, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot index 76a21d8a159..5259bfe57ae 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-with-greather-than.src.js.shot @@ -8,6 +8,7 @@ Object { "consequent": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -68,6 +69,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -85,6 +87,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -102,6 +105,7 @@ Object { 37, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -124,6 +128,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -141,6 +146,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot index c4fa098b26d..450afc1e806 100644 --- a/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/jsx-with-operators.src.js.shot @@ -8,6 +8,7 @@ Object { "consequent": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -68,6 +69,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -85,6 +87,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -102,6 +105,7 @@ Object { 37, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -124,6 +128,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -141,6 +146,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "children": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot index 21f581e9fd6..5966397a09f 100644 --- a/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/mix-line-and-block-comments.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot index ed44672c5a9..140681a1d94 100644 --- a/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/no-comment-regex.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -25,6 +26,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot index d333bea02d3..5f56111360c 100644 --- a/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/no-comment-template.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,10 +26,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -46,6 +49,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot index 7c8f998373c..4bc091f11c9 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-call-comments.src.js.shot @@ -8,9 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -28,6 +30,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -45,6 +48,7 @@ Object { 41, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -79,9 +83,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -99,6 +105,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,7 +122,9 @@ Object { 0, 60, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot index 276a15e3f9a..b4a4fd0d2eb 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-debugger-comments.src.js.shot @@ -41,9 +41,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -61,6 +63,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,7 +80,9 @@ Object { 0, 63, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot index 556a6a89e41..2b489829d21 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-return-comments.src.js.shot @@ -42,9 +42,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -62,6 +64,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,7 +81,9 @@ Object { 0, 61, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot index 26867fb4034..4c7ece7aa12 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-throw-comments.src.js.shot @@ -60,9 +60,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -80,6 +82,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -96,7 +99,9 @@ Object { 0, 63, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot index ece61258236..37f5b7aa1f8 100644 --- a/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/surrounding-while-loop-comments.src.js.shot @@ -66,6 +66,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 65, @@ -83,6 +84,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -137,9 +139,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -157,6 +161,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -173,7 +178,9 @@ Object { 0, 68, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot index 1cd184c016a..18abdc0cf22 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment-in-function.src.js.shot @@ -49,9 +49,11 @@ Object { Object { "consequent": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -69,6 +71,7 @@ Object { 130, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -86,6 +89,7 @@ Object { 132, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, ], "discriminant": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -158,6 +163,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -192,9 +198,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -212,6 +220,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -225,6 +234,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -242,13 +252,16 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 141, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot index 234b30845ce..b24e17d0447 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-fallthrough-comment.src.js.shot @@ -45,9 +45,11 @@ Object { Object { "consequent": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -65,6 +67,7 @@ Object { 86, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -82,6 +85,7 @@ Object { 88, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -137,6 +141,7 @@ Object { }, ], "discriminant": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -154,6 +159,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot index 15a8381e03c..87d736c4f0e 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-function.src.js.shot @@ -123,6 +123,7 @@ Object { }, ], "discriminant": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -140,6 +141,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -174,9 +176,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -194,6 +198,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -207,6 +212,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -224,13 +230,16 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 133, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot index 8ad3dc6bde7..9614231c22c 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment-in-nested-functions.src.js.shot @@ -4,6 +4,7 @@ exports[`comments switch-no-default-comment-in-nested-functions.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -18,6 +19,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -35,9 +37,11 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -55,6 +59,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -117,6 +122,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -134,9 +140,11 @@ Object { 176, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 50, @@ -154,6 +162,7 @@ Object { 188, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 172, @@ -188,6 +197,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -205,9 +215,11 @@ Object { 193, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 67, @@ -225,6 +237,7 @@ Object { 205, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 189, @@ -234,6 +247,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 74, @@ -251,6 +265,7 @@ Object { 212, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 189, @@ -302,6 +317,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -319,6 +335,7 @@ Object { 171, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -336,6 +353,7 @@ Object { 218, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -403,6 +421,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -420,9 +439,11 @@ Object { 90, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -440,6 +461,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 86, @@ -516,9 +538,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -536,6 +560,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -549,6 +574,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -566,13 +592,16 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 42, 283, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "loc": Object { @@ -591,6 +620,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -606,6 +636,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -623,13 +654,16 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 286, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot index 86fda8c2588..53613d3d8d9 100644 --- a/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/switch-no-default-comment.src.js.shot @@ -63,6 +63,7 @@ Object { }, ], "discriminant": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -80,6 +81,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot b/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot index ec9870a5145..7239d1f6e53 100644 --- a/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/comments/template-string-block.src.js.shot @@ -4,9 +4,11 @@ exports[`comments template-string-block.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -24,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -107,6 +110,7 @@ Object { Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot b/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot index 12975dd90fb..f3145c864a8 100644 --- a/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/comments/type-assertion-regression-test.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,9 +26,11 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -45,6 +48,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,6 +82,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -95,6 +100,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot index ad615328671..554c83a56e0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literal-in-lhs.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrayLiteral array-literal-in-lhs.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -39,6 +40,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -56,6 +58,7 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,9 +76,11 @@ Object { 6, ], "type": "CallExpression", + "typeParameters": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -93,6 +98,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -116,6 +122,7 @@ Object { 14, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -133,6 +140,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literals-in-binary-expr.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literals-in-binary-expr.src.js.shot index 989d13f56f2..d88642ceb62 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literals-in-binary-expr.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrayLiteral/array-literals-in-binary-expr.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrayLiteral array-literals-in-binary-expr.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "elements": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot index 08811fc4df5..998c55131cc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param-with-params.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions as-param-with-params.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -41,6 +42,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -58,8 +60,10 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -77,16 +81,20 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 4, 16, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -104,6 +112,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -121,6 +130,7 @@ Object { 17, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot index 7970968211e..a56eab70461 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/as-param.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions as-param.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -44,10 +45,13 @@ Object { 4, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -65,6 +69,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -82,6 +87,7 @@ Object { 13, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot index 5de5105992f..2b28216e207 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic-in-binary-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions basic-in-binary-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "async": false, @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,13 +59,16 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 1, 10, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -118,6 +123,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "left": Object { "async": false, @@ -154,6 +160,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -171,13 +178,16 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 19, 28, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic.src.js.shot index 5cf67b877aa..9fd9ec3be16 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/basic.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions basic.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -43,7 +44,9 @@ Object { 0, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot index df0c1d77821..f2188951eca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body-not-object.src.js.shot @@ -4,12 +4,14 @@ exports[`javascript arrowFunctions block-body-not-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { "body": Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -46,6 +48,7 @@ Object { "type": "ExpressionStatement", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -63,6 +66,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -112,6 +116,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -129,13 +134,16 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 18, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot index aeeb8d06c3a..34082fc3d30 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/block-body.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript arrowFunctions block-body.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -76,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -93,13 +96,16 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot index 74ab6234b72..fa7ac3476f0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-dup-params.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions error-dup-params.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,8 +59,10 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -76,13 +80,16 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot index 5b6688db354..442810635e0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-default-param-eval.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,7 +78,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -95,6 +98,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -131,13 +135,16 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 31, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot index 2d234eb9d68..c49d8c299ba 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-dup-params.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -94,8 +96,10 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -113,13 +117,16 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 26, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot index 93de4e3b39f..ec2906450b0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval-return.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -94,13 +96,16 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 26, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot index 939bf378fe4..f268b518cad 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-eval.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions error-strict-eval.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -46,6 +47,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -113,6 +115,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -130,13 +133,16 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 30, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot index 1731175b5ba..ece03a5396a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-octal.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -94,13 +96,16 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 23, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot index 7773536d09a..159a3d7feed 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-arguments.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -94,8 +96,10 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -113,13 +117,16 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 34, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot index 7aec679ce7c..07d22363882 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-eval.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -94,8 +96,10 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -113,13 +117,16 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 29, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot index d55a3caf26d..b772330ff8c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-names.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -94,8 +96,10 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -113,13 +117,16 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 29, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot index ea760082334..94626ddb831 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-arguments.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -94,13 +96,16 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 29, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot index 4b67c9a38b2..31062099d02 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-strict-param-no-paren-eval.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -77,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -94,13 +96,16 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 14, 24, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot index 4f673a0c0d0..e3aefbf0a54 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-two-lines.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -65,7 +67,9 @@ Object { 8, 16, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot index 988af9c2cff..5c8f0d5dbf9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/expression.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript arrowFunctions expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -24,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,13 +61,16 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 1, 7, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot index 1800b33dea1..b519469a410 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/iife.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions iife.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -21,6 +22,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -38,6 +40,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -100,6 +103,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -117,13 +121,16 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 23, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot index bb7c53e8601..6a4970cd86d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/multiple-params.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions multiple-params.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,8 +59,10 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -76,13 +80,16 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 16, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot index a0c99317fd4..ca557bc8091 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/no-auto-return.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript arrowFunctions no-auto-return.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -76,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -93,8 +96,10 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -112,13 +117,16 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 17, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot index e9c09830d84..6c2ed960a1a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-arguments.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions not-strict-arguments.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -57,13 +59,16 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 15, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot index bf1443e8442..5212878a716 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval-params.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions not-strict-eval-params.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -57,8 +59,10 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -76,13 +80,16 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 15, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot index fe784fcef87..1e3c66af393 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-eval.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions not-strict-eval.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -57,13 +59,16 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 10, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot index 5dbcf55529f..3a7aef2a4ca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/not-strict-octal.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions not-strict-octal.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,13 +59,16 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 10, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot index 0915caa72da..013339c5ed1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-arrow-function.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions return-arrow-function.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -42,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -59,13 +61,16 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 5, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "expression": true, "generator": false, @@ -82,6 +87,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -99,13 +105,16 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 12, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot index 60869d9e554..6a0e5199bed 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/return-sequence.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions return-sequence.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -11,6 +12,7 @@ Object { "body": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -28,8 +30,10 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -47,8 +51,10 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -66,6 +72,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -99,6 +106,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -116,8 +124,10 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -135,13 +145,16 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 8, 27, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "expression": true, "generator": false, @@ -158,6 +171,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -175,13 +189,16 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 28, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot index 76cc20d81dc..1ca178a95e6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-parens.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions single-param-parens.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -57,13 +59,16 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 13, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot index 9dc76cb8f70..b91941a024a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param-return-identifier.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript arrowFunctions single-param-return-identifier.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -24,6 +26,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -57,13 +61,16 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 14, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot index 7e1f9811055..787c7e574f8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/arrowFunctions/single-param.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript arrowFunctions single-param.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -40,6 +41,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -57,13 +59,16 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 11, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot index 972377f592a..24c3a2164a6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/and-operator-array-object.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -266,6 +268,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -283,6 +286,7 @@ Object { 49, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -524,6 +528,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -541,6 +546,7 @@ Object { 93, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -636,6 +642,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -653,6 +660,7 @@ Object { 111, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot index 448e165aeaf..ea33bcb2b13 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/delete-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript basics delete-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { "computed": false, @@ -18,6 +19,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -35,9 +37,11 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -55,6 +59,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot index 9959191df58..9ca5eda169a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/do-while-statements.src.js.shot @@ -61,6 +61,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -78,6 +79,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -137,8 +139,10 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -156,6 +160,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -242,6 +247,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -259,6 +265,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot index c7e07f0a018..cd84ca3b20b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/identifiers-double-underscore.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -25,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -81,6 +83,7 @@ Object { "type": "VariableDeclaration", }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -99,7 +102,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -117,7 +123,9 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -133,7 +141,9 @@ Object { 36, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "async": false, @@ -155,9 +165,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -175,6 +187,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -191,7 +204,9 @@ Object { 38, 59, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot index 1a7d4a8b3dc..9f636d412f1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/instanceof.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript basics instanceof.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "loc": Object { @@ -40,6 +41,7 @@ Object { 17, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -57,6 +59,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot index dff2c10e4ab..d540f39388a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/new-with-member-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript basics new-with-member-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -19,6 +20,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -36,9 +38,11 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -56,6 +60,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 4, @@ -78,6 +83,7 @@ Object { 13, ], "type": "NewExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot index 107a0f6637f..a136fbdfdc9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/new-without-parens.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,12 +62,16 @@ Object { 0, 16, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -82,6 +89,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -98,6 +106,7 @@ Object { 22, ], "type": "NewExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot index e2b8f3a8401..d880e34edf5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/or-operator-array-object.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -266,6 +268,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -283,6 +286,7 @@ Object { 49, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -524,6 +528,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -541,6 +546,7 @@ Object { 93, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -636,6 +642,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -653,6 +660,7 @@ Object { 111, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/typeof-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/typeof-expression.src.js.shot index 8adff11923d..7478955678e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/typeof-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/typeof-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript basics typeof-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot index 7411e8f7e4d..38f46f64918 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/update-expression.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,8 +87,10 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -104,6 +108,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -156,9 +161,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -176,6 +183,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -192,12 +200,16 @@ Object { 11, 34, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -215,6 +227,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -232,6 +245,7 @@ Object { 38, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/basics/void-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/basics/void-expression.src.js.shot index 3eb83ba3441..bd4a10bb061 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/basics/void-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/basics/void-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript basics void-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { "loc": Object { @@ -59,6 +60,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "argument": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/binary.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/binary.src.js.shot index edafc1a0bf7..4a8d4f331be 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/binary.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/binary.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript bigIntLiterals binary.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "bigint": "1", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/decimal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/decimal.src.js.shot index 648b69dde96..bf56f2d96eb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/decimal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/decimal.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript bigIntLiterals decimal.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "bigint": "1", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/hex.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/hex.src.js.shot index 7a64e5d3015..75125bb184e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/hex.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/hex.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript bigIntLiterals hex.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "bigint": "1", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/numeric-separator.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/numeric-separator.src.js.shot index 4697f202586..3cd9533db4a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/numeric-separator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/numeric-separator.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript bigIntLiterals numeric-separator.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "bigint": "123", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/octal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/octal.src.js.shot index e81eaea4b78..52786883897 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/octal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/bigIntLiterals/octal.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript bigIntLiterals octal.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "bigint": "1", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/lowercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/lowercase.src.js.shot index bc09e142ce7..124bdb4cd05 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/lowercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/lowercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript binaryLiterals lowercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/uppercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/uppercase.src.js.shot index 100dd4d404c..3fa0b872adb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/uppercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/uppercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript binaryLiterals uppercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot index 5ae8af066d4..0e996dde2f1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/const.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,8 +26,10 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -44,6 +47,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot index eced9db6122..12070dc88d6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let-in-switchcase.src.js.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -29,6 +30,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -140,6 +142,7 @@ Object { }, ], "discriminant": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -157,6 +160,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot index 4cff71d221e..bc446c5e3d1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/blockBindings/let.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,8 +26,10 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -44,6 +47,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot index b588ab18057..3dddfc56a21 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-array.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript callExpression call-expression-with-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -26,6 +27,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -43,6 +45,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,6 +63,7 @@ Object { 7, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot index 1f84441d822..9089a7c7a3a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/call-expression-with-object.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript callExpression call-expression-with-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -26,6 +27,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -43,6 +45,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,6 +63,7 @@ Object { 7, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot index 773a2c80a0b..fb023683793 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/mixed-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript callExpression mixed-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -30,6 +31,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -56,6 +58,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -126,6 +129,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -143,6 +147,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 36, @@ -166,6 +171,7 @@ Object { 53, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -200,6 +206,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -218,7 +225,9 @@ Object { 18, 57, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -236,6 +245,7 @@ Object { 62, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -270,6 +280,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -288,7 +299,9 @@ Object { 1, 65, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -306,6 +319,7 @@ Object { 70, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot index 22db0acdb87..30fb7745a51 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-array.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript callExpression new-expression-with-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -26,6 +27,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -43,6 +45,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 11, ], "type": "NewExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -77,6 +81,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -137,6 +142,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -154,6 +160,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -170,6 +177,7 @@ Object { 28, ], "type": "NewExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot index f26d04074b3..3b615a44ca9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/callExpression/new-expression-with-object.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript callExpression new-expression-with-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -26,6 +27,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -43,6 +45,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 11, ], "type": "NewExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot index 8e6b06df613..7eab8102766 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-accessor-properties.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-accessor-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -26,6 +30,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 14, 18, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -106,6 +119,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 19, @@ -125,6 +140,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -160,6 +177,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -177,13 +195,16 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 24, 29, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -203,7 +224,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -221,7 +245,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 31, @@ -237,7 +263,9 @@ Object { 31, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot index df266758826..11524816612 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-computed-static-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-computed-static-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -26,6 +30,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 19, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 25, @@ -137,7 +152,9 @@ Object { 25, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-expression.src.js.shot index 196727426a4..d30272154a9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-expression.src.js.shot @@ -4,7 +4,9 @@ exports[`javascript classes class-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 9, @@ -39,7 +44,9 @@ Object { 9, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot index f25f347d837..432b691a259 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-prototype.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-method-named-prototype.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -26,6 +30,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 18, 22, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -137,7 +152,9 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot index 6ea901cfe50..9eb3670aaa6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-static.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-method-named-static.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 15, 19, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 21, @@ -137,7 +152,9 @@ Object { 21, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot index cab497dd68c..fa4567a5191 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-method-named-with-space.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-method-named-with-space.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -26,6 +30,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 19, 24, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 25, @@ -137,7 +152,9 @@ Object { 25, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot index 6398d373167..434983b524c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method-super.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-one-method-super.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,11 +51,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -85,6 +93,7 @@ Object { 34, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -119,6 +128,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -137,7 +147,9 @@ Object { 15, 41, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -157,7 +169,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -175,7 +190,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -191,7 +208,9 @@ Object { 43, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot index 71779925035..bcaecd13509 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-one-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-one-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 15, 19, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -137,7 +152,9 @@ Object { 21, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot index cdd47f9698b..32d60d23aef 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-accessor.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript classes class-private-identifier-accessor.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -37,6 +40,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -44,6 +48,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -101,6 +106,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -119,11 +125,15 @@ Object { 24, 39, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -153,6 +163,7 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 42, @@ -160,6 +171,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -180,6 +192,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -195,6 +208,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -212,18 +226,24 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 52, 63, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -241,6 +261,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -253,6 +274,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 67, @@ -260,11 +282,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -389,6 +413,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -407,7 +432,9 @@ Object { 78, 107, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -427,7 +454,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -445,7 +475,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -461,7 +493,9 @@ Object { 109, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot index b57b00ac61e..9d71835526e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-field.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-private-identifier-field.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -37,19 +41,24 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 21, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -78,14 +87,16 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 24, 35, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -107,8 +118,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -126,6 +140,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -138,6 +153,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 39, @@ -145,11 +161,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -274,6 +292,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -292,7 +311,9 @@ Object { 50, 79, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -312,7 +333,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -330,7 +354,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -346,7 +372,9 @@ Object { 81, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot index 14acb9a9ed7..3420e9af1dd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-private-identifier-method.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript classes class-private-identifier-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -37,6 +40,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -44,6 +48,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -64,6 +69,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -82,12 +88,17 @@ Object { 18, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -105,6 +116,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -117,6 +129,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 27, @@ -124,11 +137,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -201,6 +216,7 @@ Object { 58, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -235,6 +251,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -253,7 +270,9 @@ Object { 38, 63, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -273,7 +292,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -291,7 +313,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -307,7 +331,9 @@ Object { 65, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot index 8922e07650e..ba4b263d757 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-prototype.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript classes class-static-method-named-prototype.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -38,6 +41,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +49,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +70,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +89,9 @@ Object { 29, 33, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +111,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +132,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 34, @@ -137,7 +150,9 @@ Object { 34, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot index b22f088f99f..782fe911f00 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method-named-static.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-static-method-named-static.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -26,6 +30,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 22, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 28, @@ -137,7 +152,9 @@ Object { 28, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot index 6a57b0fc699..60f3ee16eaa 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-static-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 17, 21, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -137,7 +152,9 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot index d6fe2e21673..fef551f8f4e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-static-methods-and-accessor-properties.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-static-methods-and-accessor-properties.src 1`] Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 17, 21, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -106,6 +119,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 22, @@ -125,6 +140,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,12 +180,17 @@ Object { 34, 38, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 51, @@ -186,6 +208,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -198,6 +221,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 39, @@ -205,6 +229,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -225,6 +250,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -240,6 +266,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 53, @@ -257,13 +284,16 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 51, 56, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -283,7 +313,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -301,7 +334,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 58, @@ -317,7 +352,9 @@ Object { 58, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot index 29114ab169f..83bc9569d22 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-computed-static-methods.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-computed-static-methods.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 18, 22, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -106,6 +119,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 24, @@ -125,6 +140,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 33, 37, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 38, @@ -217,7 +241,9 @@ Object { 38, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot index 4961fce0c8d..544d2ce7fdf 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-computed-constructor.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-methods-computed-constructor.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -26,6 +30,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,11 +91,15 @@ Object { 22, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -118,6 +130,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 27, @@ -125,6 +138,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +159,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +178,9 @@ Object { 42, 46, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +200,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +221,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 47, @@ -217,7 +239,9 @@ Object { 47, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot index 98e2eb4d5c1..fbb874c69f1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-semi.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-methods-semi.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -26,6 +30,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 10, 14, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -106,6 +119,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 15, @@ -125,6 +140,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 16, 20, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 21, @@ -217,7 +241,9 @@ Object { 21, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot index e2590e8b0d1..25e751448fa 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-three-semi.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-methods-three-semi.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -26,6 +30,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 10, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 11, 15, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -106,6 +119,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 16, @@ -125,6 +140,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 17, 21, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -217,7 +241,9 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot index 0ea9b7723d1..9aa250dce24 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods-two-semi.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-methods-two-semi.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -26,6 +30,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 10, 14, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -106,6 +119,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 15, @@ -125,6 +140,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 16, 20, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 22, @@ -217,7 +241,9 @@ Object { 22, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot index b9ff1fbe9dc..0e7540aea81 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-methods.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-methods.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -26,6 +30,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 10, 14, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -106,6 +119,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -125,6 +140,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 15, 19, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 20, @@ -217,7 +241,9 @@ Object { 20, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot index 5309172a6ec..31d2a1296b6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-two-static-methods-named-constructor.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-two-static-methods-named-constructor.src 1`] = Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -26,6 +30,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,12 +91,17 @@ Object { 27, 31, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 50, @@ -106,6 +119,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -118,6 +132,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 32, @@ -125,6 +140,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -145,6 +161,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -163,7 +180,9 @@ Object { 50, 54, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -183,7 +202,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +223,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 55, @@ -217,7 +241,9 @@ Object { 55, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot index 489eccc1b50..81d79860a13 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-parameters.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-with-constructor-parameters.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -26,6 +30,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,6 +88,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -97,8 +106,10 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -116,13 +127,16 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 20, 32, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -142,7 +156,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -160,7 +177,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 33, @@ -176,7 +195,9 @@ Object { 33, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot index 654ec8856bf..ae4dd655a61 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor-with-space.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-with-constructor-with-space.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -26,6 +30,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 21, 25, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 26, @@ -137,7 +152,9 @@ Object { 26, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot index 06d1055e0e5..1db42bd6d31 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/class-with-constructor.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes class-with-constructor.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -26,6 +30,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 9, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 20, 24, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 25, @@ -137,7 +152,9 @@ Object { 25, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot index 92b2dd631a6..3afca67d128 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-assign-to-var.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,8 +26,10 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -45,7 +48,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -63,7 +69,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 27, @@ -97,7 +105,9 @@ Object { "type": "Literal", "value": 0, }, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-expression.src.js.shot index 2b1313a267c..6e214373bd0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/derived-class-expression.src.js.shot @@ -4,7 +4,9 @@ exports[`javascript classes derived-class-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 18, @@ -57,7 +62,9 @@ Object { "type": "Literal", "value": 0, }, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot index e91ea01f493..bbe50c630e6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-double-semi.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript classes empty-class-double-semi.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,7 +44,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 10, @@ -56,7 +62,9 @@ Object { 10, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot index 6898f5abb43..a91651fb18c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class-semi.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript classes empty-class-semi.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,7 +44,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 11, @@ -56,7 +62,9 @@ Object { 11, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot index 0181f7384a3..07d6f1f4d68 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-class.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript classes empty-class.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,7 +44,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 10, @@ -56,7 +62,9 @@ Object { 10, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot index eb3e24f04fc..35302c18682 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/empty-literal-derived-class.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript classes empty-literal-derived-class.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,7 +44,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 20, @@ -74,7 +80,9 @@ Object { "type": "Literal", "value": 0, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-declaration.src.js.shot index 36421b25e80..45ab2064e11 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-declaration.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript classes invalid-class-declaration.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 8, @@ -38,7 +42,9 @@ Object { 8, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot index dfba9b3c491..d4f9e8a6db6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/invalid-class-setter-declaration.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript classes invalid-class-setter-declaration.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 1, }, }, + "optional": false, "override": false, "range": Array [ 10, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 17, 22, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -121,7 +134,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -137,7 +152,9 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot index e9506f6c59a..991a1291497 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/named-class-expression.src.js.shot @@ -4,7 +4,9 @@ exports[`javascript classes named-class-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -41,7 +46,9 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 11, @@ -57,7 +64,9 @@ Object { 11, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot index 6f3ac3acbca..0f4a18c27e7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/classes/named-derived-class-expression.src.js.shot @@ -4,7 +4,9 @@ exports[`javascript classes named-derived-class-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -41,7 +46,9 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 20, @@ -75,7 +82,9 @@ Object { "type": "Literal", "value": 0, }, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot index 9cc0015454a..59249c85038 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-conditional.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -25,6 +26,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ @@ -50,6 +52,7 @@ Object { }, "consequent": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -67,6 +70,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,6 +105,7 @@ Object { 22, ], "test": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -118,6 +123,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ConditionalExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot index 25fb621b02a..3e50b7b5813 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -25,6 +26,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot index 5c50f1692ea..8a71d3fafb8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-nested.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -25,6 +26,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot index e2a778bb10c..6a4387cf635 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-return.src.js.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -29,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -88,6 +90,7 @@ Object { "argument": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -105,8 +108,10 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -124,8 +129,10 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -143,6 +150,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -194,9 +202,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -214,6 +224,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -230,7 +241,9 @@ Object { 0, 49, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot index 388b8cc71b6..e1bfdf3c2d1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple-nested.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +26,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ diff --git a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot index 792df9e0a54..d7f1c274092 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/commaOperator/comma-operator-simple.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +26,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot index feed938fd9a..3569cb9eb84 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-constructor.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript defaultParams class-constructor.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,7 +88,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -98,6 +108,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -134,13 +145,16 @@ Object { "value": "bar", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 25, 44, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -160,7 +174,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -178,7 +195,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -194,7 +213,9 @@ Object { 46, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot index 48c5d5854fd..57fcb198f6f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/class-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript defaultParams class-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,7 +88,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -98,6 +108,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -134,13 +145,16 @@ Object { "value": "baz", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 36, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -160,7 +174,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -178,7 +195,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -194,7 +213,9 @@ Object { 38, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot index 93ac7ad1181..8e72eeee0c5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/declaration.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,7 +59,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -74,6 +79,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -110,13 +116,16 @@ Object { "value": 1, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 20, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot index befe9a40b32..a36ce0253ea 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/expression.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript defaultParams expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -74,7 +78,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -92,6 +98,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,13 +135,16 @@ Object { "value": 1, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 4, 22, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot index 059a8440ba0..ad60d4f5c4a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/method.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript defaultParams method.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -71,6 +75,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -111,6 +116,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -126,7 +132,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -144,6 +152,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -180,13 +189,16 @@ Object { "value": 1, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 9, 25, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot index 41621172981..a8eac5b333d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/defaultParams/not-all-params.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -46,6 +48,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -61,6 +64,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -78,9 +82,12 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -98,6 +105,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -134,8 +142,10 @@ Object { "value": 42, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -153,13 +163,16 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 10, 35, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot index fb3d114c9e4..b5870a1cbee 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-array.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions arrow-param-array.src 1`] = Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -24,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,8 +43,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -59,6 +64,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -77,13 +83,16 @@ Object { 4, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 10, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot index 397e92502ca..715917e932c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-array.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions arrow-param-nested-array.sr Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -24,6 +26,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,8 +43,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -59,10 +64,13 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -80,6 +88,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -98,6 +107,7 @@ Object { 8, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -116,13 +126,16 @@ Object { 9, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 15, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot index 3115ed57fd4..ad26763f052 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object-named.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions arrow-param-nested-object-n Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -24,6 +26,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -55,6 +59,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -72,6 +77,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -93,6 +99,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -110,11 +117,13 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -132,6 +141,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -153,6 +163,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -168,6 +179,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -185,6 +197,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -206,6 +219,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -223,6 +237,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -231,6 +246,7 @@ Object { 20, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -239,13 +255,16 @@ Object { 21, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 27, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot index 1712034e963..d34a19fcefd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-nested-object.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions arrow-param-nested-object.s Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -24,6 +26,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -55,6 +59,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -72,6 +77,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -93,6 +99,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -110,11 +117,13 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -132,6 +141,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -153,6 +163,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -168,6 +179,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -185,6 +197,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -206,6 +219,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -223,6 +237,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -231,6 +246,7 @@ Object { 10, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -239,13 +255,16 @@ Object { 11, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 17, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot index ef8b88747a2..e3302567feb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/arrow-param-object.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions arrow-param-object.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -24,6 +26,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -55,6 +59,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -72,6 +77,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -93,6 +99,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -110,6 +117,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -118,13 +126,16 @@ Object { 4, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 10, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot index 92990908e39..1aa480a1b1d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-array.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions param-defaults-array.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -24,6 +26,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,9 +43,12 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -60,6 +66,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -96,6 +103,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -114,13 +122,16 @@ Object { 9, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 15, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot index d1b71310535..1c000de2ad3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object-nested.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript destructuring-and-arrowFunctions param-defaults-object-neste Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -26,8 +28,10 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -45,6 +49,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -78,6 +83,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -93,6 +99,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -110,6 +117,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -131,7 +139,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -149,6 +159,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -185,11 +196,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -207,6 +220,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -228,6 +242,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -243,6 +258,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -260,6 +276,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -281,7 +298,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -299,6 +318,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -335,6 +355,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -343,6 +364,7 @@ Object { 23, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -351,13 +373,16 @@ Object { 24, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 35, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot index e236a253633..f60c58a80fb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-arrowFunctions/param-defaults-object.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript destructuring-and-arrowFunctions param-defaults-object.src 1 Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -24,6 +26,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -40,6 +43,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -55,6 +59,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -72,6 +77,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -93,7 +99,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -111,6 +119,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -147,6 +156,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -155,13 +165,16 @@ Object { 9, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 15, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot index e824ced7727..15d77d2373a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-const-undefined.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -27,6 +29,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -45,6 +48,7 @@ Object { 9, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { "elements": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot index e961caf7cbb..fb391ec1034 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/array-let-undefined.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,6 +29,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -45,6 +48,7 @@ Object { 7, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { "elements": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot index 63bd7488d2d..3ae7f324881 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-named.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -40,6 +42,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -78,6 +82,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 11, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot index 29c126b338f..8a35c324221 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-const-undefined.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -40,6 +42,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -78,6 +82,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 9, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot index 9e388a9794b..7b1922e8ff4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-named.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -78,6 +82,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 9, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot index caa1c7a1da2..0be2c7d8a08 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-blockBindings/object-let-undefined.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -78,6 +82,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 7, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot index 4be14bc1717..1c22d9dab39 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-array.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,9 +59,12 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -76,6 +82,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -94,6 +101,7 @@ Object { 14, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -149,13 +157,16 @@ Object { "type": "ArrayExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 24, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot index 17189f263be..99d9795d417 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-short.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring-and-defaultParams param-object-short.src 1`] = Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -36,6 +38,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -76,6 +79,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -91,7 +95,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -107,6 +113,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -124,6 +131,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -145,6 +153,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -162,6 +171,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -170,6 +180,7 @@ Object { 7, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -201,6 +212,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -218,6 +230,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -266,13 +279,16 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 3, 21, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot index f5c1dd79a99..af7a2368808 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object-wrapped.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring-and-defaultParams param-object-wrapped.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -36,6 +38,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -76,6 +79,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -91,7 +95,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -107,6 +113,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -124,6 +131,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -145,6 +153,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -162,6 +171,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -170,6 +180,7 @@ Object { 17, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -201,6 +212,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -218,6 +230,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -266,13 +279,16 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 5, 31, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot index 4a042a40da7..d3b0511fe86 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-defaultParams/param-object.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript destructuring-and-defaultParams param-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -74,7 +78,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -90,6 +96,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -107,6 +114,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -128,6 +136,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -145,6 +154,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -153,6 +163,7 @@ Object { 16, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -184,6 +195,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -201,6 +213,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -249,13 +262,16 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 4, 30, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot index 73f7a765ea3..9035479de39 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-forOf/loop.src.js.shot @@ -23,8 +23,10 @@ Object { "type": "EmptyStatement", }, "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -42,6 +44,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -60,6 +63,7 @@ Object { 8, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -76,6 +80,7 @@ Object { 17, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -93,6 +98,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot index fefa8fb297f..fe9333adb32 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/complex-destructured.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript destructuring-and-spread complex-destructured.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -23,6 +26,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -40,6 +44,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +66,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -78,11 +84,13 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -100,6 +108,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,6 +130,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -138,6 +148,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -146,9 +157,11 @@ Object { 9, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -166,7 +179,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -183,6 +198,8 @@ Object { 15, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -201,6 +218,7 @@ Object { 16, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -218,6 +236,7 @@ Object { 20, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -235,6 +254,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot index bb7f438d522..f87059bfb1a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructured-array-literal.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript destructuring-and-spread destructured-array-literal.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -25,11 +28,14 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -47,8 +53,10 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -66,6 +74,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -84,7 +93,9 @@ Object { 13, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -101,6 +112,8 @@ Object { 13, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -119,6 +132,7 @@ Object { 14, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -136,6 +150,7 @@ Object { 18, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -153,6 +168,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot index fe9ddde988e..e7c4c0e8a6c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/destructuring-param.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,8 +59,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -75,8 +80,10 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -94,11 +101,14 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -116,6 +126,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -134,7 +145,9 @@ Object { 25, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -151,6 +164,8 @@ Object { 25, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -169,13 +184,16 @@ Object { 26, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 30, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot index f0422f49319..f5983c69db4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/error-complex-destructured-spread-first.src.js.shot @@ -4,11 +4,14 @@ exports[`javascript destructuring-and-spread error-complex-destructured-spread-f Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,7 +29,9 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -43,8 +48,11 @@ Object { 5, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -60,6 +68,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -77,6 +86,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -98,6 +108,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -115,11 +126,13 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -137,6 +150,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,6 +172,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -175,6 +190,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -183,6 +199,7 @@ Object { 15, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -201,6 +218,7 @@ Object { 16, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -218,6 +236,7 @@ Object { 20, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -235,6 +254,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot index 939c6546f15..ac972ba6538 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/invalid-not-final-array-empty.src.js.shot @@ -4,11 +4,14 @@ exports[`javascript destructuring-and-spread invalid-not-final-array-empty.src 1 Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,7 +29,9 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -43,6 +48,8 @@ Object { 5, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -61,6 +68,7 @@ Object { 8, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,6 +86,7 @@ Object { 12, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -95,6 +104,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot index 7e8d12a451b..099813077c4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/multi-destructured.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript destructuring-and-spread multi-destructured.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -25,9 +28,11 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -45,7 +50,9 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -62,6 +69,8 @@ Object { 8, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -80,6 +89,7 @@ Object { 9, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,6 +107,7 @@ Object { 13, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -114,6 +125,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot index 40da8884e7a..91a7755e6e9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/not-final-array.src.js.shot @@ -4,11 +4,14 @@ exports[`javascript destructuring-and-spread not-final-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,7 +29,9 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -43,8 +48,11 @@ Object { 5, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -62,6 +70,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -80,6 +89,7 @@ Object { 9, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,6 +107,7 @@ Object { 13, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -114,6 +125,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot index 75d4577e0fe..c84486fea60 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/single-destructured.src.js.shot @@ -4,11 +4,14 @@ exports[`javascript destructuring-and-spread single-destructured.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,7 +29,9 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -43,6 +48,8 @@ Object { 5, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -61,6 +68,7 @@ Object { 6, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,6 +86,7 @@ Object { 10, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -95,6 +104,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot index 9d4a266abc1..8fdea157a80 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-complex-destructured.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -25,6 +27,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -42,6 +45,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -63,6 +67,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -80,11 +85,13 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -102,6 +109,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -123,6 +131,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -140,6 +149,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -148,9 +158,11 @@ Object { 13, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -168,7 +180,9 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -185,6 +199,8 @@ Object { 19, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -203,8 +219,10 @@ Object { 20, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -222,6 +240,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot index 71417ff0fac..82a555745aa 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-destructured-array-literal.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,11 +29,14 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -49,8 +54,10 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -68,6 +75,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -86,7 +94,9 @@ Object { 17, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -103,6 +113,8 @@ Object { 17, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -121,8 +133,10 @@ Object { 18, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -140,6 +154,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot index 8f60e845ec7..3784815c474 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-multi-destructured.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,9 +29,11 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -47,7 +51,9 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -64,6 +70,8 @@ Object { 12, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -82,8 +90,10 @@ Object { 13, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -101,6 +111,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot index c4d6ed3941a..cfe2fe744c8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring-and-spread/var-single-destructured.src.js.shot @@ -8,9 +8,11 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -28,7 +30,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -45,6 +49,8 @@ Object { 9, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -63,8 +69,10 @@ Object { 10, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -82,6 +90,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot index eada64343d5..11880e217c0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-member.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript destructuring array-member.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { "computed": false, @@ -20,6 +22,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -37,9 +40,11 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -57,6 +62,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 1, @@ -81,6 +87,7 @@ Object { 6, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot index 4f194d845c8..2b27d36e315 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-to-array.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript destructuring array-to-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -25,8 +28,10 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -44,6 +49,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -62,6 +68,7 @@ Object { 6, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -81,6 +88,7 @@ Object { "right": Object { "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -98,8 +106,10 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -117,6 +127,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot index 3ce2f2b0dcf..e00d1424175 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/array-var-undefined.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,6 +29,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -45,6 +48,7 @@ Object { 7, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { "elements": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot index da432ff0d72..e1b236b05d2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-array.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring call-expression-destruction-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -43,6 +44,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -60,6 +62,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +80,7 @@ Object { 10, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot index e688e345b6f..0ef44c61653 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/call-expression-destruction-object.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring call-expression-destruction-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -43,6 +44,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -60,6 +62,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +80,7 @@ Object { 10, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot index b8444f5dc25..3494762e712 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-array.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-constructor-params-array.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,8 +88,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -99,8 +109,10 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -118,6 +130,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -136,13 +149,16 @@ Object { 36, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 25, 45, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -162,7 +178,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -180,7 +199,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -196,7 +217,9 @@ Object { 47, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot index fd1c01bfcfb..1e48387e524 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-array.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-constructor-params-defaults-array.src 1` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,9 +88,12 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -100,6 +111,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -136,9 +148,12 @@ Object { "value": 3, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -156,6 +171,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -192,6 +208,7 @@ Object { "value": 4, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -210,13 +227,16 @@ Object { 40, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 25, 49, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -236,7 +256,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -254,7 +277,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -270,7 +295,9 @@ Object { 51, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot index a68fbc11354..89d7bec8ca1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-defaults-object.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-constructor-params-defaults-object.src 1 Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,6 +88,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -95,6 +104,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -112,6 +122,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -133,7 +144,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -151,6 +164,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -187,11 +201,13 @@ Object { "value": 3, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -209,6 +225,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -230,7 +247,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -248,6 +267,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -284,6 +304,7 @@ Object { "value": 4, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -292,13 +313,16 @@ Object { 40, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 25, 49, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -318,7 +342,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -336,7 +363,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -352,7 +381,9 @@ Object { 51, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot index f4ce1468e52..99ce9fb349b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-constructor-params-object.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-constructor-params-object.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,6 +88,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -95,6 +104,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -112,6 +122,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -133,6 +144,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -150,11 +162,13 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -172,6 +186,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -193,6 +208,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -210,6 +226,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -218,13 +235,16 @@ Object { 36, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 25, 45, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -244,7 +264,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -262,7 +285,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -278,7 +303,9 @@ Object { 47, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot index 51c87708b48..a5727b567b5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-array.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-method-params-array.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,8 +88,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -99,8 +109,10 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -118,6 +130,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -136,13 +149,16 @@ Object { 28, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 37, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -162,7 +178,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -180,7 +199,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -196,7 +217,9 @@ Object { 39, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot index f55bb613060..d0bed90500b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-array.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-method-params-defaults-array.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,9 +88,12 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -100,6 +111,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -136,9 +148,12 @@ Object { "value": 3, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -156,6 +171,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -192,6 +208,7 @@ Object { "value": 4, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -210,13 +227,16 @@ Object { 32, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 41, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -236,7 +256,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -254,7 +277,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -270,7 +295,9 @@ Object { 43, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot index fce3403695c..381638adf40 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-defaults-object.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-method-params-defaults-object.src 1`] = Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,6 +88,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -95,6 +104,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -112,6 +122,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -133,7 +144,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -151,6 +164,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -187,11 +201,13 @@ Object { "value": 3, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -209,6 +225,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -230,7 +247,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -248,6 +267,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -284,6 +304,7 @@ Object { "value": 3, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -292,13 +313,16 @@ Object { 32, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 41, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -318,7 +342,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -336,7 +363,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -352,7 +381,9 @@ Object { 43, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot index 90eba152b00..f48e895e4c4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/class-method-params-object.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring class-method-params-object.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -80,6 +88,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -95,6 +104,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -112,6 +122,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -133,6 +144,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -150,11 +162,13 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -172,6 +186,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -193,6 +208,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -210,6 +226,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -218,13 +235,16 @@ Object { 28, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 37, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -244,7 +264,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -262,7 +285,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -278,7 +303,9 @@ Object { 39, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot index 8163fff4458..2f0a156c13e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-all.src.js.shot @@ -8,9 +8,12 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -28,6 +31,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,9 +68,12 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -84,6 +91,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -120,9 +128,12 @@ Object { "value": 5, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -140,6 +151,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -176,6 +188,7 @@ Object { "value": 1, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -194,8 +207,10 @@ Object { 26, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -213,6 +228,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot index adf6a9594f8..a07485a07c6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-longform-nested-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -78,11 +82,13 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -100,6 +106,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,6 +128,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -138,11 +146,13 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -160,6 +170,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -181,6 +192,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -196,6 +208,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -213,6 +226,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -234,7 +248,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -252,6 +268,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -288,6 +305,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -296,6 +314,7 @@ Object { 32, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -304,8 +323,10 @@ Object { 34, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -323,6 +344,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot index 42026e0da50..324a1a13603 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-multi.src.js.shot @@ -8,9 +8,12 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -28,6 +31,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,8 +68,10 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -83,8 +89,10 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -102,6 +110,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -120,8 +129,10 @@ Object { 18, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -139,6 +150,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot index 97c7f8112a6..755ecabd3e8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-all.src.js.shot @@ -8,9 +8,12 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -28,6 +31,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,11 +68,15 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -86,6 +94,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -122,6 +131,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -140,6 +150,7 @@ Object { 22, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -158,8 +169,10 @@ Object { 23, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -177,6 +190,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot index 39a4bbeb484..0959f81fd93 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array-nested-multi.src.js.shot @@ -8,9 +8,12 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -28,6 +31,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,10 +68,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -85,6 +92,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -103,6 +111,7 @@ Object { 18, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -121,8 +130,10 @@ Object { 19, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -140,6 +151,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot index 72a09d5aae0..eefedac7104 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-array.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript destructuring defaults-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -26,6 +30,7 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,6 +67,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -80,6 +86,7 @@ Object { 6, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,6 +104,7 @@ Object { 10, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -114,6 +122,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot index 436035170d9..d645ed370b2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-all.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -79,6 +84,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,11 +121,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -137,6 +145,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,7 +167,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -176,6 +187,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -212,11 +224,13 @@ Object { "value": 5, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -234,6 +248,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -255,7 +270,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -273,6 +290,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -309,6 +327,7 @@ Object { "value": 1, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -317,8 +336,10 @@ Object { 26, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -336,6 +357,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot index ec3b0827e19..ea08a63ea0b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-assign.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript destructuring defaults-object-assign.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -38,6 +41,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,7 +63,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -77,6 +83,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -113,11 +120,13 @@ Object { "value": 0, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -135,6 +144,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -156,7 +166,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -174,6 +186,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -210,6 +223,7 @@ Object { "value": 0, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -218,6 +232,7 @@ Object { 23, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot index c1349534bed..62fddc0d7d9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-all.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -79,6 +84,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,11 +121,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -137,6 +145,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,7 +167,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -176,6 +187,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -212,11 +224,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -234,6 +248,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -255,7 +270,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -273,6 +290,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -309,6 +327,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -317,8 +336,10 @@ Object { 37, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -336,6 +357,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot index a9b8bfafa18..ff2664d772a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -78,11 +82,13 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -100,6 +106,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,7 +128,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -139,6 +148,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -175,11 +185,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -197,6 +209,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -218,6 +231,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -235,6 +249,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -243,8 +258,10 @@ Object { 27, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -262,6 +279,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot index 302d7435915..09bad9cf65d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-longform.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,6 +42,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -79,6 +84,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,6 +121,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -123,8 +130,10 @@ Object { 17, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -142,6 +151,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot index 335d01c12ff..29554cdc9cc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-mixed-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -78,11 +82,13 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -100,6 +106,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,7 +128,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -139,6 +148,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -175,11 +185,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -197,6 +209,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -218,6 +231,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -235,6 +249,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -243,8 +258,10 @@ Object { 21, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -262,6 +279,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot index ea65b90cd0c..d943686cc18 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -79,6 +84,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,11 +121,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -137,6 +145,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,6 +167,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -175,11 +185,13 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -197,6 +209,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -218,6 +231,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -235,6 +249,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -243,8 +258,10 @@ Object { 18, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -262,6 +279,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot index 34ba90afe9d..9792670e0ad 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-all.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -79,6 +84,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,11 +121,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -137,6 +145,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,6 +167,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -173,6 +183,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -190,6 +201,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -211,7 +223,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -229,6 +243,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -265,6 +280,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -273,6 +289,7 @@ Object { 25, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -281,8 +298,10 @@ Object { 26, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -300,6 +319,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot index 712bae8812e..b6257ee5a44 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object-nested-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -79,6 +84,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,11 +121,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -137,6 +145,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -158,6 +167,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -173,6 +183,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -190,6 +201,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -211,6 +223,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -228,6 +241,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -236,6 +250,7 @@ Object { 21, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -244,8 +259,10 @@ Object { 22, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -263,6 +280,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot index b30de7930dc..5d59d252a3a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/defaults-object.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,7 +64,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -79,6 +84,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,6 +121,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -123,8 +130,10 @@ Object { 12, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -142,6 +151,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot index 1b23439ed0b..f0d9beb6ffa 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-array-catch.src.js.shot @@ -15,6 +15,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -30,6 +31,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -47,6 +49,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -68,6 +71,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -85,6 +89,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -93,8 +98,10 @@ Object { 37, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -112,6 +119,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -196,8 +204,10 @@ Object { }, }, "param": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -215,6 +225,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -233,6 +244,7 @@ Object { 62, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "range": Array [ 49, @@ -273,9 +285,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -293,6 +307,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -306,6 +321,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -321,6 +337,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -338,6 +355,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -359,6 +377,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -376,6 +395,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -384,13 +404,16 @@ Object { 14, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 71, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot index 6c986b91423..99f124469b6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/destructured-object-catch.src.js.shot @@ -15,6 +15,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -30,6 +31,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -47,6 +49,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -68,6 +71,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -85,6 +89,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -93,8 +98,10 @@ Object { 37, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -112,6 +119,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -196,6 +204,7 @@ Object { }, }, "param": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -211,6 +220,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -228,6 +238,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -249,6 +260,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -266,6 +278,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -274,6 +287,7 @@ Object { 62, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "range": Array [ 49, @@ -314,9 +328,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -334,6 +350,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -347,6 +364,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -362,6 +380,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -379,6 +398,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -400,6 +420,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -417,6 +438,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -425,13 +447,16 @@ Object { 14, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 71, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot index 1a5b838add6..f23ecdeefb5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/invalid-defaults-object-assign.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring invalid-defaults-object-assign.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "loc": Object { @@ -20,6 +21,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -37,6 +39,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -58,7 +61,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -76,6 +81,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -112,11 +118,13 @@ Object { "value": 0, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -134,6 +142,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -155,7 +164,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -173,6 +184,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -209,6 +221,7 @@ Object { "value": 0, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot index 728d479f162..873f710042d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/named-param.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript destructuring named-param.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -38,6 +41,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,6 +63,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -76,6 +81,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -84,6 +90,7 @@ Object { 23, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,6 +108,7 @@ Object { 29, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -118,6 +126,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot index aef1deb9b9d..c970f3dbf8d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-array.src.js.shot @@ -8,8 +8,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,12 +29,15 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, null, Object { + "decorators": Array [], "elements": Array [ null, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -50,6 +55,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -68,6 +74,7 @@ Object { 15, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -86,6 +93,7 @@ Object { 16, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": Object { "elements": Array [ diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot index f4b6c8aaf24..2b2864dce2e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/nested-object.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -78,11 +82,13 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -100,6 +106,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,6 +128,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -136,6 +144,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -153,6 +162,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -174,6 +184,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -191,6 +202,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -199,6 +211,7 @@ Object { 22, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -207,6 +220,7 @@ Object { 24, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -223,6 +237,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -240,6 +255,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -283,6 +299,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -300,6 +317,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -335,6 +353,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -352,6 +371,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot index 83c6e8ba102..1570468dbf0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-named.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -78,6 +82,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 9, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot index e0475e0fade..4ca1b8678f1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/object-var-undefined.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -78,6 +82,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -86,6 +91,7 @@ Object { 7, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot index dc09d73d37f..79f9a2d3f75 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-array.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,9 +59,12 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -76,6 +82,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -112,6 +119,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -130,13 +138,16 @@ Object { 19, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 23, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot index d6ed11ac19b..b624bab2286 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object-nested.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -88,6 +93,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,7 +115,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -127,6 +135,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -163,11 +172,13 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -185,6 +196,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -206,6 +218,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -221,6 +234,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -238,6 +252,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -259,7 +274,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -277,6 +294,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -313,6 +331,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -321,6 +340,7 @@ Object { 33, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -329,13 +349,16 @@ Object { 34, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 38, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot index fbbfa964b85..27805974e8f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/param-defaults-object.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -88,6 +93,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,7 +115,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -127,6 +135,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -163,6 +172,7 @@ Object { "value": 10, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -171,13 +181,16 @@ Object { 19, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 23, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot index ca0423fd8a9..95477c0b142 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array-wrapped.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring params-array-wrapped.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -24,9 +25,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -44,6 +47,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,8 +61,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -76,8 +82,10 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -95,6 +103,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -113,13 +122,16 @@ Object { 20, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 1, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot index 2e648b6fb63..b1464adf09d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-array.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,8 +59,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -75,8 +80,10 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -94,6 +101,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -112,13 +120,16 @@ Object { 19, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 22, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot index 77d61d26b14..e99c0eacc7b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-multi-object.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -73,8 +77,10 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -90,6 +96,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -107,6 +114,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -128,6 +136,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -145,6 +154,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -153,13 +163,16 @@ Object { 19, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 22, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot index b4624a43268..497ac3b53f4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-array.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,8 +59,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -75,12 +80,15 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, null, Object { + "decorators": Array [], "elements": Array [ null, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -98,6 +106,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -116,6 +125,7 @@ Object { 22, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -134,13 +144,16 @@ Object { 23, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 27, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot index 402c5a81e8e..d2f8056302b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-nested-object.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -88,6 +93,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,6 +115,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -126,11 +133,13 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -148,6 +157,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -169,6 +179,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -184,6 +195,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -201,6 +213,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -222,6 +235,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -239,6 +253,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -247,6 +262,7 @@ Object { 29, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, ], @@ -255,13 +271,16 @@ Object { 31, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 35, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot index 3cccfea0ac5..18a48d95ed3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object-wrapped.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript destructuring params-object-wrapped.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { @@ -24,9 +25,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -44,6 +47,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +61,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -72,6 +77,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -89,6 +95,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -110,6 +117,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -127,11 +135,13 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -149,6 +159,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -170,6 +181,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -187,6 +199,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -195,13 +208,16 @@ Object { 20, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 1, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot index eff47389bea..5095e7ab7af 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/params-object.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -88,6 +93,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,6 +115,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -126,11 +133,13 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -148,6 +157,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -169,6 +179,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -186,6 +197,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -194,13 +206,16 @@ Object { 19, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 22, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot index 062e88d085d..105e58db45b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/destructuring/sparse-array.src.js.shot @@ -4,10 +4,13 @@ exports[`javascript destructuring sparse-array.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -25,9 +28,11 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, null, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -45,6 +50,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -63,6 +69,7 @@ Object { 6, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -80,6 +87,7 @@ Object { 14, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -97,6 +105,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot index b020fef6584..845f8bffb2a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/block.src.js.shot @@ -49,6 +49,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -66,6 +67,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -122,6 +124,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -174,9 +177,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -194,6 +199,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -210,7 +216,9 @@ Object { 0, 63, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot index 49aa228cfef..bf1268df26e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/directive-in-class.src.js.shot @@ -41,11 +41,15 @@ Object { "type": "ExpressionStatement", }, Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -63,6 +67,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -75,6 +80,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 31, @@ -82,6 +88,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -140,6 +147,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -158,12 +166,17 @@ Object { 43, 75, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -181,6 +194,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -193,6 +207,7 @@ Object { "line": 8, }, }, + "optional": false, "override": false, "range": Array [ 81, @@ -200,6 +215,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -258,6 +274,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -276,12 +293,17 @@ Object { 89, 121, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -299,6 +321,7 @@ Object { 134, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -311,6 +334,7 @@ Object { "line": 12, }, }, + "optional": false, "override": false, "range": Array [ 127, @@ -318,6 +342,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -376,6 +401,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -391,6 +417,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -408,18 +435,24 @@ Object { 141, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 135, 172, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -437,6 +470,7 @@ Object { 184, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -449,6 +483,7 @@ Object { "line": 16, }, }, + "optional": false, "override": false, "range": Array [ 178, @@ -456,6 +491,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -514,6 +550,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -532,7 +569,9 @@ Object { 185, 217, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -552,7 +591,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -570,7 +612,9 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -586,7 +630,9 @@ Object { 219, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/first-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/first-expression.src.js.shot index af1be7214fc..578bf631b6b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/first-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/first-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript directives first-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -40,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot index 4d92815c742..f4f477bd5e5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/function-non-strict.src.js.shot @@ -45,6 +45,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "left": Object { "loc": Object { @@ -134,9 +135,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -154,6 +157,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -170,7 +174,9 @@ Object { 0, 39, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/non-directive-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/non-directive-string.src.js.shot index bc7cfcd4a95..7d58ddf9398 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/non-directive-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/non-directive-string.src.js.shot @@ -8,6 +8,7 @@ Object { "consequent": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -102,6 +103,7 @@ Object { Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -195,6 +197,7 @@ Object { Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -305,6 +308,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot index a074254b417..f4f8b529b14 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/program-order.src.js.shot @@ -82,6 +82,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -99,6 +100,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot index 3ab520acba4..24d4eb22e3c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/directives/program.src.js.shot @@ -45,6 +45,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -62,6 +63,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -118,6 +120,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot index bec0c8cd341..6b1ac11e719 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-generators.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -43,6 +45,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,7 +62,9 @@ Object { 0, 26, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot index 0ddd5b7adb1..6d84f246347 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalAsyncIteration/async-iterator.src.js.shot @@ -32,6 +32,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -49,6 +50,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -101,6 +103,7 @@ Object { 67, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -118,6 +121,7 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, @@ -138,9 +142,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -158,6 +164,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -174,7 +181,9 @@ Object { 0, 69, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot index 8c085411a8d..d1f1d8e7012 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalDynamicImport/dynamic-import.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript experimentalDynamicImport dynamic-import.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -24,6 +26,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { @@ -77,6 +80,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -94,6 +98,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -117,6 +122,7 @@ Object { 24, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot index e287bd3d260..819144e9ae4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/arg-spread.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -88,6 +93,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,6 +115,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -126,10 +133,12 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -147,7 +156,9 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -164,6 +175,8 @@ Object { 19, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -171,13 +184,16 @@ Object { 20, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 24, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot index b974171159e..760d46c20a0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/destructuring-assign-mirror.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript experimentalObjectRestSpread destructuring-assign-mirror.src Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -38,6 +41,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,6 +63,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -76,10 +81,12 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -97,7 +104,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -114,6 +123,8 @@ Object { 9, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -121,6 +132,7 @@ Object { 10, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -152,6 +164,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -169,6 +182,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -190,6 +204,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -207,10 +222,12 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -228,6 +245,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot index 68d0f4f25da..88f212e3820 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/function-parameter-object-spread.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -43,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -70,6 +74,7 @@ Object { "properties": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -87,7 +92,9 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -104,6 +111,8 @@ Object { 20, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -111,13 +120,16 @@ Object { 21, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 26, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot index 438c9ada80b..8c9bdda99a5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest-trailing-comma.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,6 +42,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -78,11 +82,13 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -100,6 +106,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,6 +128,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -138,10 +146,12 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -159,7 +169,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -176,6 +188,8 @@ Object { 16, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -183,8 +197,10 @@ Object { 19, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -202,6 +218,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot index b8fe60933a7..415f333aa84 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/object-rest.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -23,6 +24,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,6 +42,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -61,6 +64,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -78,11 +82,13 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -100,6 +106,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -121,6 +128,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -138,10 +146,12 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -159,7 +169,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -176,6 +188,8 @@ Object { 16, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -183,6 +197,7 @@ Object { 18, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -199,6 +214,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -216,6 +232,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -259,6 +276,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -276,6 +294,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -319,6 +338,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -336,6 +356,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -379,6 +400,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -396,6 +418,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot index 652b18b2b7e..776903479cd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/property-spread.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -46,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -63,6 +66,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -101,6 +106,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -143,6 +149,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -160,6 +167,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -176,6 +184,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -193,6 +202,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -214,6 +224,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -231,11 +242,13 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -253,6 +266,7 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -274,6 +288,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -291,6 +306,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { @@ -307,6 +323,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -324,9 +341,11 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -344,6 +363,7 @@ Object { 80, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 73, diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot index c32c874060f..ca5b4583ef5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-method-args.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript experimentalObjectRestSpread shorthand-method-args.src 1`] = Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -36,6 +38,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -76,6 +79,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -91,6 +95,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -106,6 +111,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -123,6 +129,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -144,6 +151,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -161,11 +169,13 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -183,6 +193,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -204,6 +215,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -221,10 +233,12 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -242,7 +256,9 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -259,6 +275,8 @@ Object { 48, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -266,13 +284,16 @@ Object { 49, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 17, 104, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot index 5340d44695f..13fa0d20e05 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-methods.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -58,6 +61,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -98,6 +102,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -113,6 +118,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -128,6 +134,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -145,6 +152,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -166,6 +174,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -183,11 +192,13 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -205,6 +216,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -226,6 +238,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -243,10 +256,12 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -264,7 +279,9 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -281,6 +298,8 @@ Object { 55, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -288,13 +307,16 @@ Object { 56, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 24, 111, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot index 597132ca986..750f593f3f5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/shorthand-properties.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -46,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -63,6 +66,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -101,6 +106,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -143,6 +149,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -160,6 +167,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -176,6 +184,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -193,6 +202,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -214,6 +224,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -231,11 +242,13 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -253,6 +266,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -274,6 +288,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -291,10 +306,12 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -312,6 +329,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot index bec49818dab..8d485633566 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/single-spread.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -46,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -63,6 +66,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -101,6 +106,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -143,6 +149,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -160,6 +167,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -176,6 +184,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -193,6 +202,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -214,6 +224,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -231,11 +242,13 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -253,6 +266,7 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -274,6 +288,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -291,10 +306,12 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -312,6 +329,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot index f8db54cec1b..1db33326199 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/spread-trailing-comma.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript experimentalObjectRestSpread spread-trailing-comma.src 1`] = Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -36,6 +38,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -57,6 +60,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -74,11 +78,13 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -96,6 +102,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -117,6 +124,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -134,10 +142,12 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -155,6 +165,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot index ead776eac43..e5a7e057f22 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/experimentalObjectRestSpread/two-spread.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -46,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -63,6 +66,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -101,6 +106,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -143,6 +149,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -160,6 +167,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -176,6 +184,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -193,6 +202,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -214,6 +224,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -231,10 +242,12 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -252,6 +265,7 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -271,6 +285,7 @@ Object { }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -288,6 +303,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot index 14ef2094cee..96a8280ac8c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/exponentiationOperators/exponential-operators.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { @@ -118,8 +120,10 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -137,6 +141,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot index 0bc524b3b73..6176a65ea4a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-loop.src.js.shot @@ -27,6 +27,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -44,6 +45,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -115,6 +117,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -132,6 +135,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -172,6 +176,7 @@ Object { "type": "ForStatement", "update": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -189,6 +194,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot index cf7e9de141c..5e628265a04 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-coma.src.js.shot @@ -27,6 +27,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -44,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -83,6 +85,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -100,6 +103,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -171,6 +175,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -188,6 +193,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -205,6 +211,7 @@ Object { 29, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -222,6 +229,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -230,6 +238,7 @@ Object { "expressions": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -247,6 +256,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -268,6 +278,7 @@ Object { }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -285,6 +296,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot index 9f040ad2832..a401f8c5240 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-const.src.js.shot @@ -27,6 +27,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -44,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -115,6 +117,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -132,6 +135,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -149,6 +153,7 @@ Object { 23, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -166,6 +171,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot index 43b934dcb58..8048d407b66 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-function.src.js.shot @@ -23,6 +23,7 @@ Object { }, "init": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +95,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -110,6 +113,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -141,6 +145,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -158,9 +163,11 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -178,6 +185,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 16, @@ -201,12 +209,14 @@ Object { 33, ], "type": "CallExpression", + "typeParameters": undefined, }, "type": "AssignmentExpression", }, "type": "ForStatement", "update": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -224,6 +234,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot index d97b0603988..ab5c97cf978 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/for/for-with-let.src.js.shot @@ -27,6 +27,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -44,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -115,6 +117,7 @@ Object { ], "test": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -132,6 +135,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -149,6 +153,7 @@ Object { 23, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -166,6 +171,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot index 5e360dc8f87..3a127f9866d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-array.src.js.shot @@ -23,6 +23,7 @@ Object { "type": "BlockStatement", }, "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot index 63eed9d4784..10b3380c144 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-bare-nonstrict.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -25,6 +26,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,6 +87,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -102,6 +105,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -162,6 +166,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -179,6 +184,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -220,8 +226,10 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -239,6 +247,7 @@ Object { 129, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -296,6 +305,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -313,11 +323,13 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -335,6 +347,7 @@ Object { 72, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -462,6 +475,7 @@ Object { "expressions": Array [ Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -479,6 +493,7 @@ Object { 87, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -496,6 +511,7 @@ Object { 91, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -513,6 +529,7 @@ Object { 91, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, @@ -531,6 +548,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -548,6 +566,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -591,6 +610,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 52, @@ -608,6 +628,7 @@ Object { 101, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -651,6 +672,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 58, @@ -668,6 +690,7 @@ Object { 107, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot index f91cf09faa9..ec228929e7f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction-object.src.js.shot @@ -27,6 +27,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -42,6 +43,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -59,6 +61,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -80,6 +83,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -97,11 +101,13 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -119,6 +125,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -140,6 +147,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -157,6 +165,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -165,6 +174,7 @@ Object { 22, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -217,6 +227,7 @@ Object { 33, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -234,6 +245,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot index 33a77097460..5ca5941cc03 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-destruction.src.js.shot @@ -27,8 +27,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -46,8 +48,10 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -65,6 +69,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -83,6 +88,7 @@ Object { 22, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -135,6 +141,7 @@ Object { 33, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -152,6 +159,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot index 7b7612be196..e274135285c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object-with-body.src.js.shot @@ -23,6 +23,7 @@ Object { "type": "BlockStatement", }, "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot index 8f2541eed9d..2c96724ca6f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-assigment.src.js.shot @@ -5,9 +5,11 @@ Object { "body": Array [ Object { "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -25,9 +27,11 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -45,6 +49,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,6 +67,7 @@ Object { 35, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -84,6 +90,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -101,6 +108,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -171,6 +179,7 @@ Object { 36, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -188,6 +197,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot index 80511d0c14b..58e34531661 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-bare-assigment.src.js.shot @@ -22,7 +22,9 @@ Object { "type": "EmptyStatement", }, "left": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -40,6 +42,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -76,6 +79,7 @@ Object { "value": 0, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -92,6 +96,7 @@ Object { 19, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -109,6 +114,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot index 81ab2687874..9ee132c790e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-const.src.js.shot @@ -5,9 +5,11 @@ Object { "body": Array [ Object { "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -25,9 +27,11 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -45,6 +49,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,6 +67,7 @@ Object { 32, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -84,6 +90,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -101,6 +108,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -153,6 +161,7 @@ Object { 33, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -170,6 +179,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot index 0658527f6c1..d9f49369727 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-milti-asigment.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,9 +44,11 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -63,6 +66,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -80,6 +84,7 @@ Object { 18, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -97,6 +102,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, @@ -150,6 +156,7 @@ Object { 25, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -167,6 +174,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot index ce1f54cbb99..19bad50a51c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-rest.src.js.shot @@ -23,6 +23,7 @@ Object { "type": "BlockStatement", }, "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -38,6 +39,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -55,6 +57,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -76,6 +79,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -93,10 +97,12 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -114,7 +120,9 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -131,6 +139,8 @@ Object { 25, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -138,6 +148,7 @@ Object { 27, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -154,6 +165,7 @@ Object { 41, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -171,6 +183,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot index ca754c88003..cd027ffe1b5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-with-var.src.js.shot @@ -5,9 +5,11 @@ Object { "body": Array [ Object { "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -25,9 +27,11 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -45,6 +49,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,6 +67,7 @@ Object { 30, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -84,6 +90,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -101,6 +108,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -153,6 +161,7 @@ Object { 31, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -170,6 +179,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForInStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot index 4d23383b5f7..74c75ca0a0d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-array.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +28,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 35, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -65,6 +69,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -82,6 +87,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot index dfdcdee469c..99ac29fb8ad 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction-object.src.js.shot @@ -28,6 +28,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -43,6 +44,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -60,6 +62,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -81,6 +84,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -98,11 +102,13 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -120,6 +126,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -141,6 +148,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -158,6 +166,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -166,6 +175,7 @@ Object { 22, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -218,6 +228,7 @@ Object { 33, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -235,6 +246,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot index cffdcf4fd51..2b4a1754bd5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-destruction.src.js.shot @@ -28,8 +28,10 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -47,8 +49,10 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -66,6 +70,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -84,6 +89,7 @@ Object { 22, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -136,6 +142,7 @@ Object { 33, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -153,6 +160,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot index cfba9aa7116..a5f1c5aeb05 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-object.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +28,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 35, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -65,6 +69,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -82,6 +87,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot index af03f933407..cbaf9bb3a10 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-function-initializer.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 62, @@ -26,9 +28,11 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 60, @@ -46,6 +50,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -63,6 +68,7 @@ Object { 63, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -85,6 +91,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -102,6 +109,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -196,6 +204,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -214,7 +223,9 @@ Object { 13, 43, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -266,6 +277,7 @@ Object { 64, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 51, @@ -283,6 +295,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot index bff6380388e..519f3a57053 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-rest.src.js.shot @@ -24,6 +24,7 @@ Object { "type": "BlockStatement", }, "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -39,6 +40,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -56,6 +58,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -77,6 +80,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -94,10 +98,12 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -115,7 +121,9 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -132,6 +140,8 @@ Object { 25, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -139,6 +149,7 @@ Object { 27, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -155,6 +166,7 @@ Object { 41, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -172,6 +184,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot index d8ef91ebde1..07b52f769da 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-braces.src.js.shot @@ -8,9 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -28,6 +30,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -45,6 +48,7 @@ Object { 38, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -101,6 +106,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -153,6 +159,7 @@ Object { 41, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -170,6 +177,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot index 7fbe4e26792..6f07f5aae40 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/for-of-with-var-and-no-braces.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +28,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 36, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -65,6 +69,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -82,6 +87,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -134,6 +140,7 @@ Object { 37, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -151,6 +158,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot index 61f0b69937f..a7da09419e4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-const-and-no-braces.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +28,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 38, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -65,6 +69,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -82,6 +87,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -134,6 +140,7 @@ Object { 39, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -151,6 +158,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot index 354f7594077..82a3ee19470 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/forOf/invalid-for-of-with-let-and-no-braces.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "await": false, "body": Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +28,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { 36, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -65,6 +69,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -82,6 +87,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -134,6 +140,7 @@ Object { 37, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -151,6 +158,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ForOfStatement", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot index 82137de1e1f..b4d0437e1ec 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/function/return-multiline-sequence.src.js.shot @@ -11,6 +11,7 @@ Object { "argument": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -28,8 +29,10 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -47,8 +50,10 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -66,6 +71,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -117,9 +123,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -137,6 +145,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -150,6 +159,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -167,8 +177,10 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -186,8 +198,10 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -205,13 +219,16 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 62, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot index c0651bb5924..c21961a3880 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/function/return-sequence.src.js.shot @@ -11,6 +11,7 @@ Object { "argument": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -28,8 +29,10 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -47,8 +50,10 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -66,6 +71,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -117,9 +123,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -137,6 +145,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -150,6 +159,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -167,8 +177,10 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -186,8 +198,10 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -205,13 +219,16 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 46, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot index a7d0185f031..d4e84ee7c6e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/anonymous-generator.src.js.shot @@ -4,13 +4,16 @@ exports[`javascript generators anonymous-generator.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -28,6 +31,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "delegate": false, "loc": Object { @@ -79,6 +83,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -97,7 +102,9 @@ Object { 1, 25, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot index a9ef4d042f2..b6be040201e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-function.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -43,6 +45,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,7 +62,9 @@ Object { 1, 27, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot index 957e087f5d7..3ed979807f5 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/async-generator-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript generators async-generator-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": true, "body": Object { @@ -54,6 +61,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -71,11 +79,13 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "argument": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -93,6 +103,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -110,6 +121,7 @@ Object { 56, ], "type": "CallExpression", + "typeParameters": undefined, }, "delegate": true, "loc": Object { @@ -180,6 +192,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -198,7 +211,9 @@ Object { 23, 63, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -218,7 +233,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -236,7 +254,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -252,7 +272,9 @@ Object { 65, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/double-yield.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/double-yield.src.js.shot index 14477902865..70f7e605cf6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/double-yield.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/double-yield.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript generators double-yield.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { "argument": Object { @@ -97,6 +99,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -115,7 +118,9 @@ Object { 1, 32, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot index 475a3212233..17e49d51c0a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/empty-generator-declaration.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +45,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,7 +62,9 @@ Object { 0, 16, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot index 5c4b95f5675..736526fa8d4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/generator-declaration.src.js.shot @@ -8,8 +8,10 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -27,6 +29,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "delegate": true, "loc": Object { @@ -78,9 +81,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -98,6 +103,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -114,7 +120,9 @@ Object { 0, 30, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot index b11103cf92a..158c5c87e33 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-delegation.src.js.shot @@ -4,13 +4,16 @@ exports[`javascript generators yield-delegation.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -28,6 +31,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "delegate": true, "loc": Object { @@ -79,6 +83,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -97,7 +102,9 @@ Object { 1, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot index d34d046822b..c0675208885 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-in-call.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript generators yield-without-value-in-call.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -32,6 +34,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -49,6 +52,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -66,6 +70,7 @@ Object { 25, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -100,6 +105,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -118,7 +124,9 @@ Object { 1, 28, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-no-semi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-no-semi.src.js.shot index 912093d1f07..ee157115e5c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-no-semi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value-no-semi.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript generators yield-without-value-no-semi.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": null, "delegate": false, @@ -61,6 +63,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -79,7 +82,9 @@ Object { 1, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value.src.js.shot index c3bd2e2edbb..4e7e917ea77 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/generators/yield-without-value.src.js.shot @@ -4,11 +4,13 @@ exports[`javascript generators yield-without-value.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": null, "delegate": false, @@ -61,6 +63,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -79,7 +82,9 @@ Object { 1, 24, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot index 4b4323ffa93..9fd7c11f50b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/globalReturn/return-identifier.src.js.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -22,6 +23,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/lowercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/lowercase.src.js.shot index 864fbdc1c6c..e91d302d0bc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/lowercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/lowercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript hexLiterals lowercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/uppercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/uppercase.src.js.shot index 4db16dc8984..360ccd1bfb4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/uppercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/hexLiterals/uppercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript hexLiterals uppercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot index 0fc2c52cc09..528b9d9652c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/importMeta/simple-import-meta.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript importMeta simple-import-meta.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -28,6 +29,7 @@ Object { }, }, "meta": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -45,8 +47,10 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -64,6 +68,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -73,6 +78,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -90,6 +96,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, diff --git a/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot index d8cf8bcc4ad..e341b8a49f3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/labels/label-break.src.js.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -114,6 +116,7 @@ Object { "type": "WhileStatement", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -131,6 +134,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot index c84e5925c50..94452ddccd2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/labels/label-continue.src.js.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -26,6 +27,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -114,6 +116,7 @@ Object { "type": "WhileStatement", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -131,6 +134,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot index d79ae7b3d05..05f6591d9f2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-delete.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -69,6 +70,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, @@ -80,8 +82,10 @@ Object { "type": "ImportDeclaration", }, Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -99,6 +103,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot index 4c25984270c..b679d5c3db1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-function.src.js.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "declaration": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -26,6 +27,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "exportKind": "value", "loc": Object { @@ -61,9 +63,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -81,6 +85,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,7 +102,9 @@ Object { 0, 41, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot index 39c73a2b346..7d16a340d5a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/error-strict.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -69,6 +70,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, @@ -83,9 +85,11 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -103,6 +107,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { @@ -118,6 +123,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -135,9 +141,11 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -155,6 +163,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 44, @@ -178,6 +187,7 @@ Object { 61, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -223,6 +233,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -240,6 +251,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 28, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot index cd81496b737..a8e1ef5fe2f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-async-named-function.src.js.shot @@ -25,9 +25,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -45,6 +47,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -61,7 +64,9 @@ Object { 7, 30, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot index 49b418850d4..0a95bfa68eb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-const.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -27,6 +28,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot index 9ae6d542b59..db890c144b8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-async-named-function.src.js.shot @@ -24,9 +24,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -44,6 +46,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,7 +63,9 @@ Object { 15, 38, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-class.src.js.shot index 562d3e967bc..b5981d8975f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-class.src.js.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -39,7 +43,9 @@ Object { 25, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-function.src.js.shot index 426100f69bf..45714a2fc63 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-function.src.js.shot @@ -24,6 +24,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -42,7 +43,9 @@ Object { 15, 29, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot index d0256db78b5..023f6a95744 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-class.src.js.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -41,7 +45,9 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -57,7 +63,9 @@ Object { 30, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot index 564e61fb56b..2c546347ec2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-named-function.src.js.shot @@ -24,9 +24,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -44,6 +46,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,7 +63,9 @@ Object { 15, 32, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot index 93d1b47bac1..096ea12c532 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-object.src.js.shot @@ -19,6 +19,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -36,6 +37,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot index 92d3be8dbf3..b740c7a1e51 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-default-value.src.js.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -22,6 +23,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot index 7feb7957972..50e668ba1b9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-default.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -61,6 +62,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -90,6 +93,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot index c36f3a73ca4..cb86e42ad9e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-default.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -61,6 +62,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -90,6 +93,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot index beee78f6164..b6ea0ea5fd1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifier.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -61,6 +62,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -90,6 +93,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot index c6577def2e8..000d3159b7c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-named-as-specifiers.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -61,6 +62,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -90,6 +93,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -100,6 +104,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -117,6 +122,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -129,6 +135,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -146,6 +153,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot index e22114a4712..916b81714ee 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifier.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -61,6 +62,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -90,6 +93,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot index a35078e6fbc..3bf874bb4b0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-from-specifiers.src.js.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -61,6 +62,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -90,6 +93,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -100,6 +104,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -117,6 +122,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -129,6 +135,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -146,6 +153,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot index a37358b9e2a..1dc5377d498 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-function.src.js.shot @@ -25,9 +25,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -45,6 +47,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -61,7 +64,9 @@ Object { 7, 25, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot index f40cc78459a..a4710809ff3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-let.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +28,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot index 3247ca46814..475f0cc95b7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-default.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -43,6 +44,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot index 1dc22459635..0c1dc2f7845 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifier.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -43,6 +44,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot index bb7bc7f6447..0eafa54619c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-as-specifiers.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -43,6 +44,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -82,6 +86,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -99,6 +104,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -111,6 +117,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -128,6 +135,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 24, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot index bb0032c31c7..ac9079f7fb6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-class.src.js.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -24,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -42,7 +46,9 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -58,7 +64,9 @@ Object { 22, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot index 405d73a19a8..c8e5a2f8046 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifier.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +44,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot index 37d0e5d54ea..eaef4de89e8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers-comma.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +44,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -82,6 +86,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -99,6 +104,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -111,6 +117,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -128,6 +135,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot index 8e66e0c49e1..d46f4a043c9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-named-specifiers.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +44,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +75,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -82,6 +86,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -99,6 +104,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -111,6 +117,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -128,6 +135,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot index 8d6c3c82083..5567c75a632 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-anonymous-function.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +28,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -48,6 +50,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -66,7 +69,9 @@ Object { 17, 31, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot index a4122a2ed7d..d9df301c497 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var-number.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +28,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot index 2ea17e69b90..aea42111a45 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/export-var.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +28,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot index c6608954c28..6cb4421767f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-named-specifiers.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -69,6 +70,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, @@ -79,6 +81,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -96,6 +99,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -108,6 +112,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -125,6 +130,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot index 3c9aa5fb0f1..0772f12cae1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-and-namespace-specifiers.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -69,6 +70,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, @@ -88,6 +90,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -105,6 +108,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 12, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot index e29c1cf2fa3..9ddd682c0ef 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default-as.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -60,6 +61,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -89,6 +92,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot index 52124c8f0f6..730de4c6433 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-default.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -69,6 +70,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot index f0b17d114fa..108e2b959ce 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-jquery.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -69,6 +70,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot index 171d714e57e..8ddcdd19ccc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifier.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +61,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -89,6 +92,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot index abf4f59a225..ce8ce411d48 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-as-specifiers.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +61,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -89,6 +92,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -99,6 +103,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -116,6 +121,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,6 +134,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -145,6 +152,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 20, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot index ce40702a5c2..a0964248ed9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifier.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +61,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -89,6 +92,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot index c9ee30091ca..9d3eea95559 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers-comma.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +61,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -89,6 +92,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -99,6 +103,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -116,6 +121,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,6 +134,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -145,6 +152,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot index e11a1b1f497..a9fc1aaa2ac 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-named-specifiers.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +61,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -89,6 +92,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, @@ -99,6 +103,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -116,6 +121,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,6 +134,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -145,6 +152,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 13, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot index 76caa3ff44f..3885bff0653 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-namespace-specifier.src.js.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -69,6 +70,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot index 2a1586fc0c1..6b390b59d10 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/import-null-as-nil.src.js.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -60,6 +61,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -89,6 +92,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 9, diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot index 809acfa3e21..96d37663dc8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-await.src.js.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -27,6 +28,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-class.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-class.src.js.shot index ebb4c9daf5f..2f7c0444039 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-class.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-class.src.js.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -39,7 +43,9 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot index 06ea492aa45..973ec845d90 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/modules/invalid-export-named-default.src.js.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -43,6 +44,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -72,6 +75,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot index 89f0d6ee66b..4967cdc601c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-new-target.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -38,6 +40,7 @@ Object { }, }, "meta": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -55,8 +58,10 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -74,6 +79,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 8, diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot index f44af188f1e..ebe6c8183ee 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/invalid-unknown-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,12 +26,14 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { }, }, "meta": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -60,8 +64,10 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -79,6 +85,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 21, @@ -119,6 +126,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -137,7 +145,9 @@ Object { 8, 44, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot index f924d82513d..fa677626c02 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/newTarget/simple-new-target.src.js.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -29,6 +30,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -42,6 +44,7 @@ Object { }, }, "meta": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -59,8 +62,10 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -78,6 +83,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 27, @@ -137,9 +143,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -157,6 +165,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -173,7 +182,9 @@ Object { 0, 40, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot index 7a24fb9ea4e..61801e02fb7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteral/object-literal-in-lhs.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteral object-literal-in-lhs.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -39,6 +40,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -56,6 +58,7 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,9 +76,11 @@ Object { 6, ], "type": "CallExpression", + "typeParameters": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -93,6 +98,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -116,6 +122,7 @@ Object { 14, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -133,6 +140,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot index 37010dbeab6..c47f0ad24b4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-addition-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -116,6 +118,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -133,6 +136,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot index bb749b17b05..54c3293f26f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-and-identifier.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteralComputedProperties computed-and-identifier.src Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -36,6 +38,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -79,6 +82,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -96,6 +100,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot index 6bb9d2607a5..0d6c9eeb70c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-getter-and-setter.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteralComputedProperties computed-getter-and-setter.s Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -36,6 +38,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -76,6 +79,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -94,12 +98,15 @@ Object { 9, 14, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -117,6 +124,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -157,6 +165,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -172,6 +181,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -189,13 +199,16 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 23, 29, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot index 954d102a15e..9a5d4eb3996 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-string-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -79,6 +81,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -96,6 +99,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot index 7998c4731d7..7c627afaf31 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/computed-variable-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -58,6 +61,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -79,6 +83,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -96,6 +101,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot index 79591d874d7..53c49f1bc19 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-addition.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteralComputedProperties standalone-expression-with-a Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot index 3ff6a21e965..6581e09d016 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression-with-method.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteralComputedProperties standalone-expression-with-m Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -36,6 +38,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -76,6 +79,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -94,7 +98,9 @@ Object { 7, 20, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot index 71a5db4bebe..ee112a09ec2 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralComputedProperties/standalone-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript objectLiteralComputedProperties standalone-expression.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -19,6 +20,7 @@ Object { Object { "computed": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -36,6 +38,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot index 8166962ef44..de9baf959f3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-property.src.js.shot @@ -45,6 +45,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -62,6 +63,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -121,6 +123,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -138,6 +141,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -154,6 +158,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -171,6 +176,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -192,6 +198,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -209,11 +216,13 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -231,6 +240,7 @@ Object { 71, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -252,6 +262,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -269,6 +280,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot index 9988a956392..d9c3b6ab645 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/error-proto-string-property.src.js.shot @@ -45,6 +45,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -62,6 +63,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -121,6 +123,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -138,6 +141,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -192,6 +196,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -209,6 +214,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { @@ -252,6 +258,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -269,6 +276,7 @@ Object { 82, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot index f70184bbee0..920a5e9de72 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-properties.src.js.shot @@ -45,6 +45,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -62,6 +63,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -78,6 +80,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -95,6 +98,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -138,6 +142,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -155,6 +160,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot index 9c6290ff6c5..317b960150f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralDuplicateProperties/strict-duplicate-string-properties.src.js.shot @@ -45,6 +45,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -62,6 +63,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot index 7dc71c33ff0..ac8abefcf16 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/method-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -58,6 +61,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -84,6 +88,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -101,6 +106,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -135,6 +141,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -153,7 +160,9 @@ Object { 17, 47, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot index 4b428ae0871..b51e058983a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-get.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript objectLiteralShorthandMethods simple-method-named-get.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -71,6 +75,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -111,6 +116,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -129,7 +135,9 @@ Object { 13, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot index 778296a1bd8..acd890e7ed1 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-named-set.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript objectLiteralShorthandMethods simple-method-named-set.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -71,6 +75,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -111,6 +116,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -129,7 +135,9 @@ Object { 13, 23, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot index 14bbb832352..91e5ad3aece 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-argument.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript objectLiteralShorthandMethods simple-method-with-argument.sr Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -71,6 +75,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -111,6 +116,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -126,6 +132,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -143,13 +150,16 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 16, 31, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot index fb269c840eb..8f207cc58c7 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method-with-string-name.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript objectLiteralShorthandMethods simple-method-with-string-name Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -111,6 +114,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -129,7 +133,9 @@ Object { 18, 28, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot index 8edc1af0739..c56f1df59d0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/simple-method.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript objectLiteralShorthandMethods simple-method.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +57,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -71,6 +75,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -111,6 +116,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -129,7 +135,9 @@ Object { 16, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot index 5b9bf27f70b..04671139283 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandMethods/string-name-method-property.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -84,6 +86,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -101,6 +104,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -135,6 +139,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -153,7 +158,9 @@ Object { 19, 49, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot index dd255cfc168..7c826870297 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/objectLiteralShorthandProperties/shorthand-properties.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -46,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -63,6 +66,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -84,6 +88,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -101,6 +106,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": null, "loc": Object { @@ -143,6 +149,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -160,6 +167,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -176,6 +184,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -193,6 +202,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -214,6 +224,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -231,11 +242,13 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -253,6 +266,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -274,6 +288,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -291,11 +306,13 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -313,6 +330,7 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -334,6 +352,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -351,6 +370,7 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/legacy.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/legacy.src.js.shot index d29cdf5a315..d9a01d35b84 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/legacy.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/legacy.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript octalLiterals legacy.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/lowercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/lowercase.src.js.shot index 939439e4300..13e2d73d019 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/lowercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/lowercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript octalLiterals lowercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/strict-uppercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/strict-uppercase.src.js.shot index ecbdcbe0e2d..100aec417a9 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/strict-uppercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/strict-uppercase.src.js.shot @@ -41,6 +41,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/uppercase.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/uppercase.src.js.shot index 7bf9a073c99..add712ad5ca 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/uppercase.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/octalLiterals/uppercase.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript octalLiterals uppercase.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot index 19abdedeca5..3a74ee35b2c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regex/regexp-simple.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot index 2eb2c1fb8a1..2e40921f14f 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-extended-escape.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot index 9f1a9b61095..947b615da57 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-invalid-extended-escape.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot index d4e6cdedd7e..981db5e3138 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexUFlag/regex-u-simple.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot index 00ae239dfd3..b08d9329097 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/regexYFlag/regexp-y-simple.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot index ac69b7afe7e..39322db7325 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/basic-rest.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -73,9 +77,11 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -93,7 +99,9 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -110,13 +118,17 @@ Object { 18, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 0, 22, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot index c14e5c47304..2901e45bc45 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-constructor.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript restParams class-constructor.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -98,7 +107,9 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -115,13 +126,17 @@ Object { 32, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 25, 41, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -141,7 +156,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -159,7 +177,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -175,7 +195,9 @@ Object { 43, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot index eaf6b2656f9..249307c64cd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/class-method.src.js.shot @@ -4,11 +4,15 @@ exports[`javascript restParams class-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -98,7 +107,9 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -115,13 +126,17 @@ Object { 24, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 17, 33, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -141,7 +156,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -159,7 +177,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -175,7 +195,9 @@ Object { 35, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot index 1942a104355..6e86567b8cd 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-no-default.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "async": false, "body": undefined, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -26,6 +28,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,6 +42,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -56,9 +60,11 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -76,7 +82,9 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -93,13 +101,17 @@ Object { 22, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 0, 24, ], + "returnType": undefined, "type": "TSDeclareFunction", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot index cacc3733633..0c78d497d6e 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/error-not-last.src.js.shot @@ -6,9 +6,11 @@ Object { Object { "async": false, "body": undefined, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -26,6 +28,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,6 +42,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -56,9 +60,11 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -76,7 +82,9 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -93,8 +101,11 @@ Object { 18, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -112,13 +123,16 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 23, ], + "returnType": undefined, "type": "TSDeclareFunction", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot index d1afabbf6ad..f261603beb4 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression-multi.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -46,6 +48,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -61,6 +64,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -78,9 +82,11 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -98,7 +104,9 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -115,13 +123,17 @@ Object { 24, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 8, 28, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot index 97fc306e40a..1a51980f118 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/func-expression.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -46,6 +48,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -62,6 +65,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -79,7 +83,9 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -96,13 +102,17 @@ Object { 22, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 8, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot index 68c362ed8cc..ba57015fedb 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/invalid-rest-param.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -72,6 +76,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -89,6 +94,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -110,6 +116,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -127,6 +134,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -135,7 +143,9 @@ Object { 19, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -152,13 +162,17 @@ Object { 19, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 0, 22, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot index 7b3c243e587..6b61e28e0f0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/restParams/single-rest.src.js.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -74,7 +78,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -91,13 +97,17 @@ Object { 15, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ 0, 19, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot index 89cf21bb6f3..1dab848b1c8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float-negative.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "argument": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot index e4298a8054a..321bd41c275 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-float.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot index 90cf998ed03..d3158faf630 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-null.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot index 7d3eb5dee52..91d536ffc5c 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number-negative.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "argument": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot index 52a0ce3cf19..a7d510f263b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-number.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot index 9017cdeff3c..9571bcdd0a8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-string.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot index 5e230964bb4..0c399b54fe0 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/simple-literals/literal-undefined.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,8 +26,10 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -44,6 +47,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot index a597ab59dc2..253a15279e6 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/complex-spread.src.js.shot @@ -4,8 +4,10 @@ exports[`javascript spread complex-spread.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 102, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -38,6 +41,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,6 +63,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -74,6 +79,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -91,6 +97,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -112,6 +119,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -129,10 +137,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -150,7 +160,9 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -167,6 +179,8 @@ Object { 20, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -174,11 +188,13 @@ Object { 22, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -196,6 +212,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -217,6 +234,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -234,11 +252,13 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -256,6 +276,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -277,6 +298,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 92, @@ -292,6 +314,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -309,6 +332,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -330,8 +354,10 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 57, @@ -346,6 +372,7 @@ Object { "properties": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -363,7 +390,9 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -380,6 +409,8 @@ Object { 55, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -387,9 +418,11 @@ Object { 57, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 63, @@ -407,7 +440,9 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 63, @@ -424,6 +459,8 @@ Object { 63, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "loc": Object { @@ -442,11 +479,13 @@ Object { 64, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 67, @@ -464,6 +503,7 @@ Object { 67, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -485,6 +525,7 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 80, @@ -500,6 +541,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 72, @@ -517,6 +559,7 @@ Object { 72, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -538,6 +581,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 72, @@ -555,10 +599,12 @@ Object { 72, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 78, @@ -576,7 +622,9 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 78, @@ -593,6 +641,8 @@ Object { 78, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -600,10 +650,12 @@ Object { 80, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 90, @@ -621,7 +673,9 @@ Object { 90, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 90, @@ -638,6 +692,8 @@ Object { 90, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -645,10 +701,12 @@ Object { 92, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 101, @@ -666,7 +724,9 @@ Object { 101, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 101, @@ -683,6 +743,8 @@ Object { 101, ], "type": "RestElement", + "typeAnnotation": undefined, + "value": undefined, }, ], "range": Array [ @@ -690,6 +752,7 @@ Object { 102, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -707,6 +770,7 @@ Object { 112, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 112, @@ -724,6 +788,7 @@ Object { 112, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot index 1cae9645245..f0166dcd049 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/multi-function-call.src.js.shot @@ -4,9 +4,11 @@ exports[`javascript spread multi-function-call.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -24,9 +26,11 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -44,6 +48,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -63,6 +68,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -80,6 +86,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,6 +104,7 @@ Object { 12, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot index ce88eb9392f..e8b0a543bbf 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/not-final-param.src.js.shot @@ -4,10 +4,12 @@ exports[`javascript spread not-final-param.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +27,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -43,6 +46,7 @@ Object { "type": "SpreadElement", }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -60,9 +64,11 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -80,6 +86,7 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -97,6 +104,7 @@ Object { 13, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot index f5910e8d5b6..5d200dab46b 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/spread/simple-function-call.src.js.shot @@ -4,10 +4,12 @@ exports[`javascript spread simple-function-call.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -25,6 +27,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -44,6 +47,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -61,6 +65,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,6 +83,7 @@ Object { 9, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot index 2a3c38c133c..1dca3524497 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/deeply-nested.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript templateStrings deeply-nested.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -228,6 +229,7 @@ Object { 44, ], "tag": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -245,6 +247,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TaggedTemplateExpression", "typeParameters": undefined, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/error-octal-literal.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/error-octal-literal.src.js.shot index 1108acb90faf9357463b853a8e232cf495fc84bd..c0bdaa76c244c0949cd2943710f3ce23eccab3b9 100644 GIT binary patch delta 33 ocmeAbS}inTzF10TQEGBYW?8C|l|pG=N@`kWUTTWY#_44o0Mz{qfdBvi delta 10 RcmZ22)GIV${>Hs|8~_-a1aJTV diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot index e8755468da4..a381e89f5c3 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/escape-characters.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -25,6 +26,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot index dec2c4f697e..4743997f153 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/expressions.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,6 +87,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -102,6 +105,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -158,9 +162,11 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -178,9 +184,11 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -198,6 +206,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/multi-line-template-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/multi-line-template-string.src.js.shot index 4f3026c6894..9a30e51cc75 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/multi-line-template-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/multi-line-template-string.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript templateStrings multi-line-template-string.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expressions": Array [], "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/simple-template-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/simple-template-string.src.js.shot index e795938a5fc..a1bda1978fc 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/simple-template-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/simple-template-string.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript templateStrings simple-template-string.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expressions": Array [], "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot index 8169e0e25d7..ce91f2b68e8 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/single-dollar-sign.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -25,6 +26,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expressions": Array [], diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot index c016d47bce8..8e394cf8b1a 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-no-placeholders.src.js.shot @@ -4,6 +4,7 @@ exports[`javascript templateStrings tagged-no-placeholders.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -62,6 +63,7 @@ Object { 8, ], "tag": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -79,6 +81,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TaggedTemplateExpression", "typeParameters": undefined, diff --git a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot index 2325ff65eb0..4e7c500f305 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/templateStrings/tagged-template-string.src.js.shot @@ -8,9 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -28,6 +30,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { @@ -43,6 +46,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -60,9 +64,11 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -80,6 +86,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 18, @@ -103,6 +110,7 @@ Object { 40, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -137,9 +145,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -157,6 +167,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -173,9 +184,12 @@ Object { 0, 43, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -190,6 +204,7 @@ Object { "quasi": Object { "expressions": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -207,8 +222,10 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -226,6 +243,7 @@ Object { 72, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -317,6 +335,7 @@ Object { 75, ], "tag": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -334,6 +353,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TaggedTemplateExpression", "typeParameters": undefined, diff --git a/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot b/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot index 81b0033b752..6fa4ff6603d 100644 --- a/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/javascript/unicodeCodePointEscapes/ignored.src.js.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,6 +87,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -102,6 +105,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -162,6 +166,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -179,6 +184,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -239,6 +245,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -256,6 +263,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -272,6 +280,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -289,6 +298,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -332,6 +342,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -349,6 +360,7 @@ Object { 81, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -389,6 +401,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -404,7 +417,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -422,6 +437,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -458,18 +474,22 @@ Object { "value": "�", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 81, 103, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -487,6 +507,7 @@ Object { 108, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -542,7 +563,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -560,6 +583,7 @@ Object { 112, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -596,13 +620,16 @@ Object { "value": "�", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 110, 135, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -648,6 +675,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -683,6 +711,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -700,9 +729,11 @@ Object { 141, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -720,6 +751,7 @@ Object { 143, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 140, @@ -743,6 +775,7 @@ Object { 151, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/self-closing-tag-inside-tag.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/self-closing-tag-inside-tag.src.js.shot index 2e630050997..5abb5af0115 100644 --- a/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/self-closing-tag-inside-tag.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/self-closing-tag-inside-tag.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx-useJSXTextNode self-closing-tag-inside-tag.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/test-content.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/test-content.src.js.shot index 326c3194f95..6f5a8d10424 100644 --- a/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/test-content.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx-useJSXTextNode/test-content.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx-useJSXTextNode test-content.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot index c329025f5be..241978d18f6 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/attributes.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx attributes.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { @@ -163,6 +164,7 @@ Object { "type": "JSXAttribute", "value": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -180,6 +182,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -200,6 +203,7 @@ Object { }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -217,6 +221,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/element-keyword-name.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/element-keyword-name.src.js.shot index a1526ac3de6..4df545ff5a6 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/element-keyword-name.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/element-keyword-name.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx element-keyword-name.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/embedded-comment.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/embedded-comment.src.js.shot index 8d98282032a..da0918624ae 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/embedded-comment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/embedded-comment.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx embedded-comment.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot index f768523395f..ee0ecc91d1f 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/embedded-conditional.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx embedded-conditional.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -184,6 +185,7 @@ Object { 23, ], "test": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,6 +203,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "ConditionalExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/jsx/embedded-invalid-js-identifier.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/embedded-invalid-js-identifier.src.js.shot index e67cf324a95..fc3cd5e29f8 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/embedded-invalid-js-identifier.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/embedded-invalid-js-identifier.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx embedded-invalid-js-identifier.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/empty-placeholder.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/empty-placeholder.src.js.shot index d3b5a05c217..539fa714aa9 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/empty-placeholder.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/empty-placeholder.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx empty-placeholder.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-ignored.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-ignored.src.js.shot index 3db51530669..fb1976cfcff 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-ignored.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-ignored.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx escape-patterns-ignored.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-unknown.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-unknown.src.js.shot index 141520e983f..aeeb7caeb03 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-unknown.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-unknown.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx escape-patterns-unknown.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -133,6 +134,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -262,6 +264,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -391,6 +394,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [ Object { @@ -519,6 +523,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [ Object { @@ -647,6 +652,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-valid.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-valid.src.js.shot index 1856270c740..cc098930c42 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-valid.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/escape-patterns-valid.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx escape-patterns-valid.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/escape-patters-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/escape-patters-multi.src.js.shot index cc3c38b714c..cd171955f96 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/escape-patters-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/escape-patters-multi.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx escape-patters-multi.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/invalid-namespace-value-with-dots.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/invalid-namespace-value-with-dots.src.js.shot index 3d11bc184cc..fd09316ce46 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/invalid-namespace-value-with-dots.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/invalid-namespace-value-with-dots.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx invalid-namespace-value-with-dots.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/japanese-characters.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/japanese-characters.src.js.shot index 862711b68f6..fac1b442189 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/japanese-characters.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/japanese-characters.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx japanese-characters.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot index 01c6ff1e2b5..9a015370413 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/less-than-operator.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx less-than-operator.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "children": Array [], @@ -78,6 +79,7 @@ Object { 13, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -95,6 +97,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/jsx/member-expression-this.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/member-expression-this.src.js.shot index 588debdd0d6..3a7e8f2e723 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/member-expression-this.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/member-expression-this.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx member-expression-this.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -148,6 +149,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/jsx/member-expression.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/member-expression.src.js.shot index 969318a5bb3..596329f458b 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/member-expression.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/member-expression.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx member-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/multiple-blank-spaces.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/multiple-blank-spaces.src.js.shot index 17fa0430b73..d7b71e4c67e 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/multiple-blank-spaces.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/multiple-blank-spaces.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx multiple-blank-spaces.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot index 46d67089584..7e0f5295c12 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/namespace-this-name.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx namespace-this-name.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot index 69b9432ed29..9b4e0acdb68 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/namespaced-attribute-and-value-inserted.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx namespaced-attribute-and-value-inserted.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { @@ -27,6 +28,7 @@ Object { }, Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -44,6 +46,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/namespaced-name-and-attribute.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/namespaced-name-and-attribute.src.js.shot index b27c937e5a0..9b209cf1633 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/namespaced-name-and-attribute.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/namespaced-name-and-attribute.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx namespaced-name-and-attribute.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag-inside-tag.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag-inside-tag.src.js.shot index cfb82c9a414..921f92dc5b7 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag-inside-tag.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag-inside-tag.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx self-closing-tag-inside-tag.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag.src.js.shot index 9e5ea942a82..69decc59f4a 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/self-closing-tag.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx self-closing-tag.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment-with-child.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment-with-child.src.js.shot index 96a50d1928e..83610f13eb6 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment-with-child.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment-with-child.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx shorthand-fragment-with-child.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment.src.js.shot index 4d75ad537f8..40eb0c61e8d 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/shorthand-fragment.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx shorthand-fragment.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingFragment": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/spread-child.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/spread-child.src.js.shot index 4227ac2e551..9eca921ea7d 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/spread-child.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/spread-child.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx spread-child.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot index a7808cd75cb..a2d98db8d7d 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attribute-and-regular-attribute.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx spread-operator-attribute-and-regular-attribute.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -21,6 +22,7 @@ Object { "attributes": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -38,6 +40,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot index 536a906cca8..9f06bd404b6 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/spread-operator-attributes.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx spread-operator-attributes.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, @@ -21,6 +22,7 @@ Object { "attributes": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -38,6 +40,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-dots.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-dots.src.js.shot index fbd0fba223a..e7049389e4b 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-dots.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-dots.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx tag-names-with-dots.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots-multi.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots-multi.src.js.shot index 7ef41034fc5..797219d3f6e 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots-multi.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots-multi.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx tag-names-with-multi-dots-multi.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots.src.js.shot index 84eb1e17b29..8aa9f0436a7 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/tag-names-with-multi-dots.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx tag-names-with-multi-dots.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/test-content.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/test-content.src.js.shot index 4df5e2ed08b..4e1a62785cc 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/test-content.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/test-content.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx test-content.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [ Object { diff --git a/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot b/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot index 609441f6fcb..d5bb5fd7fc6 100644 --- a/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot +++ b/packages/typescript-estree/tests/snapshots/jsx/trailing-spread-operator-attribute.src.js.shot @@ -4,6 +4,7 @@ exports[`jsx trailing-spread-operator-attribute.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { @@ -163,6 +164,7 @@ Object { }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -180,6 +182,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-element.src.tsx.shot b/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-element.src.tsx.shot index 8cd3cfa65cc..acc324cfad1 100644 --- a/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-element.src.tsx.shot +++ b/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-element.src.tsx.shot @@ -4,6 +4,7 @@ exports[`tsx generic-jsx-element.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": null, diff --git a/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-opening-element.src.tsx.shot b/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-opening-element.src.tsx.shot index d516de71c1c..d38d0c85cd3 100644 --- a/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-opening-element.src.tsx.shot +++ b/packages/typescript-estree/tests/snapshots/tsx/generic-jsx-opening-element.src.tsx.shot @@ -4,6 +4,7 @@ exports[`tsx generic-jsx-opening-element.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "children": Array [], "closingElement": Object { diff --git a/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot b/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot index cf00b9e63c4..ba034cff116 100644 --- a/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot +++ b/packages/typescript-estree/tests/snapshots/tsx/react-typed-props.src.tsx.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -69,6 +70,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, @@ -82,6 +84,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -99,6 +102,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,10 +132,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -149,6 +155,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -210,6 +217,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, Object { "declaration": Object { @@ -254,6 +262,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -271,9 +280,11 @@ Object { 141, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -291,6 +302,7 @@ Object { 147, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 136, @@ -458,9 +470,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -478,6 +492,7 @@ Object { 92, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -491,6 +506,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -541,6 +557,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -558,6 +575,7 @@ Object { 105, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -568,7 +586,9 @@ Object { 80, 164, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot index 083d65738e7..5ee9949c8b7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameter-whitespace-loc.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 0, 24, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -87,6 +91,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -104,6 +109,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot index 4b362c514b9..370cfc2ff60 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/babylon-convergence/type-parameters.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 0, 42, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -119,6 +123,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -136,6 +141,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot index 3b4990218d9..c859e255d4b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-constructor.src.ts.shot @@ -10,8 +10,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -29,6 +32,7 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -41,6 +45,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 43, @@ -48,9 +53,11 @@ Object { ], "static": false, "type": "TSAbstractMethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -69,7 +76,9 @@ Object { 63, 66, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -89,7 +98,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -107,7 +119,9 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -123,7 +137,9 @@ Object { 68, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot index 5a65e32e6c9..e800d9256e1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-method.src.ts.shot @@ -10,8 +10,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -29,6 +32,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -41,6 +45,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 43, @@ -48,9 +53,11 @@ Object { ], "static": false, "type": "TSAbstractMethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -102,6 +109,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -119,6 +127,7 @@ Object { 75, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -159,6 +168,7 @@ Object { }, }, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -178,7 +188,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -196,7 +209,9 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -212,7 +227,9 @@ Object { 86, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot index cf6f30c65fc..e9b5b3aaf8d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-properties.src.ts.shot @@ -8,9 +8,13 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -28,6 +32,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,20 +44,26 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 25, 38, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "TSAbstractPropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -70,6 +81,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -81,12 +93,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 43, 64, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "TSAbstractPropertyDefinition", "typeAnnotation": Object { @@ -142,7 +155,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -160,7 +176,9 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -176,7 +194,9 @@ Object { 66, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot index b25ca84cbf6..60776d29fa3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-readonly-property.src.ts.shot @@ -11,7 +11,10 @@ Object { "accessibility": "public", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -29,6 +32,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +44,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 23, @@ -101,7 +106,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -119,7 +127,9 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -135,7 +145,9 @@ Object { 62, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot index ef4615ef0c4..503adfa42c7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-abstract-static-constructor.src.ts.shot @@ -10,8 +10,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -29,6 +32,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -41,6 +45,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 41, @@ -48,9 +53,11 @@ Object { ], "static": true, "type": "TSAbstractMethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -69,7 +76,9 @@ Object { 68, 71, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -89,7 +98,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -107,7 +119,9 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -123,7 +137,9 @@ Object { 73, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot index 4e0184e5b6c..fa5364f6d5c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-declare-properties.src.ts.shot @@ -8,9 +8,13 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -28,6 +32,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 37, 59, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -84,9 +90,13 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -104,6 +114,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,12 +126,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 62, 93, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "TSAbstractPropertyDefinition", "typeAnnotation": Object { @@ -163,7 +175,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -181,6 +196,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -192,12 +208,13 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 96, 134, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "TSAbstractPropertyDefinition", "typeAnnotation": Object { @@ -237,9 +254,13 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -257,6 +278,7 @@ Object { 168, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -268,6 +290,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 137, @@ -316,7 +339,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -334,6 +360,7 @@ Object { 218, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -345,6 +372,7 @@ Object { "line": 6, }, }, + "optional": false, "override": false, "range": Array [ 180, @@ -406,7 +434,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -424,7 +455,9 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -440,7 +473,9 @@ Object { 229, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot index 4782822e6a8..2bc82c310bb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-optional-method.src.ts.shot @@ -10,8 +10,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -29,6 +32,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -49,9 +53,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -103,6 +109,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -120,6 +127,7 @@ Object { 67, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -160,6 +168,7 @@ Object { }, }, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -179,7 +188,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -197,7 +209,9 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -213,7 +227,9 @@ Object { 78, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot index ce189283162..2bedfb7ac5f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-method.src.ts.shot @@ -8,8 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -27,6 +30,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -39,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": true, "range": Array [ 62, @@ -46,9 +51,11 @@ Object { ], "static": false, "type": "TSAbstractMethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -67,7 +74,9 @@ Object { 84, 87, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -87,7 +96,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -105,7 +117,9 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -121,6 +135,7 @@ Object { 89, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 57, @@ -138,8 +153,11 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot index 30c6f0b0471..1b092c20049 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-class-with-override-property.src.ts.shot @@ -8,9 +8,13 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -28,6 +32,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,14 +44,16 @@ Object { "line": 2, }, }, + "optional": false, "override": true, "range": Array [ 62, 88, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "TSAbstractPropertyDefinition", + "typeAnnotation": undefined, "value": null, }, ], @@ -66,7 +73,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -84,7 +94,9 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -100,6 +112,7 @@ Object { 90, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 57, @@ -117,8 +130,11 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot index f50b4fa027d..ead501da961 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/abstract-interface.src.ts.shot @@ -25,7 +25,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -43,6 +45,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 31, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, "exportKind": "type", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot index b2c6e64ff21..8d450898f1b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion-arrow-function.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -25,6 +26,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -33,6 +35,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -50,6 +53,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -99,6 +103,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -116,13 +121,16 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 22, 42, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot index d549586e606..1629da85325 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/angle-bracket-type-assertion.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +26,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot index 5505a41e561..e13f20e8452 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-optional-parameter.src.ts.shot @@ -4,12 +4,14 @@ exports[`typescript basics arrow-function-with-optional-parameter.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { "async": false, "body": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -79,6 +82,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -96,13 +100,16 @@ Object { 4, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 1, 14, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -120,6 +127,7 @@ Object { 17, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot index ef9502cfedf..d184debdce5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/arrow-function-with-type-parameters.src.ts.shot @@ -4,12 +4,14 @@ exports[`typescript basics arrow-function-with-type-parameters.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "async": false, "body": Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -27,6 +29,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -76,6 +79,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -126,6 +130,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -143,6 +148,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -186,6 +192,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -203,6 +210,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -235,6 +243,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -252,6 +261,7 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot index 09172d2cafc..028c4f3ca9e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-expression.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics async-function-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -26,9 +27,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -46,6 +49,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,7 +66,9 @@ Object { 1, 26, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -80,6 +86,7 @@ Object { 29, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot index c0ece091513..ad8b2ec9dee 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/async-function-with-var-declaration.src.ts.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -29,6 +30,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -89,6 +91,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -106,6 +109,7 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -166,6 +170,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -183,6 +188,7 @@ Object { 82, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -255,9 +261,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -275,6 +283,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -291,7 +300,9 @@ Object { 0, 96, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot index 63a393656c9..72c8450e1e1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/await-without-async-function.src.ts.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -29,11 +30,13 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "argument": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -51,6 +54,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -68,6 +72,7 @@ Object { 42, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -134,6 +139,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -151,9 +157,11 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -171,6 +179,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 53, @@ -211,9 +220,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -231,6 +242,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -247,7 +259,9 @@ Object { 0, 63, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot index 04afe3be309..9f15fc12159 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures-with-generics.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,6 +66,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -183,6 +186,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -200,6 +204,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -229,6 +234,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -348,6 +354,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -365,6 +372,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -388,6 +396,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot index 207df489847..5d82d07709b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/call-signatures.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -64,6 +66,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -156,6 +159,7 @@ Object { }, }, "type": "TSCallSignatureDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { @@ -170,6 +174,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -262,6 +267,7 @@ Object { }, }, "type": "TSConstructSignatureDeclaration", + "typeParameters": undefined, }, ], "range": Array [ @@ -270,6 +276,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot index d7a6f8c1c5c..831a51bb958 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-expression.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript basics cast-as-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -24,6 +26,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +44,7 @@ Object { 5, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -58,6 +62,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot index 9a967b5f397..239d6837284 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi-assign.src.ts.shot @@ -4,10 +4,12 @@ exports[`typescript basics cast-as-multi-assign.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "expression": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -25,6 +27,7 @@ Object { 2, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot index 0e4d3786186..073977b60c6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-multi.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript basics cast-as-multi.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -24,6 +26,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -90,6 +93,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -107,6 +111,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot index 24084d0bfc6..a6ad519b22a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-operator.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics cast-as-operator.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot index 7db1ea89ae2..999ba3023f5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/cast-as-simple.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,9 +26,11 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -45,6 +48,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot index 3c64b0e35ef..271f190c206 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-annotation.src.ts.shot @@ -53,6 +53,7 @@ Object { }, }, "param": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -177,6 +178,7 @@ Object { }, }, "param": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot index 0997a4fd7ae..873e5d58ec4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/catch-clause-with-invalid-annotation.src.ts.shot @@ -53,6 +53,7 @@ Object { }, }, "param": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot index 0a0ef1f276b..92999b2ef5b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-abstract.src.ts.shot @@ -4,7 +4,9 @@ exports[`typescript basics class-multi-line-keyword-abstract.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -22,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +43,7 @@ Object { "type": "ExpressionStatement", }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -58,7 +62,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -76,7 +83,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 10, @@ -92,7 +101,9 @@ Object { 19, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot index 53449475ea7..e7044c2559d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-multi-line-keyword-declare.src.ts.shot @@ -4,7 +4,9 @@ exports[`typescript basics class-multi-line-keyword-declare.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -22,6 +24,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +43,7 @@ Object { "type": "ExpressionStatement", }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -58,7 +62,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -76,7 +83,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 10, @@ -92,7 +101,9 @@ Object { 18, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot index de8c7575d85..9dff921bdb2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-accessibility-error.src.ts.shot @@ -4,12 +4,15 @@ exports[`typescript basics class-private-identifier-field-with-accessibility-err Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "private", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -38,12 +41,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 36, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -86,6 +90,8 @@ Object { "accessibility": "public", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -114,12 +120,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 39, 60, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -159,8 +166,11 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -189,12 +199,13 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 63, 84, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -250,7 +261,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -268,7 +282,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -284,7 +300,9 @@ Object { 86, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot index 0ad83901f5a..07b5c0884e1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-field-with-annotation.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-private-identifier-field-with-annotation.src 1` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -37,12 +41,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 29, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -82,8 +87,11 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -112,12 +120,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 32, 51, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -175,8 +184,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -194,6 +206,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -206,6 +219,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 55, @@ -213,11 +227,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -342,6 +358,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -360,7 +377,9 @@ Object { 66, 95, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -380,7 +399,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -398,7 +420,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -414,7 +438,9 @@ Object { 97, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot index 6e12c7242f0..11091507b80 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-private-identifier-readonly-field.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-private-identifier-readonly-field.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -37,6 +41,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -98,7 +103,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -116,7 +124,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -132,7 +142,9 @@ Object { 38, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot index 0979459b975..e0feb16115b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-static-blocks.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics class-static-blocks.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +32,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,14 +44,16 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 31, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -73,8 +81,10 @@ Object { "consequent": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -92,6 +102,7 @@ Object { 81, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -161,6 +172,7 @@ Object { "test": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -178,6 +190,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -195,6 +208,7 @@ Object { 66, ], "type": "CallExpression", + "typeParameters": undefined, }, "type": "IfStatement", }, @@ -232,7 +246,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -250,7 +267,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -266,7 +285,9 @@ Object { 96, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot index 4f57e39042a..66b705fe68d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-accessibility-modifiers.src.ts.shot @@ -4,13 +4,17 @@ exports[`typescript basics class-with-accessibility-modifiers.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "private", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -28,6 +32,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 35, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -87,7 +93,10 @@ Object { "accessibility": "public", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -105,6 +114,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -116,12 +126,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 38, 65, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -163,7 +174,9 @@ Object { Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -181,6 +194,7 @@ Object { 81, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -193,6 +207,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 68, @@ -200,6 +215,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -236,6 +252,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -253,6 +270,7 @@ Object { 106, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 98, @@ -293,6 +311,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -311,13 +330,17 @@ Object { 82, 111, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "protected", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -335,6 +358,7 @@ Object { 130, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -347,6 +371,7 @@ Object { "line": 7, }, }, + "optional": false, "override": false, "range": Array [ 114, @@ -354,11 +379,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -391,6 +418,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -408,6 +436,7 @@ Object { 160, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 152, @@ -431,6 +460,7 @@ Object { 166, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -448,6 +478,7 @@ Object { 166, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, @@ -484,6 +515,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -499,6 +531,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -556,7 +589,9 @@ Object { 131, 171, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -576,7 +611,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -594,7 +632,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -610,7 +650,9 @@ Object { 173, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot index 08b0f689724..5a6a52818cb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-modifier.src.ts.shot @@ -4,12 +4,15 @@ exports[`typescript basics class-with-constructor-and-modifier.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "protected", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -27,6 +30,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -39,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -46,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -66,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -84,12 +91,15 @@ Object { 33, 39, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "public", "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -120,6 +130,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 43, @@ -127,6 +138,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -147,6 +159,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -165,7 +178,9 @@ Object { 65, 71, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -185,7 +200,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -203,7 +221,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -219,7 +239,9 @@ Object { 73, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot index cf9099b1e73..894bb53449d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-property-with-modifiers.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-constructor-and-parameter-property-with-mo Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 53, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": "protected", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": true, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -159,7 +169,9 @@ Object { 64, 110, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -179,7 +191,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -197,7 +212,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -213,6 +230,7 @@ Object { 112, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -230,8 +248,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot index 44580f495a6..34b890b13c3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-parameter-proptery-with-override-modifier.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-constructor-and-parameter-proptery-with-ov Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 53, @@ -45,11 +51,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -85,6 +93,7 @@ Object { 104, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -119,6 +128,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -135,6 +145,7 @@ Object { "params": Array [ Object { "accessibility": undefined, + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -148,6 +159,7 @@ Object { }, "override": true, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -213,7 +225,9 @@ Object { 64, 109, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -233,7 +247,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -251,7 +268,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -267,6 +286,7 @@ Object { 111, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -284,8 +304,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot index be18b7b8a4f..601f1dcb7db 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-return-type.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-constructor-and-return-type.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -118,10 +126,13 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -152,6 +163,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 41, @@ -159,6 +171,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -179,6 +192,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -232,6 +246,7 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -251,7 +266,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -269,7 +287,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -285,7 +305,9 @@ Object { 72, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot index 1c92b55a6bd..f9fdbbc32f7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-constructor-and-type-parameters.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-constructor-and-type-parameters.src 1`] = Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,6 +91,7 @@ Object { 23, 32, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -111,6 +120,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -128,6 +138,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -146,7 +157,9 @@ Object { }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -177,6 +190,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 36, @@ -184,6 +198,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -204,6 +219,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -222,6 +238,7 @@ Object { 51, 60, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -250,6 +267,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -267,6 +285,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -301,7 +320,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -319,7 +341,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -335,7 +359,9 @@ Object { 62, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot index f9aae4c77ca..195cc59be38 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-declare-properties.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics class-with-declare-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -27,6 +32,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 20, 42, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -86,7 +93,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -104,6 +114,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,12 +126,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 45, 74, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -160,9 +172,13 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -180,6 +196,7 @@ Object { 97, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -191,12 +208,13 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 77, 106, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -236,9 +254,13 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -256,6 +278,7 @@ Object { 131, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -267,6 +290,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 109, @@ -315,7 +339,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -333,6 +360,7 @@ Object { 172, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -344,6 +372,7 @@ Object { "line": 6, }, }, + "optional": false, "override": false, "range": Array [ 143, @@ -392,7 +421,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -410,6 +442,7 @@ Object { 211, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -421,12 +454,13 @@ Object { "line": 7, }, }, + "optional": false, "override": false, "range": Array [ 184, 220, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -469,7 +503,10 @@ Object { "accessibility": "public", "computed": false, "declare": true, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -487,6 +524,7 @@ Object { 259, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -498,6 +536,7 @@ Object { "line": 8, }, }, + "optional": false, "override": false, "range": Array [ 223, @@ -559,7 +598,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -577,7 +619,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -593,7 +637,9 @@ Object { 270, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot index 5f11a3a542c..e767114ee28 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-definite-assignment.src.ts.shot @@ -4,13 +4,17 @@ exports[`typescript basics class-with-definite-assignment.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], "definite": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -28,6 +32,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, 23, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -100,7 +106,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -118,7 +127,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -134,7 +145,9 @@ Object { 25, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot index 185af093c85..fd77a07d3f4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-export-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-export-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 16, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": undefined, + "decorators": Array [], "export": true, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -159,7 +169,9 @@ Object { 27, 54, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -179,7 +191,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -197,7 +212,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -213,7 +230,9 @@ Object { 56, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot index dd98c7420ae..77813357b3f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-and-implements.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-extends-and-implements.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -40,10 +44,12 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 77, @@ -61,6 +67,7 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +84,7 @@ Object { 77, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -94,6 +102,7 @@ Object { 80, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 54, @@ -111,8 +120,11 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot index bc77a995c63..f6f2652718e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic-multiple.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-extends-generic-multiple.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -56,6 +62,7 @@ Object { 45, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -73,6 +80,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "superTypeParameters": Object { "loc": Object { @@ -103,6 +111,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -120,6 +129,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -140,6 +150,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -157,6 +168,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -198,6 +210,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -215,6 +228,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -231,6 +245,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -248,6 +263,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot index 3538ec93899..e569978121f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-extends-generic.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-extends-generic.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -56,6 +62,7 @@ Object { 32, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -73,6 +80,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "superTypeParameters": Object { "loc": Object { @@ -103,6 +111,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -120,6 +129,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -158,6 +168,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -175,6 +186,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot index 36f9f519962..8e4836a5ead 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method-default.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-generic-method-default.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -26,6 +30,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,6 +91,7 @@ Object { 20, 34, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -115,6 +124,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -132,6 +142,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -147,6 +158,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -164,6 +176,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -198,7 +211,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -216,7 +232,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -232,7 +250,9 @@ Object { 36, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot index e41bd3ec2d2..c79899448ef 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-generic-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-generic-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -26,6 +30,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,6 +91,7 @@ Object { 20, 28, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -111,6 +120,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -128,6 +138,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -162,7 +173,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -180,7 +194,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -196,7 +212,9 @@ Object { 30, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot index c0ca82b1883..8e00330e79b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-and-extends.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-implements-and-extends.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -40,10 +44,12 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 56, @@ -61,6 +67,7 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +84,7 @@ Object { 56, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -94,6 +102,7 @@ Object { 80, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 77, @@ -111,8 +120,11 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot index a733b031386..ad5f6cb5f24 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic-multiple.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-implements-generic-multiple.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,10 +44,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -61,6 +67,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -106,6 +113,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -123,6 +131,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -143,6 +152,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -160,6 +170,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -187,7 +198,9 @@ Object { 35, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot index c96faa903a7..1309c2bd42e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements-generic.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-implements-generic.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,10 +44,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -61,6 +67,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -106,6 +113,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -123,6 +131,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -150,7 +159,9 @@ Object { 32, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot index 151ae6ed42c..4168e15a30f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-implements.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-implements.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,10 +44,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -61,6 +67,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +84,7 @@ Object { 24, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -94,7 +102,9 @@ Object { 29, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot index 194df73cfde..2948805166c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -118,11 +126,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -140,6 +152,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -152,6 +165,7 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 32, @@ -159,6 +173,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -179,6 +194,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -197,6 +213,7 @@ Object { 35, 44, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -225,6 +242,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -242,6 +260,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -260,8 +279,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -279,6 +301,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -291,6 +314,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 47, @@ -298,6 +322,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -318,6 +343,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -336,7 +362,9 @@ Object { 50, 55, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -356,7 +384,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -374,7 +405,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -390,7 +423,9 @@ Object { 57, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot index 02962fcec7b..ffd5aa93d96 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin-reference.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -106,6 +110,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -123,6 +128,7 @@ Object { 44, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -133,6 +139,7 @@ Object { 0, 49, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -164,6 +171,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -181,6 +189,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -211,6 +220,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -228,6 +238,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -252,6 +263,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -269,6 +281,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot index 5275fb37939..131bd49f8de 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-mixin.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -27,7 +28,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 33, @@ -43,6 +47,7 @@ Object { 82, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -60,8 +65,11 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -96,9 +104,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -116,6 +126,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -129,6 +140,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -179,6 +191,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -196,6 +209,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -206,6 +220,7 @@ Object { 0, 84, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -237,6 +252,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -254,6 +270,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -306,6 +323,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -323,6 +341,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -340,6 +359,7 @@ Object { }, }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -358,7 +378,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -376,10 +399,12 @@ Object { 93, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -397,6 +422,7 @@ Object { 124, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -413,6 +439,7 @@ Object { 124, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -432,6 +459,7 @@ Object { "superClass": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -449,9 +477,11 @@ Object { 110, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -469,6 +499,7 @@ Object { 103, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -523,9 +554,12 @@ Object { "type": "TSTypeParameterInstantiation", }, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -544,7 +578,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -562,7 +599,9 @@ Object { 137, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 11, @@ -578,7 +617,9 @@ Object { 141, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "body": Object { @@ -600,7 +641,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -618,6 +661,7 @@ Object { 153, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -634,10 +678,12 @@ Object { 157, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -655,6 +701,7 @@ Object { 174, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -686,6 +733,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -703,7 +751,9 @@ Object { 192, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -771,6 +821,7 @@ Object { "type": "TSArrayType", }, }, + "value": undefined, }, ], "range": Array [ @@ -810,6 +861,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -827,11 +879,13 @@ Object { 205, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, "typeParameters": Object { "loc": Object { @@ -860,6 +914,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -877,6 +932,7 @@ Object { 176, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot index 3c55b1662bc..6841a4cb34f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-method.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -25,6 +26,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,6 +87,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -102,6 +105,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -162,6 +166,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -179,6 +184,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -195,6 +201,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -212,6 +219,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -255,6 +263,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -272,6 +281,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -355,11 +365,15 @@ Object { "type": "VariableDeclaration", }, Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -377,6 +391,7 @@ Object { 133, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -397,9 +412,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -418,12 +435,17 @@ Object { 135, 138, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -441,6 +463,7 @@ Object { 151, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -461,6 +484,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -481,6 +505,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -499,11 +524,15 @@ Object { 153, 158, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -542,9 +571,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -563,11 +594,15 @@ Object { 166, 169, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -606,6 +641,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -626,6 +662,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -644,11 +681,15 @@ Object { 176, 181, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -687,9 +728,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -708,11 +751,15 @@ Object { 198, 201, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -751,6 +798,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -771,6 +819,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -789,11 +838,15 @@ Object { 217, 222, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "computed": false, "loc": Object { @@ -807,6 +860,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -824,9 +878,11 @@ Object { 230, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -844,6 +900,7 @@ Object { 237, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 227, @@ -870,6 +927,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -890,6 +948,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -908,11 +967,15 @@ Object { 239, 244, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "computed": false, "loc": Object { @@ -926,6 +989,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -943,9 +1007,11 @@ Object { 252, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -963,6 +1029,7 @@ Object { 260, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 249, @@ -989,9 +1056,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -1010,14 +1079,19 @@ Object { 262, 265, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -1035,6 +1109,7 @@ Object { 270, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1052,6 +1127,7 @@ Object { 272, ], "type": "CallExpression", + "typeParameters": undefined, }, "kind": "method", "loc": Object { @@ -1072,6 +1148,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -1092,6 +1169,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -1110,7 +1188,9 @@ Object { 274, 279, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -1130,7 +1210,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -1148,7 +1231,9 @@ Object { 118, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -1164,7 +1249,9 @@ Object { 281, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot index 51e86628aa1..4fece8014eb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-computed-property.src.ts.shot @@ -4,12 +4,15 @@ exports[`typescript basics class-with-optional-computed-property.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "private", "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -45,10 +48,12 @@ Object { 14, 43, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -66,6 +71,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -85,7 +91,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -103,7 +112,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -119,7 +130,9 @@ Object { 45, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot index 7b2da00cb67..1b5fc09b085 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-methods.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-optional-methods.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -46,9 +51,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -67,12 +74,17 @@ Object { 18, 21, ], + "returnType": undefined, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -90,6 +102,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -110,9 +123,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -166,12 +181,15 @@ Object { }, }, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "private", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -189,6 +207,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -209,9 +228,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -265,6 +286,7 @@ Object { }, }, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -284,7 +306,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -302,7 +327,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -318,7 +345,9 @@ Object { 67, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot index 023d513c795..8c685b95703 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-properties.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -25,6 +26,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -85,6 +87,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -102,6 +105,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -158,12 +162,17 @@ Object { "type": "VariableDeclaration", }, Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -181,6 +190,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -198,15 +208,20 @@ Object { 65, 70, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -224,6 +239,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -241,7 +257,7 @@ Object { 73, 87, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -284,7 +300,10 @@ Object { "accessibility": "private", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -302,6 +321,7 @@ Object { 101, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -319,7 +339,7 @@ Object { 90, 112, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -359,9 +379,13 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -379,6 +403,7 @@ Object { 124, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -396,14 +421,18 @@ Object { 115, 127, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -439,14 +468,18 @@ Object { 130, 143, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -482,15 +515,20 @@ Object { 146, 151, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -508,6 +546,7 @@ Object { 164, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -525,7 +564,7 @@ Object { 154, 175, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -565,8 +604,11 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -602,7 +644,7 @@ Object { 178, 200, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -642,8 +684,11 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": true, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -679,7 +724,7 @@ Object { 203, 216, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -735,7 +780,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -753,7 +801,9 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -769,7 +819,9 @@ Object { 218, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot index 499e23bc111..531dcdad739 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-optional-property-undefined.src.ts.shot @@ -4,13 +4,17 @@ exports[`typescript basics class-with-optional-property-undefined.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "private", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -28,6 +32,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -45,10 +50,12 @@ Object { 12, 37, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -66,6 +73,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -85,7 +93,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -103,7 +114,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -119,7 +132,9 @@ Object { 39, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot index 1c1a1a9c7b4..b33f6f43641 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-override-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": true, "range": Array [ 53, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,7 +91,9 @@ Object { 66, 87, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -103,7 +113,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -121,7 +134,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -137,6 +152,7 @@ Object { 89, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -154,8 +170,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot index 3c098bb5df0..5fc0b57cf81 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-override-property.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics class-with-override-property.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -27,6 +32,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,14 +44,16 @@ Object { "line": 2, }, }, + "optional": false, "override": true, "range": Array [ 53, 70, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -83,7 +91,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -101,7 +112,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -117,6 +130,7 @@ Object { 72, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -134,8 +148,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot index cd81c13418f..2ce16908067 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-optional-property.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-private-optional-property.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -43,7 +47,7 @@ Object { 14, 29, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -83,8 +87,11 @@ Object { "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -119,7 +126,7 @@ Object { 32, 69, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -177,8 +184,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -213,9 +223,10 @@ Object { 72, 101, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -253,7 +264,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -271,7 +285,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -287,7 +303,9 @@ Object { 103, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot index fe5938b7d10..c85ed787d6d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-private-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-private-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": "private", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -156,6 +166,7 @@ Object { }, Object { "accessibility": "private", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -169,6 +180,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -231,6 +243,7 @@ Object { }, Object { "accessibility": "private", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -244,7 +257,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -332,6 +347,7 @@ Object { "value": 30, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 116, @@ -343,6 +359,7 @@ Object { }, Object { "accessibility": "private", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -356,7 +373,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -444,6 +463,7 @@ Object { "value": false, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 156, @@ -458,7 +478,9 @@ Object { 25, 201, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -478,7 +500,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -496,7 +521,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -512,7 +539,9 @@ Object { 203, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot index 27f63b829d7..1e0af20bcff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-function.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics class-with-property-function.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -27,6 +32,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 55, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -113,6 +120,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, }, "value": Object { @@ -189,12 +197,17 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -212,6 +225,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -223,12 +237,13 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 58, 83, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -268,6 +283,7 @@ Object { "value": Object { "async": false, "body": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -285,6 +301,7 @@ Object { 82, ], "type": "Identifier", + "typeAnnotation": undefined, }, "expression": true, "generator": false, @@ -304,7 +321,9 @@ Object { 72, 82, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -324,7 +343,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -342,7 +364,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -358,7 +382,9 @@ Object { 85, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot index ee3f688f4de..5c627f37a7f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-property-values.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics class-with-property-values.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -27,6 +32,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,14 +44,16 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 20, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -67,9 +75,13 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -87,6 +99,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -98,14 +111,16 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 23, 30, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -126,9 +141,13 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -146,6 +165,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -157,14 +177,16 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 33, 40, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "elements": Array [], "loc": Object { @@ -185,9 +207,13 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -205,6 +231,7 @@ Object { 44, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -216,14 +243,16 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 43, 50, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -245,9 +274,13 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -265,6 +298,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -276,14 +310,16 @@ Object { "line": 6, }, }, + "optional": false, "override": false, "range": Array [ 53, 80, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "arguments": Array [ Object { @@ -362,6 +398,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -379,6 +416,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -395,6 +433,7 @@ Object { 79, ], "type": "NewExpression", + "typeParameters": undefined, }, }, ], @@ -414,7 +453,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -432,7 +474,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -448,7 +492,9 @@ Object { 82, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot index 302b3d3d034..58e981f6516 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-protected-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-protected-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": "protected", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -156,6 +166,7 @@ Object { }, Object { "accessibility": "protected", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -169,6 +180,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 49, @@ -231,6 +243,7 @@ Object { }, Object { "accessibility": "protected", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -244,7 +257,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -332,6 +347,7 @@ Object { "value": 30, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 120, @@ -343,6 +359,7 @@ Object { }, Object { "accessibility": "protected", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -356,7 +373,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 49, @@ -444,6 +463,7 @@ Object { "value": false, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 162, @@ -458,7 +478,9 @@ Object { 25, 209, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -478,7 +500,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -496,7 +521,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -512,7 +539,9 @@ Object { 211, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot index dc211469939..cdc4474637f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-public-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-public-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -156,6 +166,7 @@ Object { }, Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -169,6 +180,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -231,6 +243,7 @@ Object { }, Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -244,7 +257,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -332,6 +347,7 @@ Object { "value": 30, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 114, @@ -343,6 +359,7 @@ Object { }, Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -356,7 +373,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -444,6 +463,7 @@ Object { "value": false, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 153, @@ -458,7 +478,9 @@ Object { 25, 197, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -478,7 +500,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -496,7 +521,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -512,7 +539,9 @@ Object { 199, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot index 67d5a0ad57c..af0bb502f9a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-readonly-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": undefined, + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -156,6 +166,7 @@ Object { }, Object { "accessibility": undefined, + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -169,7 +180,9 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -257,6 +270,7 @@ Object { "value": "Smith", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, "range": Array [ 68, @@ -271,7 +285,9 @@ Object { 25, 107, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -291,7 +307,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -309,7 +328,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -325,7 +346,9 @@ Object { 109, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot index 09eaec197d5..e1cb3027f48 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-readonly-property.src.ts.shot @@ -4,13 +4,17 @@ exports[`typescript basics class-with-readonly-property.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "public", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -28,6 +32,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,6 +44,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 16, @@ -47,6 +53,7 @@ Object { "readonly": true, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -84,7 +91,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -102,7 +112,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -118,7 +130,9 @@ Object { 49, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot index 1a6e72853ea..3967ac7a6c0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-static-parameter-properties.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics class-with-static-parameter-properties.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 16, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "accessibility": undefined, + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -94,6 +103,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -159,7 +169,9 @@ Object { 27, 54, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -179,7 +191,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -197,7 +212,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -213,7 +230,9 @@ Object { 56, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot index 520f513a0b9..b98697aa054 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-two-methods-computed-constructor.src.ts.shot @@ -4,10 +4,13 @@ exports[`typescript basics class-with-two-methods-computed-constructor.src 1`] = Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -38,6 +41,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -45,6 +49,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +70,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -145,6 +151,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -162,6 +169,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -180,7 +188,9 @@ Object { }, }, Object { + "accessibility": undefined, "computed": true, + "decorators": Array [], "key": Object { "loc": Object { "end": Object { @@ -211,6 +221,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 48, @@ -218,6 +229,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -238,6 +250,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -318,6 +331,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -335,6 +349,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -369,7 +384,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -387,7 +405,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -403,7 +423,9 @@ Object { 84, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot index 2568a9ff458..579cd3a2533 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-default.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-type-parameter-default.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -56,6 +62,7 @@ Object { 23, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -88,6 +95,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -105,6 +113,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -120,6 +129,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -137,6 +147,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot index a311dda4e14..ee2092ed3b5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter-underscore.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-type-parameter-underscore.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,7 +44,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 15, @@ -56,6 +62,7 @@ Object { 15, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -84,6 +91,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -101,6 +109,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot index f721d279023..d59966b5d8d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/class-with-type-parameter.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics class-with-type-parameter.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -56,6 +62,7 @@ Object { 17, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -84,6 +91,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -101,6 +109,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot index e9e2962bf06..d4d46d09c25 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/const-assertions.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -25,6 +26,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -78,6 +80,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -95,6 +98,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -139,6 +143,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -156,6 +161,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -247,6 +253,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -264,6 +271,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -308,6 +316,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -325,6 +334,7 @@ Object { 133, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -342,6 +352,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -359,6 +370,7 @@ Object { 142, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -438,6 +450,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -455,6 +468,7 @@ Object { 162, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -499,6 +513,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -516,6 +531,7 @@ Object { 183, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -569,6 +585,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -586,6 +603,7 @@ Object { 192, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -630,6 +648,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -647,6 +666,7 @@ Object { 231, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -738,6 +758,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -755,6 +776,7 @@ Object { 240, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -799,6 +821,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -816,6 +839,7 @@ Object { 294, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "expression": Object { @@ -833,6 +857,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -850,6 +875,7 @@ Object { 310, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -929,6 +955,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -946,6 +973,7 @@ Object { 303, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot index a57c14c3d98..678e60a81ea 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/const-enum.src.ts.shot @@ -7,6 +7,7 @@ Object { "const": true, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -24,6 +25,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,6 +41,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -56,6 +59,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "initializer": Object { "loc": Object { @@ -95,6 +99,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -112,7 +117,9 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot index b869bca9da4..b9f3475ad29 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-class-with-optional-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics declare-class-with-optional-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -46,9 +51,11 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": null, + "declare": false, "expression": false, "generator": false, "id": null, @@ -102,6 +109,7 @@ Object { }, }, "type": "TSEmptyBodyFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -122,7 +130,9 @@ Object { "type": "ClassBody", }, "declare": true, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -140,7 +150,9 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -156,7 +168,9 @@ Object { 38, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot index 6bde96508ca..43bbd37c22b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/declare-function.src.ts.shot @@ -10,6 +10,7 @@ Object { "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -27,6 +28,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +42,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -132,6 +135,7 @@ Object { }, }, "type": "TSDeclareFunction", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot index 37bd76a51c7..ec9805e06bb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-nested.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics destructuring-assignment-nested.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 81, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -38,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,7 +63,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 73, @@ -75,6 +81,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -92,6 +99,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -113,7 +121,9 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 66, @@ -129,6 +139,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -146,6 +157,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -167,9 +179,12 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -187,9 +202,12 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -205,6 +223,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -222,6 +241,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -243,9 +263,12 @@ Object { "shorthand": false, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -263,6 +286,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -281,6 +305,7 @@ Object { 36, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -336,6 +361,7 @@ Object { "type": "ArrayExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -344,6 +370,7 @@ Object { 44, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -375,6 +402,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 52, @@ -392,6 +420,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -459,6 +488,7 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -477,6 +507,7 @@ Object { 59, ], "type": "ArrayPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -512,6 +543,7 @@ Object { "type": "ArrayExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -520,6 +552,7 @@ Object { 66, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -555,6 +588,7 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -563,6 +597,7 @@ Object { 73, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -598,6 +633,7 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -606,6 +642,7 @@ Object { 81, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -637,6 +674,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 89, @@ -654,6 +692,7 @@ Object { 89, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -689,6 +728,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 96, @@ -706,6 +746,7 @@ Object { 96, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -741,6 +782,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 103, @@ -758,6 +800,7 @@ Object { 103, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -814,6 +857,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 114, @@ -831,6 +875,7 @@ Object { 114, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot index dc795f5364b..cee6ef4b9dc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-object.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics destructuring-assignment-object.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -38,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,7 +63,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -77,6 +83,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -112,6 +119,7 @@ Object { "type": "ObjectExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -120,6 +128,7 @@ Object { 13, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -137,6 +146,7 @@ Object { 19, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -154,6 +164,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot index 5f5c460aeff..826e02c3a47 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment-property.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -43,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,7 +59,9 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -72,6 +77,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -89,6 +95,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -110,7 +117,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -128,6 +137,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -163,6 +173,7 @@ Object { "type": "ArrayExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -171,6 +182,7 @@ Object { 25, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -188,6 +200,7 @@ Object { 31, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -205,15 +218,19 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 37, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot index f818c93c40d..88aa09dc410 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/destructuring-assignment.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics destructuring-assignment.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -38,6 +41,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,7 +63,9 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -77,6 +83,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -112,6 +119,7 @@ Object { "type": "ArrayExpression", }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, }, ], @@ -120,6 +128,7 @@ Object { 13, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -137,6 +146,7 @@ Object { 19, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -154,6 +164,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot index 7a774d686b5..2eb6fecd04b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-module.src.ts.shot @@ -48,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -65,6 +66,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -121,6 +123,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -176,6 +179,7 @@ Object { "declare": false, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -193,6 +197,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot index 6f773c4ae12..ca335e16698 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/directive-in-namespace.src.ts.shot @@ -48,6 +48,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -65,6 +66,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -121,6 +123,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -176,6 +179,7 @@ Object { "declare": false, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -193,6 +197,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot index daa7e9668c1..3df92c53024 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/dynamic-import-with-import-assertions.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics dynamic-import-with-import-assertions.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "attributes": Object { "loc": Object { @@ -20,6 +21,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -37,6 +39,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -72,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -89,6 +93,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot index 359595d203d..c0a1ebe8438 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-all-with-import-assertions.src.ts.shot @@ -7,6 +7,7 @@ Object { "assertions": Array [ Object { "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -24,6 +25,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot index e9a27b5f117..762447f79f6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-as-namespace.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -22,6 +23,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot index dade8d44964..e32083119d8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-assignment.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -22,6 +23,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot index 807343efb5e..6b8c64ddcae 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-const-named-enum.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": true, "declare": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -26,6 +27,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -58,6 +61,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "initializer": Object { "loc": Object { @@ -97,6 +101,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -114,7 +119,9 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot index 2826b3dcaa6..01a33397137 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-declare-named-enum.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -26,6 +27,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -58,6 +61,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "initializer": Object { "loc": Object { @@ -97,6 +101,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -114,7 +119,9 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot index 23d22422bc9..5ffbcb3602d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-generic.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -39,6 +43,7 @@ Object { 28, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -67,6 +72,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -84,6 +90,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot index 9adcb171842..da88cdb4430 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-class-with-multiple-generics.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": null, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -39,6 +43,7 @@ Object { 31, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -67,6 +72,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -84,6 +90,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -107,6 +114,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -124,6 +132,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot index bbc9e076d49..62ff5e71b50 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-default-interface.src.ts.shot @@ -8,9 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -28,6 +30,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -83,6 +86,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -102,7 +106,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -120,6 +126,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -136,6 +143,7 @@ Object { 49, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot index 9b09c166eaf..d907ed8d584 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-generic.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -24,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -42,7 +46,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -58,6 +64,7 @@ Object { 24, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -86,6 +93,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -103,6 +111,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot index ea10d102486..0aa3eb70821 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-class-with-multiple-generics.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -24,7 +25,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -42,7 +46,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -58,6 +64,7 @@ Object { 27, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", "typeParameters": Object { "loc": Object { @@ -86,6 +93,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -103,6 +111,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -126,6 +135,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -143,6 +153,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot index 3c0f0462a2d..6f44a4685e2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-number.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +61,7 @@ Object { "type": "Literal", "value": 1, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot index a46e6f6b27b..45f6879979c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-string.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +61,7 @@ Object { "type": "Literal", "value": "baz", }, + "initializer": undefined, "loc": Object { "end": Object { "column": 11, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot index 5554ec0309e..15f9ab6adcb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum-computed-var-ref.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -58,7 +61,9 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot index 8f6cf9fce83..2ba70f6dbfc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-named-enum.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -58,6 +61,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "initializer": Object { "loc": Object { @@ -97,6 +101,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -114,7 +119,9 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot index 45b2eea4f39..d2e375c0d85 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-star-as-ns-from.src.ts.shot @@ -7,6 +7,7 @@ Object { "assertions": Array [], "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -24,6 +25,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot index ed66c213d52..6ff8663ab0d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-as.src.ts.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -43,6 +44,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -72,6 +75,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot index bd527cf73e4..bbc8ed36a35 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from-as.src.ts.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -61,6 +62,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -90,6 +93,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot index 3711370a2a3..cc28ae28863 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type-from.src.ts.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -61,6 +62,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -90,6 +93,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot index 914d29af76f..9d2e60e63f3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-type.src.ts.shot @@ -26,6 +26,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -43,6 +44,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -55,6 +57,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -72,6 +75,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot index dae75792dfe..0899fc9e971 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/export-with-import-assertions.src.ts.shot @@ -7,6 +7,7 @@ Object { "assertions": Array [ Object { "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -24,6 +25,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -100,6 +102,7 @@ Object { Object { "exportKind": "value", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -117,6 +120,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -129,6 +133,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -146,6 +151,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot index da7c7b98d74..4aecf98d26d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anonymus-with-type-parameters.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -32,6 +34,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -49,6 +52,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -83,6 +87,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -98,6 +103,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -155,6 +161,7 @@ Object { 10, 49, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -183,6 +190,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -200,6 +208,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot index 656d7002aaa..c315d367f84 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-anynomus-with-return-type.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -46,6 +48,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -99,6 +102,7 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot index 1784bf2dfee..0d2e375cd3e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-overloads.src.ts.shot @@ -8,9 +8,11 @@ Object { "declaration": Object { "async": false, "body": undefined, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -28,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -41,6 +44,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -133,6 +137,7 @@ Object { }, }, "type": "TSDeclareFunction", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { @@ -158,9 +163,11 @@ Object { "declaration": Object { "async": false, "body": undefined, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -178,6 +185,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -191,6 +199,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -283,6 +292,7 @@ Object { }, }, "type": "TSDeclareFunction", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { @@ -311,6 +321,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -328,6 +339,7 @@ Object { 143, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -362,9 +374,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -382,6 +396,7 @@ Object { 93, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -395,6 +410,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -559,6 +575,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot index ef568346f8c..9514f6b8a75 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-await.src.ts.shot @@ -8,8 +8,10 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -27,6 +29,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,9 +80,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -97,6 +102,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -110,6 +116,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -127,13 +134,16 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 0, 49, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot index e50c9fcb677..972236437d2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-with-optional-properties.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -43,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -88,6 +93,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,6 +115,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -126,11 +133,13 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -148,6 +157,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -169,6 +179,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -186,6 +197,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -223,10 +235,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -244,6 +258,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -299,10 +314,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -320,6 +337,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -355,7 +373,9 @@ Object { 0, 51, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot index f8f412bb58c..15aa7f496ed 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-object-type-without-annotation.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -43,6 +45,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -71,6 +75,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -88,6 +93,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -109,6 +115,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -126,11 +133,13 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -148,6 +157,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -169,6 +179,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -186,6 +197,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -223,10 +235,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -244,6 +258,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -299,10 +314,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -320,6 +337,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -355,7 +373,9 @@ Object { 0, 49, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot index 0eadccef944..57d31962b11 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-that-have-comments.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -43,6 +45,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 0, 35, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -87,6 +91,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -104,6 +109,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot index c77804552dd..9f8c82cd7ce 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters-with-constraint.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -26,6 +27,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,9 +62,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -80,6 +84,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +98,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -143,6 +149,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -160,6 +167,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -203,6 +211,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -220,6 +229,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -269,6 +279,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -286,6 +297,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot index 57c3841b0a2..3105d1e9135 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-type-parameters.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -26,6 +27,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,9 +62,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -80,6 +84,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +98,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -143,6 +149,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -160,6 +167,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -203,6 +211,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -220,6 +229,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -252,6 +262,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -269,6 +280,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot index 0c9ac77d2ce..2c5e6ce2fea 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types-assignation.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +27,7 @@ Object { 93, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,9 +62,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -80,6 +84,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +98,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -146,7 +152,9 @@ Object { }, }, Object { + "decorators": Array [], "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -234,9 +242,11 @@ Object { "value": 100, }, "type": "AssignmentPattern", + "typeAnnotation": undefined, }, Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -254,7 +264,9 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 69, @@ -304,6 +316,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 61, @@ -321,6 +334,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -360,6 +374,7 @@ Object { }, }, }, + "value": undefined, }, ], "range": Array [ @@ -401,6 +416,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot index 432df6b9b54..844121df237 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/function-with-types.src.ts.shot @@ -9,6 +9,7 @@ Object { "body": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +27,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,9 +62,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -80,6 +84,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +98,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -185,6 +191,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot index 17f4da1825a..807c5602ad2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/global-this.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -81,6 +83,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -95,6 +98,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -112,9 +116,11 @@ Object { 79, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -132,6 +138,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 69, @@ -196,6 +203,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -213,6 +221,7 @@ Object { 103, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -269,6 +278,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -283,6 +293,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -300,9 +311,11 @@ Object { 188, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -320,6 +333,7 @@ Object { 195, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 178, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot index b22828de06b..9a2a76e6233 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-declaration.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -22,6 +23,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "importKind": "value", "isExport": false, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot index 978d7cbc004..5528903ee6b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-equal-type-declaration.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -22,6 +23,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "importKind": "type", "isExport": false, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot index 0942bb69eb2..d8e642b0590 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-declaration.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -22,6 +23,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "importKind": "value", "isExport": true, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot index 292111cedcd..e209bf0617d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-export-equal-type-declaration.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -22,6 +23,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "importKind": "type", "isExport": true, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot index 5ed2c19c1e4..37f4d356ac2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-default.src.ts.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -69,6 +70,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot index 10bab006fc4..bf0a2bf3d21 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-empty.src.ts.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -69,6 +70,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 62, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot index af78772e1c5..e5b0845f2ad 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-error.src.ts.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -69,6 +70,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 12, @@ -79,6 +81,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -96,6 +99,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -108,6 +112,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -125,6 +130,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot index f9f58d4b37e..9ad033cfb1c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named-as.src.ts.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -60,6 +61,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -89,6 +92,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot index f7e5d4f4a30..07ec1f7ce92 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-named.src.ts.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -60,6 +61,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -89,6 +92,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 14, @@ -99,6 +103,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -116,6 +121,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,6 +134,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -145,6 +152,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 19, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot index 6380a082dc6..49e8bfdb5e4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-type-star-as-ns.src.ts.shot @@ -52,6 +52,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -69,6 +70,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot index 9af536ac72d..7da9b8788b7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/import-with-import-assertions.src.ts.shot @@ -7,6 +7,7 @@ Object { "assertions": Array [ Object { "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -24,6 +25,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -108,6 +110,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -125,6 +128,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot index 75a60791266..b501a9707cd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends-multiple.src.ts.shot @@ -26,6 +26,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -43,6 +44,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,9 +61,11 @@ Object { 25, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -79,6 +83,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -95,9 +100,11 @@ Object { 29, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -115,6 +122,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -131,6 +139,7 @@ Object { 34, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot index ca441eb6c57..8524d88e020 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-extends.src.ts.shot @@ -26,6 +26,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -43,6 +44,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,9 +61,11 @@ Object { 25, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -79,6 +83,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -95,6 +100,7 @@ Object { 30, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot index c345c0ee7ff..b508cbae137 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-type-parameters.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -41,6 +43,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -84,6 +87,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -101,6 +105,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot index 0fb97edc80a..8bc85fa7687 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-all-property-types.src.ts.shot @@ -7,10 +7,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -28,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -83,10 +86,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -104,6 +109,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -159,10 +165,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": true, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -180,6 +188,7 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -235,10 +244,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": true, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -256,6 +267,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -311,6 +323,7 @@ Object { }, }, Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -324,6 +337,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -420,9 +434,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -440,6 +456,7 @@ Object { 124, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -495,11 +512,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -517,6 +537,7 @@ Object { 141, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -532,6 +553,7 @@ Object { "optional": true, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -549,8 +571,10 @@ Object { 144, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -568,8 +592,10 @@ Object { 147, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -587,6 +613,7 @@ Object { 150, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -630,11 +657,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": true, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -652,6 +682,7 @@ Object { 167, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -667,6 +698,7 @@ Object { "optional": true, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -684,8 +716,10 @@ Object { 171, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -703,8 +737,10 @@ Object { 174, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -722,6 +758,7 @@ Object { 177, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -765,11 +802,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -787,6 +827,7 @@ Object { 193, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -802,6 +843,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -819,8 +861,10 @@ Object { 198, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -838,8 +882,10 @@ Object { 201, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -857,6 +903,7 @@ Object { 204, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -927,6 +974,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -944,6 +992,7 @@ Object { 195, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -973,6 +1022,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -990,8 +1040,10 @@ Object { 223, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1009,6 +1061,7 @@ Object { 227, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -1050,6 +1103,7 @@ Object { }, }, "type": "TSConstructSignatureDeclaration", + "typeParameters": undefined, }, Object { "loc": Object { @@ -1064,6 +1118,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -1081,8 +1136,10 @@ Object { 251, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -1100,6 +1157,7 @@ Object { 255, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -1168,6 +1226,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -1185,6 +1244,7 @@ Object { 248, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1219,7 +1279,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -1237,6 +1299,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1253,6 +1316,7 @@ Object { 267, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot index b77e09c76df..c6e9757b2fa 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-construct-signature-with-parameter-accessibility.src.ts.shot @@ -20,6 +20,7 @@ Object { "params": Array [ Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -33,6 +34,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -50,6 +52,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 26, @@ -61,6 +64,7 @@ Object { }, Object { "accessibility": "private", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -74,6 +78,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -91,6 +96,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 36, @@ -105,7 +111,9 @@ Object { 21, 47, ], + "returnType": undefined, "type": "TSConstructSignatureDeclaration", + "typeParameters": undefined, }, ], "loc": Object { @@ -125,7 +133,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -143,6 +153,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -159,6 +170,7 @@ Object { 49, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot index 1a952462bae..1ee22831720 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-member-expression.src.ts.shot @@ -38,6 +38,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -55,9 +56,11 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -75,6 +78,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 22, @@ -97,9 +101,11 @@ Object { 29, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -117,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -133,6 +140,7 @@ Object { 33, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot index 8c84ec07341..e0e55ee3945 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-extends-type-parameters.src.ts.shot @@ -26,6 +26,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -43,6 +44,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -88,6 +90,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -105,6 +108,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -118,6 +122,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -135,6 +140,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -178,6 +184,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -195,6 +202,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot index 972c0cb3c71..bb5079d781d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-generic.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -41,6 +43,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -84,6 +87,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -101,6 +105,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot index 34e53437878..7a4cb6b571d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-jsdoc.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -27,6 +29,7 @@ Object { 79, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -59,6 +63,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -66,8 +71,10 @@ Object { 85, ], "readonly": false, + "returnType": undefined, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -87,7 +94,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -105,6 +114,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -121,6 +131,7 @@ Object { 87, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot index 465f49b1110..e82eb8b7cb6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-method.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -27,6 +29,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -136,11 +140,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -158,6 +165,7 @@ Object { 44, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -173,6 +181,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -223,6 +232,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -240,6 +250,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -284,6 +295,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -301,6 +313,7 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -334,6 +347,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -351,6 +365,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -385,7 +400,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -403,6 +420,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -419,6 +437,7 @@ Object { 61, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot index 4470e6d731c..1a1c822d9b4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-with-optional-properties.src.ts.shot @@ -7,10 +7,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -28,6 +30,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -50,10 +53,12 @@ Object { "typeAnnotation": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -71,6 +76,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -126,9 +132,11 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -146,6 +154,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -161,6 +170,7 @@ Object { "optional": true, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -178,8 +188,10 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -233,6 +245,7 @@ Object { }, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -250,6 +263,7 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -257,8 +271,10 @@ Object { 79, ], "readonly": false, + "returnType": undefined, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -278,7 +294,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -296,6 +314,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -312,6 +331,7 @@ Object { 81, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot index c3302a988af..81c669ee9db 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/interface-without-type-annotation.src.ts.shot @@ -7,10 +7,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -28,6 +30,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -67,7 +70,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -85,6 +90,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,6 +107,7 @@ Object { 27, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot index 910a474a6e2..039aea820b3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/intrinsic-keyword.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -23,6 +24,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -99,6 +101,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -116,6 +119,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -135,6 +139,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -152,6 +157,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -228,6 +234,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -245,6 +252,7 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -264,6 +272,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -281,6 +290,7 @@ Object { 107, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -357,6 +367,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -374,6 +385,7 @@ Object { 109, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -393,6 +405,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -410,6 +423,7 @@ Object { 156, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -486,6 +500,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -503,6 +518,7 @@ Object { 158, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot index 50129f1b095..6f229cb965a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/keyof-operator.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -90,10 +93,12 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot index a3ab47f5447..fddca0c561d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/keyword-variables.src.ts.shot @@ -10,6 +10,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -27,6 +28,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -87,6 +89,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -104,6 +107,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -164,6 +168,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -181,6 +186,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -241,6 +247,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -258,6 +265,7 @@ Object { 72, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -318,6 +326,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -335,6 +344,7 @@ Object { 91, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -395,6 +405,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -412,6 +423,7 @@ Object { 110, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -472,6 +484,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -489,6 +502,7 @@ Object { 131, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -549,6 +563,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -566,6 +581,7 @@ Object { 156, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -626,6 +642,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -643,6 +660,7 @@ Object { 177, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -703,6 +721,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -720,6 +739,7 @@ Object { 194, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -780,6 +800,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -797,6 +818,7 @@ Object { 213, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -857,6 +879,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -874,6 +897,7 @@ Object { 229, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -934,6 +958,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -951,6 +976,7 @@ Object { 248, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1011,6 +1037,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1028,6 +1055,7 @@ Object { 268, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1088,6 +1116,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -1105,6 +1134,7 @@ Object { 291, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1165,6 +1195,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -1182,6 +1213,7 @@ Object { 310, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1242,6 +1274,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -1259,6 +1292,7 @@ Object { 332, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1319,6 +1353,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -1336,6 +1371,7 @@ Object { 353, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1396,6 +1432,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1413,6 +1450,7 @@ Object { 373, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1473,6 +1511,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1490,6 +1529,7 @@ Object { 393, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1550,6 +1590,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -1567,6 +1608,7 @@ Object { 410, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1627,6 +1669,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1644,6 +1687,7 @@ Object { 430, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1704,6 +1748,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1721,6 +1766,7 @@ Object { 450, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1781,6 +1827,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -1798,6 +1845,7 @@ Object { 468, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1858,6 +1906,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -1875,6 +1924,7 @@ Object { 491, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -1935,6 +1985,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1952,6 +2003,7 @@ Object { 511, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2012,6 +2064,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -2029,6 +2082,7 @@ Object { 532, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2089,6 +2143,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -2106,6 +2161,7 @@ Object { 550, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2166,6 +2222,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -2183,6 +2240,7 @@ Object { 570, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2243,6 +2301,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -2260,6 +2319,7 @@ Object { 590, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2320,6 +2380,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -2337,6 +2398,7 @@ Object { 606, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -2449,6 +2511,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -2466,6 +2529,7 @@ Object { 634, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2478,6 +2542,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -2495,6 +2560,7 @@ Object { 634, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 626, @@ -2505,6 +2571,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -2522,6 +2589,7 @@ Object { 640, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2534,6 +2602,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -2551,6 +2620,7 @@ Object { 640, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 638, @@ -2561,6 +2631,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2578,6 +2649,7 @@ Object { 651, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2590,6 +2662,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2607,6 +2680,7 @@ Object { 651, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 644, @@ -2617,6 +2691,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -2634,6 +2709,7 @@ Object { 658, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2646,6 +2722,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -2663,6 +2740,7 @@ Object { 658, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 655, @@ -2673,6 +2751,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -2690,6 +2769,7 @@ Object { 667, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2702,6 +2782,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -2719,6 +2800,7 @@ Object { 667, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 662, @@ -2729,6 +2811,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -2746,6 +2829,7 @@ Object { 676, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2758,6 +2842,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -2775,6 +2860,7 @@ Object { 676, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 671, @@ -2785,6 +2871,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2802,6 +2889,7 @@ Object { 687, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2814,6 +2902,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2831,6 +2920,7 @@ Object { 687, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 680, @@ -2841,6 +2931,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -2858,6 +2949,7 @@ Object { 702, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2870,6 +2962,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -2887,6 +2980,7 @@ Object { 702, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 691, @@ -2897,6 +2991,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2914,6 +3009,7 @@ Object { 713, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2926,6 +3022,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -2943,6 +3040,7 @@ Object { 713, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 706, @@ -2953,6 +3051,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -2970,6 +3069,7 @@ Object { 720, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -2982,6 +3082,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -2999,6 +3100,7 @@ Object { 720, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 717, @@ -3009,6 +3111,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3026,6 +3129,7 @@ Object { 729, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3038,6 +3142,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3055,6 +3160,7 @@ Object { 729, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 724, @@ -3065,6 +3171,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -3082,6 +3189,7 @@ Object { 735, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3094,6 +3202,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -3111,6 +3220,7 @@ Object { 735, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 733, @@ -3121,6 +3231,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3138,6 +3249,7 @@ Object { 744, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3150,6 +3262,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3167,6 +3280,7 @@ Object { 744, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 739, @@ -3177,6 +3291,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3194,6 +3309,7 @@ Object { 754, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3206,6 +3322,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3223,6 +3340,7 @@ Object { 754, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 748, @@ -3233,6 +3351,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -3250,6 +3369,7 @@ Object { 767, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3262,6 +3382,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -3279,6 +3400,7 @@ Object { 767, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 758, @@ -3289,6 +3411,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3306,6 +3429,7 @@ Object { 776, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3318,6 +3442,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -3335,6 +3460,7 @@ Object { 776, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 771, @@ -3345,6 +3471,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -3362,6 +3489,7 @@ Object { 788, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3374,6 +3502,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -3391,6 +3520,7 @@ Object { 788, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 780, @@ -3401,6 +3531,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -3418,6 +3549,7 @@ Object { 799, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3430,6 +3562,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -3447,6 +3580,7 @@ Object { 799, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 792, @@ -3457,6 +3591,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3474,6 +3609,7 @@ Object { 809, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3486,6 +3622,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3503,6 +3640,7 @@ Object { 809, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 803, @@ -3513,6 +3651,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3530,6 +3669,7 @@ Object { 819, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3542,6 +3682,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3559,6 +3700,7 @@ Object { 819, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 813, @@ -3569,6 +3711,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -3586,6 +3729,7 @@ Object { 826, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3598,6 +3742,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -3615,6 +3760,7 @@ Object { 826, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 823, @@ -3625,6 +3771,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3642,6 +3789,7 @@ Object { 836, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3654,6 +3802,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3671,6 +3820,7 @@ Object { 836, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 830, @@ -3681,6 +3831,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3698,6 +3849,7 @@ Object { 846, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3710,6 +3862,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3727,6 +3880,7 @@ Object { 846, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 840, @@ -3737,6 +3891,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -3754,6 +3909,7 @@ Object { 854, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3766,6 +3922,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -3783,6 +3940,7 @@ Object { 854, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 850, @@ -3793,6 +3951,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -3810,6 +3969,7 @@ Object { 867, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3822,6 +3982,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -3839,6 +4000,7 @@ Object { 867, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 858, @@ -3849,6 +4011,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3866,6 +4029,7 @@ Object { 877, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3878,6 +4042,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -3895,6 +4060,7 @@ Object { 877, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 871, @@ -3905,6 +4071,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -3922,6 +4089,7 @@ Object { 888, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3934,6 +4102,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -3951,6 +4120,7 @@ Object { 888, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 881, @@ -3961,6 +4131,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -3978,6 +4149,7 @@ Object { 896, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -3990,6 +4162,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -4007,6 +4180,7 @@ Object { 896, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 892, @@ -4017,6 +4191,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -4034,6 +4209,7 @@ Object { 906, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -4046,6 +4222,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -4063,6 +4240,7 @@ Object { 906, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 900, @@ -4073,6 +4251,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -4090,6 +4269,7 @@ Object { 916, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -4102,6 +4282,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -4119,6 +4300,7 @@ Object { 916, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 910, @@ -4129,6 +4311,7 @@ Object { Object { "importKind": "value", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -4146,6 +4329,7 @@ Object { 922, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -4158,6 +4342,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -4175,6 +4360,7 @@ Object { 922, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 920, @@ -4205,7 +4391,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -4223,6 +4411,7 @@ Object { 958, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -4239,13 +4428,18 @@ Object { 961, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -4263,6 +4457,7 @@ Object { 995, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -4275,6 +4470,7 @@ Object { "line": 71, }, }, + "optional": false, "override": false, "range": Array [ 987, @@ -4282,6 +4478,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -4302,6 +4499,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -4320,13 +4518,17 @@ Object { 995, 1000, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "private", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -4344,6 +4546,7 @@ Object { 1012, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -4356,6 +4559,7 @@ Object { "line": 72, }, }, + "optional": false, "override": false, "range": Array [ 1003, @@ -4363,6 +4567,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -4383,6 +4588,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -4401,13 +4607,17 @@ Object { 1012, 1017, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -4425,6 +4635,7 @@ Object { 1028, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -4437,6 +4648,7 @@ Object { "line": 73, }, }, + "optional": false, "override": false, "range": Array [ 1020, @@ -4444,6 +4656,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -4464,6 +4677,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -4482,13 +4696,17 @@ Object { 1028, 1033, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "protected", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -4506,6 +4724,7 @@ Object { 1048, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -4518,6 +4737,7 @@ Object { "line": 74, }, }, + "optional": false, "override": false, "range": Array [ 1036, @@ -4525,6 +4745,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -4534,6 +4755,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -4551,6 +4773,7 @@ Object { 1062, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "argument": null, @@ -4623,6 +4846,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": true, "id": null, @@ -4641,7 +4865,9 @@ Object { 1048, 1075, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -4661,7 +4887,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -4679,10 +4908,12 @@ Object { 969, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -4700,6 +4931,7 @@ Object { 982, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -4716,6 +4948,7 @@ Object { 982, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -4733,7 +4966,9 @@ Object { 1077, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot index e5abd7839d2..57445e1681a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/nested-type-arguments.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -75,6 +77,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -105,6 +108,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -122,6 +126,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -152,6 +157,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -169,6 +175,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot index f3a49acbf46..6d84c412d33 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/never-type-param.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -75,6 +77,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -152,6 +155,7 @@ Object { "type": "VariableDeclaration", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -167,6 +171,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -184,9 +189,11 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -204,6 +211,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot index 96713d6b232..3326909cd75 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/new-target-in-arrow-function-body.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -40,6 +42,7 @@ Object { }, }, "meta": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -57,8 +60,10 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -76,6 +81,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 16, @@ -101,7 +107,9 @@ Object { 10, 26, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot index 89a610a20a4..6d2102b8086 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/non-null-assertion-operator.src.ts.shot @@ -8,9 +8,11 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -28,9 +30,11 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -48,6 +52,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -65,6 +70,7 @@ Object { 58, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -87,6 +93,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -104,6 +111,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "computed": false, @@ -119,6 +127,7 @@ Object { }, "object": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -136,6 +145,7 @@ Object { 73, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -155,6 +165,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -172,6 +183,7 @@ Object { 79, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 72, @@ -231,9 +243,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -251,6 +265,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -264,6 +279,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -314,6 +330,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -331,6 +348,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -341,7 +359,9 @@ Object { 0, 82, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot index 403567c06b8..38a5dee4492 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/null-and-undefined-type-annotations.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -101,6 +102,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot index ab950d8bab9..6d53507132c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/nullish-coalescing.src.ts.shot @@ -12,6 +12,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -29,9 +30,11 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -49,6 +52,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -138,9 +142,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -158,6 +164,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -171,6 +178,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -228,7 +236,9 @@ Object { 0, 70, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot index 062383c2bf4..d8889f407b3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-escaped-properties.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics object-with-escaped-properties.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -100,6 +101,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -172,6 +174,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -190,7 +193,9 @@ Object { 26, 31, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -217,6 +222,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -313,11 +319,15 @@ Object { "type": "ExpressionStatement", }, Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -347,14 +357,16 @@ Object { "line": 7, }, }, + "optional": false, "override": false, "range": Array [ 68, 79, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "loc": Object { "end": Object { @@ -392,7 +404,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -410,7 +425,9 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 23, @@ -426,7 +443,9 @@ Object { 81, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot index a6e07a65ef7..83b6c9fc83d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/object-with-typed-methods.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +26,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -135,6 +137,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -215,6 +218,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -232,6 +236,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -252,6 +257,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -269,6 +275,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -346,6 +353,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -426,6 +434,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -443,6 +452,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -463,6 +473,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -480,6 +491,7 @@ Object { 109, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -557,6 +569,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -610,11 +623,13 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -632,6 +647,7 @@ Object { 147, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -672,6 +688,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -687,6 +704,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -779,6 +797,7 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot index c3bfe5cfc7b..95c6baf56da 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-non-null-assertion.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -25,6 +26,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -42,9 +44,11 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -62,6 +66,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 40, @@ -101,6 +106,7 @@ Object { 51, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -135,6 +141,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -164,6 +171,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -181,9 +189,11 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -201,6 +211,7 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 55, @@ -226,6 +237,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -243,6 +255,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 55, @@ -266,6 +279,7 @@ Object { 72, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -300,6 +314,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -317,6 +332,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -334,9 +350,11 @@ Object { 80, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -354,6 +372,7 @@ Object { 85, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 77, @@ -409,6 +428,7 @@ Object { 89, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -427,6 +447,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -456,6 +477,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -473,9 +495,11 @@ Object { 97, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -493,6 +517,7 @@ Object { 102, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 94, @@ -534,6 +559,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -551,6 +577,7 @@ Object { 110, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 93, @@ -574,6 +601,7 @@ Object { 112, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -592,6 +620,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -609,6 +638,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -626,9 +656,11 @@ Object { 120, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -646,6 +678,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 117, @@ -701,6 +734,7 @@ Object { 129, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -719,6 +753,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -748,6 +783,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -765,9 +801,11 @@ Object { 137, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -785,6 +823,7 @@ Object { 142, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 134, @@ -826,6 +865,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -843,6 +883,7 @@ Object { 150, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 133, @@ -866,6 +907,7 @@ Object { 152, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -900,9 +942,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -920,6 +964,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -933,6 +978,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -990,7 +1036,9 @@ Object { 0, 155, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot index e83b80e7dcb..389216de89c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call-with-parens.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -24,6 +25,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -41,9 +43,11 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -61,6 +65,7 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 51, @@ -84,6 +89,7 @@ Object { 60, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -118,6 +124,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -146,6 +153,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -163,9 +171,11 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -183,6 +193,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 66, @@ -208,6 +219,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -225,6 +237,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 65, @@ -248,6 +261,7 @@ Object { 80, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -266,6 +280,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -294,6 +309,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -311,9 +327,11 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -331,6 +349,7 @@ Object { 92, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 85, @@ -340,6 +359,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -357,6 +377,7 @@ Object { 96, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 85, @@ -380,6 +401,7 @@ Object { 98, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -414,6 +436,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -454,6 +477,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -471,9 +495,11 @@ Object { 107, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -491,6 +517,7 @@ Object { 111, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 104, @@ -500,6 +527,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -517,6 +545,7 @@ Object { 118, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 104, @@ -542,6 +571,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -559,6 +589,7 @@ Object { 122, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 103, @@ -582,6 +613,7 @@ Object { 124, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -600,6 +632,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -640,6 +673,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -657,9 +691,11 @@ Object { 132, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -677,6 +713,7 @@ Object { 136, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 129, @@ -686,6 +723,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -703,6 +741,7 @@ Object { 143, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 129, @@ -712,6 +751,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -729,6 +769,7 @@ Object { 147, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 129, @@ -752,6 +793,7 @@ Object { 149, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -786,10 +828,12 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -807,6 +851,7 @@ Object { 159, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -824,6 +869,7 @@ Object { 163, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -858,12 +904,14 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -881,6 +929,7 @@ Object { 172, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -898,6 +947,7 @@ Object { 176, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -931,6 +981,7 @@ Object { 179, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -949,6 +1000,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -956,6 +1008,7 @@ Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -973,6 +1026,7 @@ Object { 187, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -990,6 +1044,7 @@ Object { 191, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1023,6 +1078,7 @@ Object { 196, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1057,6 +1113,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -1073,6 +1130,7 @@ Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -1090,6 +1148,7 @@ Object { 205, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1107,6 +1166,7 @@ Object { 209, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1126,6 +1186,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -1143,6 +1204,7 @@ Object { 214, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 201, @@ -1183,9 +1245,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -1203,6 +1267,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1216,6 +1281,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -1273,7 +1339,9 @@ Object { 0, 217, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot index f81f439a920..64eafcb5be3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-call.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -24,6 +25,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -41,9 +43,11 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -61,6 +65,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 44, @@ -84,6 +89,7 @@ Object { 53, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -118,6 +124,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -146,6 +153,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -163,9 +171,11 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -183,6 +193,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 57, @@ -192,6 +203,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -209,6 +221,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 57, @@ -232,6 +245,7 @@ Object { 70, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -266,6 +280,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -294,6 +309,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -311,9 +327,11 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -331,6 +349,7 @@ Object { 81, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 74, @@ -340,6 +359,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -357,6 +377,7 @@ Object { 85, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 74, @@ -380,6 +401,7 @@ Object { 87, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -414,6 +436,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -454,6 +477,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -471,9 +495,11 @@ Object { 94, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -491,6 +517,7 @@ Object { 98, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 91, @@ -500,6 +527,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -517,6 +545,7 @@ Object { 105, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 91, @@ -526,6 +555,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -543,6 +573,7 @@ Object { 108, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 91, @@ -566,6 +597,7 @@ Object { 110, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -600,6 +632,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -640,6 +673,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -657,9 +691,11 @@ Object { 117, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -677,6 +713,7 @@ Object { 121, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 114, @@ -686,6 +723,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -703,6 +741,7 @@ Object { 128, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 114, @@ -712,6 +751,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -729,6 +769,7 @@ Object { 132, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 114, @@ -752,6 +793,7 @@ Object { 134, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -786,10 +828,12 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -807,6 +851,7 @@ Object { 142, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -824,6 +869,7 @@ Object { 146, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -858,12 +904,14 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], "callee": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -881,6 +929,7 @@ Object { 153, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -898,6 +947,7 @@ Object { 157, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -915,6 +965,7 @@ Object { 159, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -949,12 +1000,14 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], "callee": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -972,6 +1025,7 @@ Object { 166, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -989,6 +1043,7 @@ Object { 170, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1006,6 +1061,7 @@ Object { 174, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1040,6 +1096,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -1056,6 +1113,7 @@ Object { "object": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -1073,6 +1131,7 @@ Object { 182, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1090,9 +1149,11 @@ Object { 186, ], "type": "CallExpression", + "typeParameters": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -1110,6 +1171,7 @@ Object { 190, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 179, @@ -1166,9 +1228,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -1186,6 +1250,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1199,6 +1264,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -1256,7 +1322,9 @@ Object { 0, 193, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot index 045ea65c91b..4cb40072283 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-non-null-assertion.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -35,6 +36,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -52,6 +54,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -97,6 +100,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -114,6 +118,7 @@ Object { 59, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 40, @@ -154,6 +159,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -181,6 +187,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -198,6 +205,7 @@ Object { 67, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -259,6 +267,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -276,6 +285,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 63, @@ -300,6 +310,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -327,6 +338,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -344,6 +356,7 @@ Object { 92, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -405,6 +418,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -422,6 +436,7 @@ Object { 109, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 88, @@ -446,6 +461,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -473,6 +489,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -490,9 +507,11 @@ Object { 116, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -510,6 +529,7 @@ Object { 121, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 113, @@ -592,6 +612,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": true, "loc": Object { @@ -619,6 +640,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -636,9 +658,11 @@ Object { 139, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -656,6 +680,7 @@ Object { 144, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 136, @@ -738,6 +763,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": true, "loc": Object { @@ -765,6 +791,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -782,9 +809,11 @@ Object { 163, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -802,6 +831,7 @@ Object { 168, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 160, @@ -900,9 +930,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -920,6 +952,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -933,6 +966,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -990,7 +1024,9 @@ Object { 0, 182, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot index 8f7d8d948be..b9bcd42e586 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access-with-parens.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -22,6 +23,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -39,6 +41,7 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -99,6 +102,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": true, "loc": Object { @@ -125,6 +129,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -142,6 +147,7 @@ Object { 71, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -228,6 +234,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -254,6 +261,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -271,6 +279,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -357,6 +366,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": true, "loc": Object { @@ -395,6 +405,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -412,6 +423,7 @@ Object { 105, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -524,6 +536,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -562,6 +575,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -579,6 +593,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -691,6 +706,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": true, "loc": Object { @@ -741,6 +757,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -758,6 +775,7 @@ Object { 147, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -912,9 +930,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -932,6 +952,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -945,6 +966,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -1002,7 +1024,9 @@ Object { 0, 167, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot index 1e9ac0f392a..65a342a69b0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-element-access.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -22,6 +23,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -39,6 +41,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -99,6 +102,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -125,6 +129,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -142,6 +147,7 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { @@ -228,6 +234,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -254,6 +261,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -271,6 +279,7 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -357,6 +366,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -383,6 +393,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -400,6 +411,7 @@ Object { 92, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -486,6 +498,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -524,6 +537,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -541,6 +555,7 @@ Object { 107, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -653,6 +668,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": true, @@ -691,6 +707,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -708,6 +725,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -836,9 +854,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -856,6 +876,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -869,6 +890,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -926,7 +948,9 @@ Object { 0, 141, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot index ee3b4a48c98..8d488e0d54e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-non-null-assertion.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -35,6 +36,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -52,9 +54,11 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -72,6 +76,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 40, @@ -97,6 +102,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -114,6 +120,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 40, @@ -154,6 +161,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -181,6 +189,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -198,9 +207,11 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -218,6 +229,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 60, @@ -259,6 +271,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -276,6 +289,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 59, @@ -300,6 +314,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -327,6 +342,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -344,9 +360,11 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -364,6 +382,7 @@ Object { 89, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 81, @@ -405,6 +424,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -422,6 +442,7 @@ Object { 97, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 80, @@ -462,9 +483,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -482,6 +505,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -495,6 +519,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -552,7 +577,9 @@ Object { 0, 100, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot index fecbd7eaee9..abb458ba8fb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain-with-parens.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -22,6 +23,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -39,9 +41,11 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -59,6 +63,7 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 47, @@ -99,6 +104,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -125,6 +131,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -142,9 +149,11 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -162,6 +171,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 61, @@ -187,6 +197,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -204,6 +215,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 60, @@ -228,6 +240,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -254,6 +267,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -271,9 +285,11 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -291,6 +307,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 81, @@ -300,6 +317,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -317,6 +335,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 81, @@ -357,6 +376,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -395,6 +415,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -412,9 +433,11 @@ Object { 104, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -432,6 +455,7 @@ Object { 108, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 101, @@ -441,6 +465,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -458,6 +483,7 @@ Object { 115, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 101, @@ -483,6 +509,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -500,6 +527,7 @@ Object { 121, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 100, @@ -524,6 +552,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -562,6 +591,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -579,9 +609,11 @@ Object { 129, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -599,6 +631,7 @@ Object { 133, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 126, @@ -608,6 +641,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -625,6 +659,7 @@ Object { 140, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 126, @@ -634,6 +669,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -651,6 +687,7 @@ Object { 146, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 126, @@ -691,6 +728,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "computed": false, "loc": Object { @@ -741,6 +779,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -758,9 +797,11 @@ Object { 155, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -778,6 +819,7 @@ Object { 159, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 152, @@ -787,6 +829,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -804,6 +847,7 @@ Object { 166, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 152, @@ -813,6 +857,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -830,6 +875,7 @@ Object { 172, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 152, @@ -855,6 +901,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -872,6 +919,7 @@ Object { 178, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 151, @@ -912,9 +960,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -932,6 +982,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -945,6 +996,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -1002,7 +1054,9 @@ Object { 0, 181, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot index 3ff9da972a4..d6a2c2b96e8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/optional-chain.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -22,6 +23,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -39,9 +41,11 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -59,6 +63,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 40, @@ -99,6 +104,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -125,6 +131,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -142,9 +149,11 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -162,6 +171,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 52, @@ -171,6 +181,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -188,6 +199,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 52, @@ -228,6 +240,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -254,6 +267,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -271,9 +285,11 @@ Object { 73, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -291,6 +307,7 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 70, @@ -300,6 +317,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -317,6 +335,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 70, @@ -357,6 +376,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -395,6 +415,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -412,9 +433,11 @@ Object { 91, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -432,6 +455,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 88, @@ -441,6 +465,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -458,6 +483,7 @@ Object { 102, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 88, @@ -467,6 +493,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -484,6 +511,7 @@ Object { 107, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 88, @@ -524,6 +552,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "computed": false, @@ -562,6 +591,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -579,9 +609,11 @@ Object { 114, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -599,6 +631,7 @@ Object { 118, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 111, @@ -608,6 +641,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -625,6 +659,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 111, @@ -634,6 +669,7 @@ Object { }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -651,6 +687,7 @@ Object { 131, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 111, @@ -707,9 +744,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -727,6 +766,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -740,6 +780,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -797,7 +838,9 @@ Object { 0, 134, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/parenthesized-use-strict.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/parenthesized-use-strict.src.ts.shot index 9ede9a55aa6..9f49ca46bda 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/parenthesized-use-strict.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/parenthesized-use-strict.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics parenthesized-use-strict.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot index 724d7ee43d8..384a9c4db14 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/private-fields-in-in.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics private-fields-in-in.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { "loc": Object { "end": Object { @@ -37,19 +41,24 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 21, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -67,6 +76,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -79,6 +89,7 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 24, @@ -86,6 +97,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -126,6 +138,7 @@ Object { 62, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -143,6 +156,7 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -179,6 +193,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -194,6 +209,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -211,13 +227,16 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 30, 67, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -237,7 +256,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -255,7 +277,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -271,7 +295,9 @@ Object { 69, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot index 021bda1ad2f..b7b7d0a21c1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-arrays.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -23,6 +24,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -40,9 +42,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -60,6 +64,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 45, @@ -83,6 +88,7 @@ Object { 56, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -101,6 +107,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -136,6 +143,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -153,9 +161,11 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -173,6 +183,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 75, @@ -196,6 +207,7 @@ Object { 93, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -230,9 +242,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -250,6 +264,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -263,6 +278,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -313,6 +329,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -330,6 +347,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -375,13 +393,16 @@ Object { 0, 106, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -397,6 +418,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -414,9 +436,11 @@ Object { 152, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -434,6 +458,7 @@ Object { 158, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 149, @@ -457,6 +482,7 @@ Object { 160, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -475,6 +501,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -510,6 +537,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -527,9 +555,11 @@ Object { 182, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -547,6 +577,7 @@ Object { 187, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 179, @@ -570,6 +601,7 @@ Object { 197, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -604,9 +636,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -624,6 +658,7 @@ Object { 120, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -637,6 +672,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -729,7 +765,9 @@ Object { 108, 210, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot index 384021ae937..789b6940c55 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/readonly-tuples.src.ts.shot @@ -8,6 +8,7 @@ Object { "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [ Object { @@ -23,6 +24,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -40,6 +42,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -81,6 +84,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -98,9 +102,11 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -118,6 +124,7 @@ Object { 61, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 50, @@ -141,6 +148,7 @@ Object { 70, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -159,6 +167,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "left": Object { "computed": true, @@ -173,6 +182,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -190,6 +200,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { @@ -286,9 +297,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -306,6 +319,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -319,6 +333,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, @@ -430,7 +445,9 @@ Object { 0, 118, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot index a5abfcf9f82..6783484bf3e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-and-and.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics short-circuiting-assignment-and-and.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +43,7 @@ Object { 7, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -57,6 +61,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot index fa24b385c5c..5dabb523118 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-or-or.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics short-circuiting-assignment-or-or.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +43,7 @@ Object { 7, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -57,6 +61,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot index 720ab2655b1..d00f83597a6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/short-circuiting-assignment-question-question.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript basics short-circuiting-assignment-question-question.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -40,6 +43,7 @@ Object { 7, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -57,6 +61,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot index 1c4b6ba2cc6..60577d28b4a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/symbol-type-param.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -43,6 +45,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +59,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -106,6 +110,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -123,6 +128,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -185,7 +191,9 @@ Object { 0, 42, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot index 9a51fa39071..244d0052276 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-function-type.src.ts.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -25,6 +26,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,6 +56,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -146,7 +149,9 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, + "typeParameters": undefined, }, "exportKind": "type", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot index 532c3fe25fe..bce20128d3f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export-object-type.src.ts.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -25,6 +26,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -54,10 +56,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -75,6 +79,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -136,6 +141,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, "exportKind": "type", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot index 5ff70600da2..f6aa2333339 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-export.src.ts.shot @@ -8,6 +8,7 @@ Object { "declaration": Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -25,6 +26,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -94,6 +96,7 @@ Object { }, ], }, + "typeParameters": undefined, }, "exportKind": "type", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot index 393250626d3..b5e6bcb8d2a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration-with-constrained-type-parameter.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -23,6 +24,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -90,6 +93,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -120,6 +124,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -137,6 +142,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -165,6 +171,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -182,6 +189,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -231,6 +239,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -248,6 +257,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot index daccc187aa6..d3804f1e937 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-declaration.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -23,6 +24,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -90,6 +93,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -120,6 +124,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -137,6 +142,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -165,6 +171,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -182,6 +189,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -214,6 +222,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -231,6 +240,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot index 3d9f2b2c7ba..545a5e2b59f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-alias-object-without-annotation.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,10 +54,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -73,6 +77,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,10 +133,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -149,6 +156,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -177,6 +185,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot index a82e13d2933..61082763c66 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-arrow-function.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -25,6 +26,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -80,6 +82,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -166,6 +169,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -183,6 +187,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 31, @@ -193,6 +198,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot index 9c22a9ff16a..a9cebd20e86 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-function.src.ts.shot @@ -42,9 +42,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -62,6 +64,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -75,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -161,6 +165,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -178,6 +183,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 32, @@ -188,6 +194,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot index 3686077e03d..efcdd6e5e9a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-interface.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -129,6 +133,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -146,6 +151,7 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 45, @@ -157,6 +163,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -176,7 +183,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -194,6 +203,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -210,6 +220,7 @@ Object { 60, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot index ad528e81e7a..c84fa6d40fa 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-in-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics type-assertion-in-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 21, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -84,6 +91,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -156,12 +164,17 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -179,6 +192,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -190,14 +204,16 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 63, 108, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "async": false, "body": Object { @@ -309,6 +325,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -328,7 +345,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -346,7 +366,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -362,7 +384,9 @@ Object { 110, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot index 289b4889494..2b0109966c6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-arrow-function.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -25,6 +26,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -80,6 +82,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -166,6 +169,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -183,6 +187,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 31, @@ -226,6 +231,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot index e2a15da93a8..639bad6d9bc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-function.src.ts.shot @@ -42,9 +42,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -62,6 +64,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -75,6 +78,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -161,6 +165,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -178,6 +183,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 37, @@ -221,6 +227,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot index a52c851d367..7b1f554558a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-interface.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -129,6 +133,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -146,6 +151,7 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 45, @@ -190,6 +196,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -209,7 +216,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -227,6 +236,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -243,6 +253,7 @@ Object { 70, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot index 9f912812e54..4b8449944b0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-assertion-with-guard-in-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics type-assertion-with-guard-in-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 21, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -84,6 +91,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -189,12 +197,17 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -212,6 +225,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -223,14 +237,16 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 73, 128, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "async": false, "body": Object { @@ -375,6 +391,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -394,7 +411,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -412,7 +432,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -428,7 +450,9 @@ Object { 130, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot index dd181db680e..c4389a3250a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-arrow-function.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -25,6 +26,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -34,6 +36,7 @@ Object { "argument": Object { "left": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -51,6 +54,7 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -154,6 +158,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -240,6 +245,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -257,6 +263,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 27, @@ -300,6 +307,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot index b72ccc2dc4c..c4827039bed 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-function.src.ts.shot @@ -11,6 +11,7 @@ Object { "argument": Object { "left": Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -28,6 +29,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -116,9 +118,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -136,6 +140,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -149,6 +154,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -235,6 +241,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -252,6 +259,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 27, @@ -295,6 +303,7 @@ Object { }, }, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot index be5f2276a34..760f643e1b7 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-interface.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -129,6 +133,7 @@ Object { }, }, "parameterName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -146,6 +151,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 39, @@ -190,6 +196,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -209,7 +216,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -227,6 +236,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -243,6 +253,7 @@ Object { 56, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot index 7ef5b6f7f37..76405ed6613 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-guard-in-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript basics type-guard-in-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -84,6 +91,7 @@ Object { 70, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -101,6 +109,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -137,6 +146,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -242,12 +252,17 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -265,6 +280,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -276,14 +292,16 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 78, 145, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "async": false, "body": Object { @@ -323,6 +341,7 @@ Object { 140, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -340,6 +359,7 @@ Object { 140, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -481,6 +501,7 @@ Object { }, }, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, }, ], @@ -500,7 +521,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -518,7 +542,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -534,7 +560,9 @@ Object { 147, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot index 3ab6a507d77..78569c9d383 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type-with-type-parameters-in-type-reference.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -73,6 +76,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -134,6 +138,7 @@ Object { }, }, "qualifier": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -151,6 +156,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 11, @@ -202,6 +208,7 @@ Object { "type": "TSTypeParameterInstantiation", }, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot index b7e9a0455ef..3da18228ba4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-import-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -110,11 +112,14 @@ Object { 27, ], "type": "TSTypeQuery", + "typeParameters": undefined, }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -132,6 +137,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -196,6 +202,7 @@ Object { }, }, "qualifier": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -213,6 +220,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 38, @@ -248,6 +256,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -265,6 +274,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -276,6 +286,7 @@ Object { "type": "TSTypeParameterInstantiation", }, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot index 4d3a883ebba..fd0197325f6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-export-specifiers.src.ts.shot @@ -44,6 +44,7 @@ Object { Object { "exportKind": "type", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -61,6 +62,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -90,6 +93,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 9, @@ -100,6 +104,7 @@ Object { Object { "exportKind": "type", "exported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -117,6 +122,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -129,6 +135,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -146,6 +153,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot index eb87732777e..e250bf09a4e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-only-import-specifiers.src.ts.shot @@ -43,6 +43,7 @@ Object { Object { "importKind": "type", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -60,6 +61,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -72,6 +74,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -89,6 +92,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 9, @@ -99,6 +103,7 @@ Object { Object { "importKind": "type", "imported": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -116,6 +121,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -128,6 +134,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -145,6 +152,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 17, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot index 5afaa0b1815..ae6510407f6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments-heritage.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript basics type-parameters-comments-heritage.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 74, @@ -56,6 +62,7 @@ Object { 74, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -73,6 +80,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "superTypeParameters": Object { "loc": Object { @@ -103,6 +111,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 60, @@ -120,6 +129,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -158,6 +168,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -175,6 +186,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -192,6 +204,7 @@ Object { }, }, Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -210,7 +223,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -228,7 +244,9 @@ Object { 85, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 89, @@ -244,6 +262,7 @@ Object { 164, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 61, @@ -261,6 +280,7 @@ Object { 136, ], "type": "Identifier", + "typeAnnotation": undefined, }, "superTypeParameters": Object { "loc": Object { @@ -291,6 +311,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 75, @@ -308,6 +329,7 @@ Object { 150, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -381,6 +403,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -398,6 +421,7 @@ Object { 99, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -437,6 +461,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 51, @@ -454,6 +479,7 @@ Object { 216, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -499,6 +525,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 65, @@ -516,6 +543,7 @@ Object { 230, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -529,6 +557,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -546,6 +575,7 @@ Object { 178, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -589,6 +619,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -606,6 +637,7 @@ Object { 192, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -645,6 +677,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 65, @@ -662,6 +695,7 @@ Object { 310, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -707,6 +741,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 79, @@ -724,6 +759,7 @@ Object { 324, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -737,6 +773,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -754,6 +791,7 @@ Object { 259, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -832,6 +870,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -849,6 +888,7 @@ Object { 273, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot index c9083becf46..506d536cab3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-parameters-comments.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript basics type-parameters-comments.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -24,6 +26,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -70,6 +73,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -87,6 +91,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -134,9 +139,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -154,6 +161,7 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -170,6 +178,7 @@ Object { 44, 87, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -198,6 +207,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -215,6 +225,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -251,9 +262,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -271,6 +284,7 @@ Object { 100, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -287,6 +301,7 @@ Object { 88, 137, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { @@ -319,6 +334,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -336,6 +352,7 @@ Object { 129, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -351,6 +368,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -368,6 +386,7 @@ Object { 113, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot index 82a9a58fa42..97b337b9834 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/type-reference-comments.src.ts.shot @@ -4,12 +4,17 @@ exports[`typescript basics type-reference-comments.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +32,7 @@ Object { 34, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -38,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 26, 75, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -80,6 +87,7 @@ Object { "type": "TSTypeReference", "typeName": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -97,6 +105,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -113,6 +122,7 @@ Object { 53, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -130,6 +140,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, @@ -190,7 +201,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -208,7 +222,9 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -224,7 +240,9 @@ Object { 77, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot index 620ee4534af..16718475226 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-bigint.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSBigIntKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot index bf9bd9752e9..6bae375246c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-boolean.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSBooleanKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot index 3b3d942aacb..cd61063d33c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-false.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -75,6 +77,7 @@ Object { ], "type": "TSLiteralType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot index a8e8e4e05e1..2ef2bc7ac88 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-never.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSNeverKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot index 27159307ff4..3063803b21a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-null.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSNullKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot index e5a6fb5eabb..136af862576 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-number.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSNumberKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot index 27f8ece1972..93ff8619275 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-object.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSObjectKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot index 912c79a8e3a..ef939b6e06d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-string.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSStringKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot index 6eee3ade9a7..293287d670b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-symbol.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSSymbolKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot index 17a9deab3dc..6c85c788933 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-true.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -75,6 +77,7 @@ Object { ], "type": "TSLiteralType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot index 3a1400315f3..83bce206ac9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-undefined.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSUndefinedKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot index 47fc16eaf9e..b32a66f87d3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-unknown.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSUnknownKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot index 32c951e71f8..3ba4accdf4f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-keyword-void.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSVoidKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot index 33ce59fde4d..252f85afc2c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-method-signature.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,9 +54,11 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -72,6 +76,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -87,6 +92,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -181,11 +187,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -203,6 +212,7 @@ Object { 40, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -218,6 +228,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -268,6 +279,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -285,6 +297,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -329,6 +342,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -346,6 +360,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -379,6 +394,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -396,6 +412,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -419,6 +436,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot index 8a2714fb4ff..cd43c09cf0b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/typed-this.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -27,6 +29,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 57, @@ -88,6 +92,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -141,6 +146,7 @@ Object { }, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -191,6 +197,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -208,6 +215,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -253,6 +261,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, }, }, @@ -298,6 +307,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -317,7 +327,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -335,6 +347,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -351,6 +364,7 @@ Object { 89, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot index 76d5c7dc2ff..dd98a273ca8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/union-intersection.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -154,6 +155,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -283,6 +285,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -448,6 +451,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -611,6 +615,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -628,6 +633,7 @@ Object { 179, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -697,10 +703,12 @@ Object { }, ], }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -718,6 +726,7 @@ Object { 225, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -806,10 +815,12 @@ Object { }, ], }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -827,6 +838,7 @@ Object { 270, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -879,10 +891,12 @@ Object { }, ], }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -900,6 +914,7 @@ Object { 313, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -952,6 +967,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot index c614f3b80e6..e6be3579754 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/unique-symbol.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -74,6 +76,7 @@ Object { "type": "TSSymbolKeyword", }, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot index ee859eed3c3..2a6acdb6186 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/unknown-type-annotation.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot index 9fdad54e0a8..4f5708663e4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-definite-assignment.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -101,6 +102,7 @@ Object { Object { "definite": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -194,6 +196,7 @@ Object { Object { "definite": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot index c406b5f41b1..945791f1e11 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-dotted-type.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -60,6 +61,7 @@ Object { "typeName": Object { "left": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -77,6 +79,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -93,6 +96,7 @@ Object { 12, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -110,6 +114,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, @@ -128,6 +133,7 @@ Object { 14, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -145,6 +151,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot index 8e567228bb6..22d3088a1ab 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/var-with-type.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -119,6 +120,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot index 401984a4aaf..ee4becfbc89 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/basics/variable-declaration-type-annotation-spacing.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot index 389e140fdc1..84d87561a07 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/abstract-class.src.ts.shot @@ -24,7 +24,9 @@ Object { "type": "ClassBody", }, "declare": true, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -42,7 +44,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -58,7 +62,9 @@ Object { 31, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot index 50c2a742993..78264807b98 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/class.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript declare class.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,7 +24,9 @@ Object { "type": "ClassBody", }, "declare": true, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -41,7 +44,9 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -57,7 +62,9 @@ Object { 22, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot index fc9554a35b2..2fc02c2308f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/enum.src.ts.shot @@ -7,6 +7,7 @@ Object { "const": false, "declare": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -24,6 +25,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,6 +41,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -56,7 +59,9 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, @@ -76,6 +81,7 @@ Object { Object { "computed": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -93,7 +99,9 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "initializer": undefined, "loc": Object { "end": Object { "column": 7, diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot index 8c3b9bd907f..1cf91d345f3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/function.src.ts.shot @@ -10,6 +10,7 @@ Object { "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -27,6 +28,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -78,6 +80,7 @@ Object { }, }, "type": "TSDeclareFunction", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot index 15a936cba25..8d50d5601de 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/interface.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": true, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -41,6 +43,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { 26, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot index d014d44b687..27c64a55228 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/module.src.ts.shot @@ -25,6 +25,7 @@ Object { "declare": true, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -42,6 +43,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot index 2e74ae894d3..849614bd130 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/namespace.src.ts.shot @@ -25,6 +25,7 @@ Object { "declare": true, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -42,6 +43,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot index 58f9e7a492f..b8b43753ae0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/type-alias.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -23,6 +24,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -56,6 +58,7 @@ Object { ], "type": "TSStringKeyword", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot index e0e7afa797a..a243c013741 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/declare/variable.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot index d63d43f8cda..b1e770513ed 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-instance-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators accessor-decorators accessor-decorator-factory-in Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { @@ -33,6 +35,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -50,6 +53,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -67,6 +71,7 @@ Object { 38, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -86,6 +91,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -103,6 +109,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -115,6 +122,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 18, @@ -122,6 +130,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -158,6 +167,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -175,6 +185,7 @@ Object { 67, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 60, @@ -215,6 +226,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -233,7 +245,9 @@ Object { 48, 70, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -253,7 +267,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -271,7 +288,9 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -287,7 +306,9 @@ Object { 72, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot index 7a5cbd0fecf..7d1123ac28e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-factory-static-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators accessor-decorators accessor-decorator-factory-st Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { @@ -27,6 +29,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -44,6 +47,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -93,6 +97,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -110,6 +115,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -127,6 +133,7 @@ Object { 37, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -146,6 +153,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -163,6 +171,7 @@ Object { 56, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -175,6 +184,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 18, @@ -182,6 +192,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -218,6 +229,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -235,6 +247,7 @@ Object { 77, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 68, @@ -275,6 +288,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -293,7 +307,9 @@ Object { 56, 80, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -313,7 +329,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -331,7 +350,9 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -347,7 +368,9 @@ Object { 82, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot index 7fb415efb90..15c4040b246 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-instance-member.src.ts.shot @@ -4,13 +4,16 @@ exports[`typescript decorators accessor-decorators accessor-decorator-instance-m Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -28,6 +31,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,6 +51,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -64,6 +69,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -76,6 +82,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -83,6 +90,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -119,6 +127,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -136,6 +145,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 43, @@ -176,6 +186,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -194,7 +205,9 @@ Object { 31, 53, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -214,7 +227,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -232,7 +248,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -248,7 +266,9 @@ Object { 55, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot index 5ff87d8244c..e1290fd6d76 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/accessor-decorators/accessor-decorator-static-member.src.ts.shot @@ -4,13 +4,16 @@ exports[`typescript decorators accessor-decorators accessor-decorator-static-mem Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -28,6 +31,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,6 +51,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -64,6 +69,7 @@ Object { 44, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -76,6 +82,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 17, @@ -83,11 +90,13 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -120,6 +129,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -137,6 +147,7 @@ Object { 65, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 58, @@ -160,6 +171,7 @@ Object { 69, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -177,6 +189,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "AssignmentExpression", }, @@ -213,6 +226,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -228,6 +242,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -245,13 +260,16 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "range": Array [ 44, 76, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -271,7 +289,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -289,7 +310,9 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -305,7 +328,9 @@ Object { 78, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot index 1fbb0a25917..132245e6798 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator-factory.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript decorators class-decorators class-decorator-factory.src 1`] Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,6 +23,7 @@ Object { ], "type": "ClassBody", }, + "declare": false, "decorators": Array [ Object { "expression": Object { @@ -41,6 +43,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -58,6 +61,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -107,6 +111,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -124,6 +129,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -141,6 +147,7 @@ Object { 36, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -160,6 +167,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -177,7 +185,9 @@ Object { 55, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 21, @@ -193,7 +203,9 @@ Object { 58, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot index 05cbc445ddf..c5ad448350f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-decorator.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript decorators class-decorators class-decorator.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,9 +23,11 @@ Object { ], "type": "ClassBody", }, + "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -42,6 +45,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -61,6 +65,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -78,7 +83,9 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 12, @@ -94,7 +101,9 @@ Object { 20, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot index a91144b6752..e0f6249be85 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/class-parameter-property.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators class-decorators class-parameter-property.src 1`] Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -84,6 +92,7 @@ Object { "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -101,6 +110,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -132,6 +142,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -197,7 +208,9 @@ Object { 23, 48, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -217,7 +230,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -235,7 +251,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -251,7 +269,9 @@ Object { 50, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot index 481ab31bcda..ef6941711c5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-default-class-decorator.src.ts.shot @@ -5,6 +5,7 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -23,9 +24,11 @@ Object { ], "type": "ClassBody", }, + "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -43,6 +46,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -62,6 +66,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -79,7 +84,9 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 27, @@ -95,7 +102,9 @@ Object { 35, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot index 8100149b1b6..dba1ae6fd05 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/class-decorators/export-named-class-decorator.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "assertions": Array [], "declaration": Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -24,9 +25,11 @@ Object { ], "type": "ClassBody", }, + "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -44,6 +47,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -63,6 +67,7 @@ Object { }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -80,7 +85,9 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 19, @@ -96,7 +103,9 @@ Object { 27, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot index 6342ea52eb7..fc286d2c5ae 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators method-decorators method-decorator-factory-instan Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { @@ -33,6 +35,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -50,6 +53,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -67,6 +71,7 @@ Object { 30, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -86,6 +91,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -103,6 +109,7 @@ Object { 49, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -115,6 +122,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -122,6 +130,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -142,6 +151,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -160,7 +170,9 @@ Object { 49, 54, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -180,7 +192,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -198,7 +213,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -214,7 +231,9 @@ Object { 56, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot index bcc14b2229f..41f927c3347 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-factory-static-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators method-decorators method-decorator-factory-static Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { @@ -33,6 +35,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -50,6 +53,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -67,6 +71,7 @@ Object { 25, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -86,6 +91,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -103,6 +109,7 @@ Object { 49, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -115,6 +122,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -122,6 +130,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -142,6 +151,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -160,7 +170,9 @@ Object { 49, 54, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -180,7 +192,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -198,7 +213,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -214,7 +231,9 @@ Object { 56, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot index 71b92b42d93..c8f3fa4ebad 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-instance-member.src.ts.shot @@ -4,13 +4,16 @@ exports[`typescript decorators method-decorators method-decorator-instance-membe Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -28,6 +31,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,6 +51,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -64,6 +69,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -76,6 +82,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -83,6 +90,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -103,6 +111,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -121,7 +130,9 @@ Object { 42, 47, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -141,7 +152,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -159,7 +173,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -175,7 +191,9 @@ Object { 49, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot index 889e40e00ad..98c64e562c2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/method-decorators/method-decorator-static-member.src.ts.shot @@ -4,13 +4,16 @@ exports[`typescript decorators method-decorators method-decorator-static-member. Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -28,6 +31,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,6 +51,7 @@ Object { }, ], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -64,6 +69,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -76,6 +82,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -83,6 +90,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -103,6 +111,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -121,7 +130,9 @@ Object { 42, 47, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -141,7 +152,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -159,7 +173,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -175,7 +191,9 @@ Object { 49, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot index ce780c9e900..13e6abc7abc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-array-pattern-decorator.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-array-pattern-deco Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -105,6 +113,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -122,6 +131,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -139,6 +149,7 @@ Object { 32, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -159,6 +170,7 @@ Object { ], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -176,6 +188,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -234,7 +247,9 @@ Object { 17, 49, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -254,7 +269,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -272,7 +290,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -288,7 +308,9 @@ Object { 51, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot index c66e118f659..fd55d3eb030 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-constructor.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-decorator-construc Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -26,6 +30,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 20, @@ -45,11 +51,13 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { "computed": false, @@ -82,6 +90,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -99,6 +108,7 @@ Object { 91, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 81, @@ -134,6 +144,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -151,9 +162,11 @@ Object { 100, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -171,6 +184,7 @@ Object { 106, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 94, @@ -213,6 +227,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -233,6 +248,7 @@ Object { "expression": Object { "arguments": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -250,9 +266,11 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -270,6 +288,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -287,6 +306,7 @@ Object { 51, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -355,6 +375,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 53, @@ -372,6 +393,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -382,7 +404,9 @@ Object { 31, 113, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -402,7 +426,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -420,7 +447,9 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -436,7 +465,9 @@ Object { 115, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot index 4c9cf5aed16..d796ccc509a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-instance-member.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-decorator-decorato Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 16, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -105,6 +113,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -122,6 +131,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -139,6 +149,7 @@ Object { 34, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -214,7 +225,9 @@ Object { 19, 50, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -234,7 +247,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -252,7 +268,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -268,7 +286,9 @@ Object { 52, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot index 1c08ec28f2c..9ae0c0b122e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-decorator-static-member.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-decorator-decorato Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -26,6 +30,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 22, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -105,6 +113,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -122,6 +131,7 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -139,6 +149,7 @@ Object { 47, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -214,7 +225,9 @@ Object { 32, 63, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -234,7 +247,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -252,7 +268,9 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -268,7 +286,9 @@ Object { 65, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot index 081f65f0b15..95d832d6628 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-instance-member.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-decorator-instance Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 20, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -87,6 +94,7 @@ Object { 82, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -104,6 +112,7 @@ Object { 82, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -176,6 +185,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -194,6 +204,7 @@ Object { "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -211,6 +222,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -286,7 +298,9 @@ Object { 25, 95, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -306,7 +320,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -324,7 +341,9 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -340,7 +359,9 @@ Object { 97, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot index f05264c824f..435a57981b4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-decorator-static-member.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-decorator-static-m Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -26,6 +30,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 26, @@ -45,6 +51,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -87,6 +94,7 @@ Object { 95, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -104,6 +112,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "BinaryExpression", }, @@ -176,6 +185,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -194,6 +204,7 @@ Object { "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -211,6 +222,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -286,7 +298,9 @@ Object { 38, 108, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -306,7 +320,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -324,7 +341,9 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -340,7 +359,9 @@ Object { 110, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot index 95da5564e38..2e7496ff983 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-object-pattern-decorator.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-object-pattern-dec Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -105,6 +113,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -122,6 +131,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -139,6 +149,7 @@ Object { 32, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -172,6 +183,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -189,6 +201,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -210,6 +223,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -227,6 +241,7 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -275,7 +290,9 @@ Object { 17, 49, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -295,7 +312,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -313,7 +333,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -329,7 +351,9 @@ Object { 51, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot index cde63689bf3..02508642ae3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/parameter-decorators/parameter-rest-element-decorator.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript decorators parameter-decorators parameter-rest-element-decor Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -26,6 +30,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -81,6 +89,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -98,6 +107,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "decorators": Array [ Object { @@ -124,6 +134,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -141,6 +152,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -158,6 +170,7 @@ Object { 32, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -226,13 +239,16 @@ Object { "type": "TSAnyKeyword", }, }, + "value": undefined, }, ], "range": Array [ 17, 48, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -252,7 +268,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -270,7 +289,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -286,7 +307,9 @@ Object { 50, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot index dacdd1bbe9d..b6ba2ac472c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-instance-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators property-decorators property-decorator-factory-in Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ @@ -14,6 +16,7 @@ Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -31,6 +34,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -48,6 +52,7 @@ Object { 34, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -66,7 +71,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -84,6 +91,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -95,17 +103,20 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 26, 40, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ @@ -113,6 +124,7 @@ Object { "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -130,6 +142,7 @@ Object { 52, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -147,6 +160,7 @@ Object { 54, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -165,7 +179,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -183,6 +199,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -194,17 +211,20 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 45, 86, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -222,6 +242,7 @@ Object { 83, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -238,6 +259,7 @@ Object { 85, ], "type": "NewExpression", + "typeParameters": undefined, }, }, ], @@ -257,7 +279,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -275,7 +300,9 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -291,7 +318,9 @@ Object { 88, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot index c518c2a1634..cbd4142c313 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-factory-static-member.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript decorators property-decorators property-decorator-factory-st Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ @@ -34,6 +36,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -51,6 +54,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -68,6 +72,7 @@ Object { 33, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -86,7 +91,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -104,6 +111,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -115,17 +123,20 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 47, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ @@ -153,6 +164,7 @@ Object { }, ], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -170,6 +182,7 @@ Object { 66, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -187,6 +200,7 @@ Object { 73, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -205,7 +219,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -223,6 +239,7 @@ Object { 90, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -234,14 +251,16 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 53, 91, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, ], @@ -261,7 +280,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -279,7 +301,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -295,7 +319,9 @@ Object { 93, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot index b603703a3f1..0ea7c477352 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-instance-member.src.ts.shot @@ -4,14 +4,17 @@ exports[`typescript decorators property-decorators property-decorator-instance-m Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -29,6 +32,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,7 +51,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -65,6 +71,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -76,22 +83,26 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 21, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -109,6 +120,7 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -127,7 +139,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -145,6 +159,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -156,14 +171,16 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 26, 37, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, ], @@ -183,7 +200,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +221,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -217,7 +239,9 @@ Object { 39, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot index 21c2a88e421..00b6cb8accb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/decorators/property-decorators/property-decorator-static-member.src.ts.shot @@ -4,14 +4,17 @@ exports[`typescript decorators property-decorators property-decorator-static-mem Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -29,6 +32,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -47,7 +51,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -65,6 +71,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -76,22 +83,26 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, 28, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, Object { + "accessibility": undefined, "computed": false, "declare": false, "decorators": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -109,6 +120,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -127,7 +139,9 @@ Object { "type": "Decorator", }, ], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -145,6 +159,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -156,14 +171,16 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 33, 51, ], - "readonly": undefined, + "readonly": false, "static": true, "type": "PropertyDefinition", + "typeAnnotation": undefined, "value": null, }, ], @@ -183,7 +200,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -201,7 +221,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -217,7 +239,9 @@ Object { 53, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot index 1259e8fb452..1bd37272699 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends-implements.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript errorRecovery class-empty-extends-implements.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,10 +44,12 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -61,6 +67,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +84,7 @@ Object { 32, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -94,7 +102,9 @@ Object { 37, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot index 1bcebf20a9d..3e03c06505a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-empty-extends.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript errorRecovery class-empty-extends.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,7 +44,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -56,7 +62,9 @@ Object { 22, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot index 8b505ce1f7d..bc24a042d3e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-extends-empty-implements.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript errorRecovery class-extends-empty-implements.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -40,6 +44,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [], "loc": Object { @@ -57,6 +62,7 @@ Object { 37, ], "superClass": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -74,8 +80,11 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot index 89b2d8c22a2..a9266f6761f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/class-multiple-implements.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript errorRecovery class-multiple-implements.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [], "loc": Object { @@ -22,7 +23,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -40,10 +44,12 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "implements": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -61,6 +67,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +84,7 @@ Object { 20, ], "type": "TSClassImplements", + "typeParameters": undefined, }, ], "loc": Object { @@ -94,7 +102,9 @@ Object { 36, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot index f919ef83539..bf9719e0e4d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-enum-declaration.src.ts.shot @@ -7,6 +7,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -24,6 +25,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot index e5cd4caafa8..c8a92c1fa3c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-function.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -43,6 +45,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,7 +62,9 @@ Object { 0, 19, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot index 20b2c0dbb9c..ec47840850a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-interface-declaration.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -41,6 +43,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { 22, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot index d86a4d688f5..a50ff86e3b6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/decorator-on-variable.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,6 +26,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot index 3b3e6a1d3f6..2c09af5f398 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-call-expression.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript errorRecovery empty-type-arguments-in-call-expression.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -24,6 +26,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot index 735f9395b06..93860b87c8b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments-in-new-expression.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript errorRecovery empty-type-arguments-in-new-expression.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -24,6 +26,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot index 447dda2e625..45e46b0c970 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-arguments.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -75,6 +77,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot index 6d21ccd6cd9..62578efead5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-arrow-function.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +45,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 0, 18, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot index dd754eecd79..a4efe957148 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-constructor.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript errorRecovery empty-type-parameters-in-constructor.src 1`] = Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -26,6 +30,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,6 +91,7 @@ Object { 25, 32, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -121,7 +130,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -139,7 +151,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -155,7 +169,9 @@ Object { 34, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot index 246ff632a4d..864e243a7e8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-function-expression.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -25,6 +26,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -46,6 +48,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -64,6 +67,7 @@ Object { 12, 27, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot index 30cfd446835..4bfcb929485 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method-signature.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -27,6 +29,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -46,6 +49,7 @@ Object { 27, ], "readonly": false, + "returnType": undefined, "static": false, "type": "TSMethodSignature", "typeParameters": Object { @@ -85,7 +89,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -103,6 +109,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -119,6 +126,7 @@ Object { 29, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot index 1725366854b..9a77a16527e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters-in-method.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript errorRecovery empty-type-parameters-in-method.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -26,6 +30,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 14, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -65,6 +72,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -83,6 +91,7 @@ Object { 18, 25, ], + "returnType": undefined, "type": "FunctionExpression", "typeParameters": Object { "loc": Object { @@ -121,7 +130,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -139,7 +151,9 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -155,7 +169,9 @@ Object { 27, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot index a89233bc02c..4dd8d5a0b2c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/empty-type-parameters.src.ts.shot @@ -23,9 +23,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -43,6 +45,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,6 +62,7 @@ Object { 0, 18, ], + "returnType": undefined, "type": "FunctionDeclaration", "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot index 24bb254114f..f6ee5e0b2c4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/enum-with-keywords.src.ts.shot @@ -9,6 +9,7 @@ Object { "const": false, "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 69, @@ -26,6 +27,7 @@ Object { 69, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot index 44b74a75f6b..b883986f4e2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/index-signature-parameters.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -65,6 +68,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -118,6 +122,7 @@ Object { }, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -220,6 +225,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot index c3b28cafe49..5c37a401de1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-empty-extends.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -41,6 +43,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { 26, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot index 97b1a4edb45..6cab0a70e5f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-implements.src.ts.shot @@ -23,7 +23,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -41,6 +43,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +60,7 @@ Object { 27, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot index c7a8e6d3f4a..a516da8fd01 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-export.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "export": true, "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -133,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -151,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -167,6 +172,7 @@ Object { 49, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot index 0b8b8eafe58..e06857bbd7b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-private.src.ts.shot @@ -21,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -134,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -152,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -168,6 +172,7 @@ Object { 50, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot index a9c35515859..04c38fdea4a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-protected.src.ts.shot @@ -21,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -134,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -152,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -168,6 +172,7 @@ Object { 52, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot index 82cbdc6e9ba..f03d9d10a9c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-public.src.ts.shot @@ -21,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -134,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -152,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -168,6 +172,7 @@ Object { 49, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot index 69b2893649c..81cf1090cc6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-index-signature-static.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -133,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -151,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -167,6 +172,7 @@ Object { 49, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot index bd69acdae02..629a050332e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-export.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": true, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -27,6 +29,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -136,6 +140,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -155,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -173,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -189,6 +197,7 @@ Object { 50, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot index 5700d38610e..b812425f1e2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-private.src.ts.shot @@ -11,6 +11,7 @@ Object { "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -28,6 +29,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -43,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -137,6 +140,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -156,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -174,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -190,6 +197,7 @@ Object { 51, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot index e2478b39c3f..df9ea8a3ca4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-protected.src.ts.shot @@ -11,6 +11,7 @@ Object { "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -28,6 +29,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -43,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -137,6 +140,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -156,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -174,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -190,6 +197,7 @@ Object { 51, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot index e606656e9bb..2a67eb873bb 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-public.src.ts.shot @@ -11,6 +11,7 @@ Object { "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -28,6 +29,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -43,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -137,6 +140,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -156,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -174,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -190,6 +197,7 @@ Object { 50, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot index 63813758551..ecb26e58be2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-readonly.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -27,6 +29,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -136,6 +140,7 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -155,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -173,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -189,6 +197,7 @@ Object { 50, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot index c851fef96c8..34440f37119 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-method-static.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +45,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -136,6 +140,7 @@ Object { }, "static": true, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -155,7 +160,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -173,6 +180,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -189,6 +197,7 @@ Object { 48, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot index 75fa581c2f1..282c743b38e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-multiple-extends.src.ts.shot @@ -26,6 +26,7 @@ Object { "extends": Array [ Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -43,6 +44,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -59,9 +61,11 @@ Object { 25, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 37, @@ -79,6 +83,7 @@ Object { 37, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -95,9 +100,11 @@ Object { 37, ], "type": "TSInterfaceHeritage", + "typeParameters": undefined, }, ], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -115,6 +122,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -131,6 +139,7 @@ Object { 40, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot index 4bb6ccfeb7b..257598e4688 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-export.src.ts.shot @@ -7,10 +7,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": true, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -28,6 +30,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -100,7 +103,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -118,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -134,6 +140,7 @@ Object { 37, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot index 565cebf4675..2650e9af820 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-private.src.ts.shot @@ -12,6 +12,7 @@ Object { "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -29,6 +30,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,7 +103,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -119,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { 38, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot index 5f68cecd550..6538b7b3659 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-protected.src.ts.shot @@ -12,6 +12,7 @@ Object { "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -29,6 +30,7 @@ Object { 29, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,7 +103,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -119,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { 40, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot index 3a78b3c4fe8..29b3d54a1ca 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-public.src.ts.shot @@ -12,6 +12,7 @@ Object { "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -29,6 +30,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -101,7 +103,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -119,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -135,6 +140,7 @@ Object { 39, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot index f4ce9adaf48..b51bb812a72 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-static.src.ts.shot @@ -7,10 +7,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -28,6 +30,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -100,7 +103,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -118,6 +123,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -134,6 +140,7 @@ Object { 37, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot index c1cda6ca32a..64aeed4e3d2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-property-with-default-value.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": Object { @@ -29,6 +30,7 @@ Object { "value": "a", }, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -46,6 +48,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -118,7 +121,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -136,6 +141,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -152,6 +158,7 @@ Object { 38, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot index b47556debb8..e36e4a5be9b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/interface-with-optional-index-signature.src.ts.shot @@ -7,6 +7,7 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -20,6 +21,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -133,7 +135,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -151,6 +155,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -167,6 +172,7 @@ Object { 43, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot index f4648229243..54343656d5c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-assertion-not-allowed.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript errorRecovery object-assertion-not-allowed.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -38,6 +41,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,6 +63,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -76,6 +81,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -84,6 +90,7 @@ Object { 5, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot index 799389415a2..eb90daf1aa4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/errorRecovery/object-optional-not-allowed.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript errorRecovery object-optional-not-allowed.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -21,6 +23,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -38,6 +41,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -59,6 +63,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -76,6 +81,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -84,6 +90,7 @@ Object { 5, ], "type": "ObjectPattern", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot index b14be6df928..7c214e71e32 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/call-expression-type-arguments.src.ts.shot @@ -4,9 +4,11 @@ exports[`typescript expressions call-expression-type-arguments.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -24,6 +26,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -70,6 +73,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -87,6 +91,7 @@ Object { 5, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -115,9 +120,11 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -135,6 +142,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot index 263c706208c..75ed4901410 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/instantiation-expression.src.ts.shot @@ -4,8 +4,10 @@ exports[`typescript expressions instantiation-expression.src 1`] = ` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 1, @@ -23,6 +25,7 @@ Object { 1, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -68,6 +71,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -85,6 +89,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -113,9 +118,11 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -133,6 +140,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -178,6 +186,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -195,6 +204,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -250,6 +260,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -267,6 +278,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -295,10 +307,12 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -316,6 +330,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -361,6 +376,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -378,6 +394,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -434,6 +451,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -451,6 +469,7 @@ Object { 26, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -479,12 +498,14 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], "callee": Object { "expression": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -502,6 +523,7 @@ Object { 33, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -547,6 +569,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -564,6 +587,7 @@ Object { 35, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -619,6 +643,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -636,6 +661,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -663,6 +689,7 @@ Object { 44, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -697,6 +724,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { @@ -714,6 +742,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 2, @@ -731,9 +760,11 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -751,6 +782,7 @@ Object { 51, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 47, @@ -818,6 +850,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -835,6 +868,7 @@ Object { 53, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -891,6 +925,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -908,6 +943,7 @@ Object { 57, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -936,10 +972,12 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "arguments": Array [], "callee": Object { "expression": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -957,6 +995,7 @@ Object { 68, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1002,6 +1041,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -1019,6 +1059,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1074,6 +1115,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -1091,6 +1133,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot index 3fbe6752052..0c5811985c5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/new-expression-type-arguments.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -25,10 +26,12 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -46,6 +49,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -91,6 +95,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -108,6 +113,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot index 9177b63c6ca..f7794772ecf 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/optional-call-expression-type-arguments.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript expressions optional-call-expression-type-arguments.src 1`] Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -20,6 +21,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -37,9 +39,11 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -57,6 +61,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 0, @@ -109,6 +114,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -126,6 +132,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -170,6 +177,7 @@ Object { "type": "ExpressionStatement", }, Object { + "directive": undefined, "expression": Object { "expression": Object { "arguments": Array [], @@ -186,6 +194,7 @@ Object { }, }, "object": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -203,9 +212,11 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "optional": true, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -223,6 +234,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 15, diff --git a/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot index d7b18f95e65..79df088d98f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot @@ -4,6 +4,7 @@ exports[`typescript expressions tagged-template-expression-type-arguments.src 1` Object { "body": Array [ Object { + "directive": undefined, "expression": Object { "loc": Object { "end": Object { @@ -62,6 +63,7 @@ Object { 13, ], "tag": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -79,6 +81,7 @@ Object { 3, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TaggedTemplateExpression", "typeParameters": Object { @@ -110,6 +113,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -127,6 +131,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot index c1aecec8f51..4990086e943 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/ambient-module-declaration-with-import.src.ts.shot @@ -55,6 +55,7 @@ Object { }, }, "local": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -72,6 +73,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 41, diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot index c454a33c531..5f47122f26e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/declare-namespace-with-exported-function.src.ts.shot @@ -11,9 +11,11 @@ Object { "declaration": Object { "async": false, "body": undefined, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -31,6 +33,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -44,6 +47,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 41, @@ -134,6 +138,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 53, @@ -151,6 +156,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -191,6 +197,7 @@ Object { }, }, "type": "TSDeclareFunction", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { @@ -231,6 +238,7 @@ Object { "declare": true, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -248,6 +256,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot index 15f530aef36..7dfc6f3a45f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/global-module-declaration.src.ts.shot @@ -28,6 +28,7 @@ Object { "declare": true, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -45,6 +46,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -84,6 +86,7 @@ Object { "declare": true, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -101,6 +104,7 @@ Object { 80, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -138,6 +142,7 @@ Object { "declare": true, "global": true, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -155,6 +160,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot index 5ec4388c95f..b7e172473d1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/module-with-default-exports.src.ts.shot @@ -8,11 +8,15 @@ Object { "body": Array [ Object { "declaration": Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -30,6 +34,7 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -42,6 +47,7 @@ Object { "line": 3, }, }, + "optional": false, "override": false, "range": Array [ 52, @@ -49,6 +55,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -69,6 +76,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -120,6 +128,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -137,11 +146,13 @@ Object { 63, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -161,7 +172,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -179,7 +193,9 @@ Object { 41, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 5, @@ -195,7 +211,9 @@ Object { 73, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { @@ -235,9 +253,11 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -255,6 +275,7 @@ Object { 105, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -271,7 +292,9 @@ Object { 93, 110, ], + "returnType": undefined, "type": "FunctionDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot index 24c2a857853..722a1fb0276 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/namespaces-and-modules/nested-internal-module.src.ts.shot @@ -13,6 +13,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -30,6 +31,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "loc": Object { @@ -107,11 +109,15 @@ Object { Object { "assertions": Array [], "declaration": Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -129,6 +135,7 @@ Object { 89, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "constructor", "loc": Object { @@ -141,6 +148,7 @@ Object { "line": 5, }, }, + "optional": false, "override": false, "range": Array [ 78, @@ -148,6 +156,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -168,6 +177,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -184,6 +194,7 @@ Object { "params": Array [ Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -197,6 +208,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -259,6 +271,7 @@ Object { }, Object { "accessibility": "public", + "decorators": Array [], "export": false, "loc": Object { "end": Object { @@ -272,6 +285,7 @@ Object { }, "override": false, "parameter": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 54, @@ -337,7 +351,9 @@ Object { 89, 129, ], + "returnType": undefined, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -357,7 +373,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -375,7 +394,9 @@ Object { 67, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 5, @@ -391,7 +412,9 @@ Object { 135, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, "exportKind": "value", "loc": Object { @@ -423,10 +446,12 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -444,6 +469,7 @@ Object { 204, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -516,7 +542,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -534,6 +562,7 @@ Object { 185, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -550,6 +579,7 @@ Object { 223, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, "exportKind": "type", "loc": Object { @@ -590,6 +620,7 @@ Object { "declare": false, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -607,6 +638,7 @@ Object { 155, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -663,6 +695,7 @@ Object { "declare": false, "global": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -680,6 +713,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot index 94e376ab2ce..661e8e4736c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/array-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { ], "type": "TSArrayType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot index adae54695fa..911eba05248 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-nested.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -23,6 +24,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 3, @@ -74,6 +77,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -109,6 +113,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -126,6 +131,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -169,6 +175,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 5, @@ -186,6 +193,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -220,6 +228,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -237,6 +246,7 @@ Object { 70, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -264,6 +274,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -281,6 +292,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -301,6 +313,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -318,6 +331,7 @@ Object { 100, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -362,6 +376,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -379,6 +394,7 @@ Object { 108, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -413,6 +429,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -430,6 +447,7 @@ Object { 125, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -464,6 +482,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -481,6 +500,7 @@ Object { 113, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -517,6 +537,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -534,6 +555,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -570,6 +592,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -587,6 +610,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -619,6 +643,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -636,6 +661,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot index 28c9f19fd55..895938f15da 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-simple.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -74,6 +77,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -90,10 +94,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -111,6 +117,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -177,6 +184,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -194,6 +202,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -206,10 +215,12 @@ Object { }, }, Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 39, @@ -227,6 +238,7 @@ Object { 39, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -293,6 +305,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 48, @@ -310,6 +323,7 @@ Object { 48, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -376,6 +390,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 54, @@ -393,6 +408,7 @@ Object { 54, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -425,6 +441,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -442,6 +459,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot index a355ae94131..522c462a14b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer-with-constraint.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -23,6 +24,7 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -74,6 +77,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -126,6 +130,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -143,6 +148,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -217,6 +223,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 62, @@ -234,6 +241,7 @@ Object { 62, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -264,6 +272,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 64, @@ -281,6 +290,7 @@ Object { 64, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -321,6 +331,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -338,6 +349,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -357,6 +369,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -374,6 +387,7 @@ Object { 82, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -408,6 +422,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -425,6 +440,7 @@ Object { 89, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -477,6 +493,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -494,6 +511,7 @@ Object { 106, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -550,6 +568,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -567,6 +586,7 @@ Object { 130, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -641,6 +661,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 86, @@ -658,6 +679,7 @@ Object { 161, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -688,6 +710,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 88, @@ -705,6 +728,7 @@ Object { 163, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -745,6 +769,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -762,6 +787,7 @@ Object { 84, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -781,6 +807,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -798,6 +825,7 @@ Object { 181, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -832,6 +860,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -849,6 +878,7 @@ Object { 188, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -901,6 +931,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -918,6 +949,7 @@ Object { 205, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -958,6 +990,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -975,6 +1008,7 @@ Object { 229, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1049,6 +1083,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 71, @@ -1066,6 +1101,7 @@ Object { 245, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -1096,6 +1132,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 73, @@ -1113,6 +1150,7 @@ Object { 247, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1153,6 +1191,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -1170,6 +1209,7 @@ Object { 183, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1189,6 +1229,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -1206,6 +1247,7 @@ Object { 265, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1240,6 +1282,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1257,6 +1300,7 @@ Object { 272, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1293,6 +1337,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -1310,6 +1355,7 @@ Object { 289, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1366,6 +1412,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -1383,6 +1430,7 @@ Object { 298, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1457,6 +1505,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 71, @@ -1474,6 +1523,7 @@ Object { 329, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -1504,6 +1554,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 73, @@ -1521,6 +1572,7 @@ Object { 331, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1561,6 +1613,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -1578,6 +1631,7 @@ Object { 267, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1597,6 +1651,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -1614,6 +1669,7 @@ Object { 349, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1648,6 +1704,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -1665,6 +1722,7 @@ Object { 356, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1717,6 +1775,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -1734,6 +1793,7 @@ Object { 373, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1790,6 +1850,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 55, @@ -1807,6 +1868,7 @@ Object { 397, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -1881,6 +1943,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 75, @@ -1898,6 +1961,7 @@ Object { 417, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1930,6 +1994,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -1947,6 +2012,7 @@ Object { 351, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot index c830abdd0ab..d556be2bb33 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-infer.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -23,6 +24,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -57,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -74,6 +77,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -109,6 +113,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -126,6 +131,7 @@ Object { 36, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -168,6 +174,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -185,6 +192,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -219,6 +227,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -236,6 +245,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -268,6 +278,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -285,6 +296,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot index 063a7773efb..876c8a65b99 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional-with-null.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot index b1bcda45eaf..8f5bdbc813e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/conditional.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot index 4785446dcbd..6f8cbb5fcba 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-abstract.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -93,6 +94,7 @@ Object { }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot index a050b735c76..b6b6fbdd8fd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-empty.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -93,6 +94,7 @@ Object { }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot index 51f38dc8b1c..6315190137c 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-generic.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -55,6 +56,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -105,6 +107,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -122,6 +125,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -165,6 +169,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -182,6 +187,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -214,6 +220,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -231,6 +238,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot index 3ff8927ee50..3ef5ac52bce 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-in-generic.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -75,6 +77,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -140,6 +143,7 @@ Object { }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, ], "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot index 95b17a6fa4c..9302a680a28 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor-with-rest.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -56,6 +57,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -73,7 +75,9 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -141,6 +145,7 @@ Object { "type": "TSArrayType", }, }, + "value": undefined, }, ], "range": Array [ @@ -182,6 +187,7 @@ Object { }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot index b23086e3f9e..baa59e3376a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/constructor.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -55,6 +56,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -108,6 +110,7 @@ Object { }, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -200,6 +203,7 @@ Object { }, }, "type": "TSConstructorType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot index ea89aa54803..f02012c203f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-generic.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -54,6 +55,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -104,6 +106,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -121,6 +124,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -164,6 +168,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -181,6 +186,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -213,6 +219,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -230,6 +237,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot index 5f96d0a82bc..842b56c9950 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-in-generic.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -75,6 +77,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -139,6 +142,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, ], "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot index add53f840b5..f643c7622c5 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-array-destruction.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,8 +54,10 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "elements": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -71,6 +75,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, ], "loc": Object { @@ -164,7 +169,9 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot index fafecbeb3c8..e15775eab01 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-object-destruction.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -67,6 +70,7 @@ Object { Object { "computed": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -84,6 +88,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "init", "loc": Object { @@ -105,6 +110,7 @@ Object { "shorthand": true, "type": "Property", "value": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -122,6 +128,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, }, ], @@ -205,7 +212,9 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot index babfe837671..b7b0cf57c2f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-rest.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -55,6 +56,7 @@ Object { "params": Array [ Object { "argument": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -72,7 +74,9 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -140,6 +144,7 @@ Object { "type": "TSArrayType", }, }, + "value": undefined, }, ], "range": Array [ @@ -181,6 +186,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot index 3df4a60a0e4..9d7b67352db 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function-with-this.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -54,6 +55,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -146,6 +148,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot index 7e3cb9a1644..fbb141e32dc 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/function.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -54,6 +55,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -107,6 +109,7 @@ Object { }, }, Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -199,6 +202,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, }, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot index f3598241a43..ce7d3c96f62 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-readonly.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -65,6 +68,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -167,6 +171,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot index d0ca8c7ea59..2cc1ba964e9 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature-without-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -65,6 +68,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -125,6 +129,7 @@ Object { "readonly": false, "static": false, "type": "TSIndexSignature", + "typeAnnotation": undefined, }, ], "range": Array [ @@ -133,6 +138,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot index 0ab86fda23f..59bc2f21368 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/index-signature.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "export": false, "loc": Object { "end": Object { @@ -65,6 +68,7 @@ Object { }, "parameters": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -167,6 +171,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot index 4a2a5724f19..703c2baac08 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/indexed.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -59,6 +60,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -76,6 +78,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -106,6 +109,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -123,6 +127,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot index 6a4ae701a98..0b85e594dad 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/interface-with-accessors.src.ts.shot @@ -7,9 +7,11 @@ Object { "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -27,6 +29,7 @@ Object { 28, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -82,11 +85,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -104,6 +110,7 @@ Object { 50, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -119,6 +126,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -230,8 +238,10 @@ Object { 85, ], "readonly": false, + "returnType": undefined, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "loc": Object { @@ -251,7 +261,9 @@ Object { "type": "TSInterfaceBody", }, "declare": false, + "extends": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -269,6 +281,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -285,6 +298,7 @@ Object { 87, ], "type": "TSInterfaceDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot index 9645ebca083..904a7453e7f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/intersection-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -23,6 +24,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -73,6 +75,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -90,6 +93,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -106,10 +110,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -127,6 +133,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -179,6 +186,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -196,6 +204,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -226,6 +235,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -243,6 +253,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -292,6 +303,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -309,6 +321,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot index 2df09531bff..3480afeff7e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number-negative.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot index 7b3c2a723a0..204be090cbd 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-number.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot index 54348ec0097..863e84993a8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/literal-string.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot index 92c0f10edf6..4d666f1164b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-named-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -23,6 +24,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -86,10 +88,12 @@ Object { ], "type": "TSLiteralType", }, + "optional": undefined, "range": Array [ 15, 49, ], + "readonly": undefined, "type": "TSMappedType", "typeAnnotation": Object { "indexType": Object { @@ -109,6 +113,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -126,6 +131,7 @@ Object { 45, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -156,6 +162,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -173,6 +180,7 @@ Object { 43, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -217,6 +225,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -234,6 +243,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -251,6 +261,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 4, @@ -268,6 +279,7 @@ Object { 21, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -304,6 +316,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -321,6 +334,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot index 72032757360..5c8253cce0f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-minus.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 46, @@ -108,6 +109,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -125,6 +127,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot index d0bed79850b..e0a3f82a0f6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly-plus.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 47, @@ -108,6 +109,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -125,6 +127,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot index 15dcbcac19a..e40f0c70620 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-readonly.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 45, @@ -108,6 +109,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -125,6 +127,7 @@ Object { 22, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot index 45162bbc6a7..b1d3f6463b6 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped-untypped.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -53,11 +54,14 @@ Object { }, }, "nameType": null, + "optional": undefined, "range": Array [ 9, 27, ], + "readonly": undefined, "type": "TSMappedType", + "typeAnnotation": undefined, "typeParameter": Object { "constraint": Object { "loc": Object { @@ -89,6 +93,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -106,6 +111,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot index 2c021ac36ca..8b69a493792 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/mapped.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 35, @@ -53,10 +54,12 @@ Object { }, }, "nameType": null, + "optional": undefined, "range": Array [ 9, 35, ], + "readonly": undefined, "type": "TSMappedType", "typeAnnotation": Object { "loc": Object { @@ -106,6 +109,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -123,6 +127,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot index b3d41ce3a3b..bc759904969 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/nested-types.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -378,6 +380,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot index bf3f012bce6..d1c75c15bc1 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/object-literal-type-with-accessors.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -23,6 +24,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,9 +54,11 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -72,6 +76,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "get", "loc": Object { @@ -127,11 +132,14 @@ Object { }, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, Object { + "accessibility": undefined, "computed": false, "export": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -149,6 +157,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "set", "loc": Object { @@ -164,6 +173,7 @@ Object { "optional": false, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 43, @@ -275,8 +285,10 @@ Object { 82, ], "readonly": false, + "returnType": undefined, "static": false, "type": "TSMethodSignature", + "typeParameters": undefined, }, ], "range": Array [ @@ -285,6 +297,7 @@ Object { ], "type": "TSTypeLiteral", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot index 1095e179b93..c920673605a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-and-out.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 11, @@ -23,6 +24,7 @@ Object { 11, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -102,6 +105,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -119,6 +123,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -162,6 +167,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -179,11 +185,13 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, "typeParameters": Object { "loc": Object { @@ -212,6 +220,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -229,6 +238,7 @@ Object { 16, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -252,6 +262,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -269,6 +280,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": true, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot index 0f3de7f966a..7b510af7227 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in-out.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -23,6 +24,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -102,6 +105,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -119,6 +123,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -162,6 +167,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 38, @@ -179,11 +185,13 @@ Object { 38, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, "typeParameters": Object { "loc": Object { @@ -212,6 +220,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -229,6 +238,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": true, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot index 8eb44012f72..13960d9cfa4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-in.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -23,6 +24,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -52,6 +54,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -102,6 +105,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -119,6 +123,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -164,6 +169,7 @@ Object { }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, "typeParameters": Object { "loc": Object { @@ -192,6 +198,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -209,6 +216,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot index 4e43bc37b0f..5bbd49f347f 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/optional-variance-out.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -23,6 +24,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -88,6 +90,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 30, @@ -105,11 +108,13 @@ Object { 30, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, }, "type": "TSFunctionType", + "typeParameters": undefined, }, "typeParameters": Object { "loc": Object { @@ -138,6 +143,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -155,6 +161,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": true, "range": Array [ diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot index 5657e9286d1..a46af1bf983 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/parenthesized-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -92,6 +94,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot index 7a173035cd6..49cd9577c3a 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic-nested.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -75,6 +77,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -105,6 +108,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 18, @@ -122,6 +126,7 @@ Object { 18, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot index 77b6125af2e..a005225eba2 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference-generic.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -75,6 +77,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot index 0b71385f61c..ce1d4841241 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/reference.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -58,6 +59,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -75,6 +77,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot index c4ccf287de0..cca9f93240b 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-1.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -98,6 +100,7 @@ Object { ], "type": "TSLiteralType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot index 41d2f777a04..0988b939ff3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-2.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 6, @@ -23,6 +24,7 @@ Object { 6, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -140,6 +142,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot index 462412fd356..f1600354bd4 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-3.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -23,6 +24,7 @@ Object { 10, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -130,10 +132,12 @@ Object { }, ], }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -151,6 +155,7 @@ Object { 42, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -258,10 +263,12 @@ Object { }, ], }, + "typeParameters": undefined, }, Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -279,6 +286,7 @@ Object { 74, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -392,6 +400,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, @@ -409,6 +418,7 @@ Object { 88, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -429,6 +439,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -446,6 +457,7 @@ Object { 96, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -453,6 +465,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot index 2bb36fdbf19..1a71387ccff 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/template-literal-type-4.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -23,6 +24,7 @@ Object { 25, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -185,6 +187,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 58, @@ -202,6 +205,7 @@ Object { 58, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -232,6 +236,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 60, @@ -249,6 +254,7 @@ Object { 60, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -277,6 +283,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 76, @@ -294,6 +301,7 @@ Object { 76, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -324,6 +332,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 78, @@ -341,6 +350,7 @@ Object { 78, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -369,6 +379,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 95, @@ -386,6 +397,7 @@ Object { 95, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -416,6 +428,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 97, @@ -433,6 +446,7 @@ Object { 97, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -461,6 +475,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 116, @@ -478,6 +493,7 @@ Object { 116, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -508,6 +524,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 118, @@ -525,6 +542,7 @@ Object { 118, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -581,6 +599,7 @@ Object { }, }, "name": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -598,6 +617,7 @@ Object { 27, ], "type": "Identifier", + "typeAnnotation": undefined, }, "out": false, "range": Array [ @@ -617,6 +637,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -634,6 +655,7 @@ Object { 133, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -667,6 +689,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -684,6 +707,7 @@ Object { 156, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": Object { "loc": Object { @@ -741,6 +765,7 @@ Object { "type": "TSTypeParameterInstantiation", }, }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot index 4897e67010e..bb1c7246b8d 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type-expanded.src.ts.shot @@ -4,13 +4,17 @@ exports[`typescript types this-type-expanded.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { "accessibility": "public", "computed": false, "declare": false, + "decorators": Array [], + "definite": false, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -28,6 +32,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -39,12 +44,13 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 12, 29, ], - "readonly": undefined, + "readonly": false, "static": false, "type": "PropertyDefinition", "typeAnnotation": Object { @@ -86,7 +92,9 @@ Object { Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -104,6 +112,7 @@ Object { 46, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -116,6 +125,7 @@ Object { "line": 4, }, }, + "optional": false, "override": false, "range": Array [ 33, @@ -123,6 +133,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -159,6 +170,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -176,6 +188,7 @@ Object { 86, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 80, @@ -216,6 +229,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -231,6 +245,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 26, @@ -323,12 +338,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -346,6 +364,7 @@ Object { 109, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -358,6 +377,7 @@ Object { "line": 8, }, }, + "optional": false, "override": false, "range": Array [ 95, @@ -365,6 +385,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -401,6 +422,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -418,6 +440,7 @@ Object { 144, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 138, @@ -458,6 +481,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -473,6 +497,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -523,6 +548,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -540,6 +566,7 @@ Object { 117, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -585,12 +612,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -608,6 +638,7 @@ Object { 167, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -620,6 +651,7 @@ Object { "line": 12, }, }, + "optional": false, "override": false, "range": Array [ 153, @@ -627,6 +659,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -636,6 +669,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -653,6 +687,7 @@ Object { 200, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -687,6 +722,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -704,6 +740,7 @@ Object { 215, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 209, @@ -729,7 +766,9 @@ Object { 203, 215, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -770,6 +809,7 @@ Object { "argument": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -787,6 +827,7 @@ Object { 230, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -804,6 +845,7 @@ Object { 232, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -838,6 +880,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -853,6 +896,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 27, @@ -945,12 +989,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { "accessibility": "public", "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 16, @@ -968,6 +1015,7 @@ Object { 255, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -980,6 +1028,7 @@ Object { "line": 17, }, }, + "optional": false, "override": false, "range": Array [ 241, @@ -987,6 +1036,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -996,6 +1046,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 10, @@ -1013,6 +1064,7 @@ Object { 285, ], "type": "Identifier", + "typeAnnotation": undefined, }, "init": Object { "async": false, @@ -1047,6 +1099,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 25, @@ -1064,6 +1117,7 @@ Object { 300, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 294, @@ -1089,7 +1143,9 @@ Object { 288, 300, ], + "returnType": undefined, "type": "ArrowFunctionExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1130,6 +1186,7 @@ Object { "argument": Object { "arguments": Array [], "callee": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -1147,6 +1204,7 @@ Object { 315, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -1164,6 +1222,7 @@ Object { 317, ], "type": "CallExpression", + "typeParameters": undefined, }, "loc": Object { "end": Object { @@ -1198,6 +1257,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -1213,6 +1273,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -1263,6 +1324,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -1280,6 +1342,7 @@ Object { 263, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1325,11 +1388,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -1347,6 +1414,7 @@ Object { 345, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -1359,6 +1427,7 @@ Object { "line": 22, }, }, + "optional": false, "override": false, "range": Array [ 326, @@ -1366,6 +1435,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -1402,6 +1472,7 @@ Object { }, "optional": false, "property": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -1419,6 +1490,7 @@ Object { 382, ], "type": "Identifier", + "typeAnnotation": undefined, }, "range": Array [ 376, @@ -1459,6 +1531,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -1474,6 +1547,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -1524,6 +1598,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 29, @@ -1541,6 +1616,7 @@ Object { 353, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1586,11 +1662,15 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -1608,6 +1688,7 @@ Object { 404, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -1620,6 +1701,7 @@ Object { "line": 26, }, }, + "optional": false, "override": false, "range": Array [ 391, @@ -1627,6 +1709,7 @@ Object { ], "static": true, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -1701,6 +1784,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -1716,6 +1800,7 @@ Object { }, "params": Array [ Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -1766,6 +1851,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -1783,6 +1869,7 @@ Object { 412, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -1828,6 +1915,7 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -1847,7 +1935,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -1865,7 +1956,9 @@ Object { 7, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -1881,7 +1974,9 @@ Object { 451, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot index a74aea61d99..dfb9f035b1e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/this-type.src.ts.shot @@ -4,11 +4,15 @@ exports[`typescript types this-type.src 1`] = ` Object { "body": Array [ Object { + "abstract": false, "body": Object { "body": Array [ Object { + "accessibility": undefined, "computed": false, + "decorators": Array [], "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 7, @@ -26,6 +30,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "kind": "method", "loc": Object { @@ -38,6 +43,7 @@ Object { "line": 2, }, }, + "optional": false, "override": false, "range": Array [ 18, @@ -45,6 +51,7 @@ Object { ], "static": false, "type": "MethodDefinition", + "typeParameters": undefined, "value": Object { "async": false, "body": Object { @@ -100,6 +107,7 @@ Object { ], "type": "BlockStatement", }, + "declare": false, "expression": false, "generator": false, "id": null, @@ -153,6 +161,7 @@ Object { }, }, "type": "FunctionExpression", + "typeParameters": undefined, }, }, ], @@ -172,7 +181,10 @@ Object { ], "type": "ClassBody", }, + "declare": false, + "decorators": Array [], "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -190,7 +202,9 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, + "implements": Array [], "loc": Object { "end": Object { "column": 1, @@ -206,7 +220,9 @@ Object { 56, ], "superClass": null, + "superTypeParameters": undefined, "type": "ClassDeclaration", + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot index 7601bb3bd7b..31ef4b0b176 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-empty.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot index d34d17843fc..492c7640640 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-optional.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 53, @@ -62,6 +63,7 @@ Object { "type": "TSStringKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -79,6 +81,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -116,6 +119,7 @@ Object { "type": "TSNumberKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -133,6 +137,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -206,6 +211,7 @@ Object { ], }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 32, @@ -223,6 +229,7 @@ Object { 32, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot index 4ab08c81988..11505c596b0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-rest.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 34, @@ -62,6 +63,7 @@ Object { "type": "TSStringKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -79,6 +81,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -149,6 +152,7 @@ Object { "type": "TSArrayType", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 23, @@ -166,6 +170,7 @@ Object { 23, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot index bc3c60fdc47..f7ba5633816 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -60,6 +62,7 @@ Object { "type": "TSStringKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 13, @@ -77,6 +80,7 @@ Object { 13, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -114,6 +118,7 @@ Object { "type": "TSStringKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -131,6 +136,7 @@ Object { 24, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -166,6 +172,7 @@ Object { ], "type": "TSTupleType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot index a2ae40bc081..a86de6ac771 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-named.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 40, @@ -62,6 +63,7 @@ Object { "type": "TSNumberKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 9, @@ -79,6 +81,7 @@ Object { 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -116,6 +119,7 @@ Object { "type": "TSNumberKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -133,6 +137,7 @@ Object { 20, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -170,6 +175,7 @@ Object { "type": "TSNumberKeyword", }, "label": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, @@ -187,6 +193,7 @@ Object { 31, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot index bc78ddd59eb..ad8897ffae0 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-optional.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 44, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot index 743dfcaba7d..5171c6f702e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-rest.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 28, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot index 15eca078d45..6ee73194cf8 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -109,6 +111,7 @@ Object { ], "type": "TSTupleType", }, + "typeParameters": undefined, }, ], "comments": Array [], diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot index 732e3ab8d3f..95c64e15805 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/tuple.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 31, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot index 4e6357540ec..1e9de17e771 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/type-literal.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 22, @@ -54,10 +55,12 @@ Object { }, "members": Array [ Object { + "accessibility": undefined, "computed": false, "export": false, "initializer": undefined, "key": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 12, @@ -75,6 +78,7 @@ Object { 12, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot index 806165c4001..d983168c35e 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/type-operator.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -75,6 +76,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 14, @@ -92,6 +94,7 @@ Object { 14, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -139,6 +142,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot index 0582f1d82c3..7c6652192d3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-this.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 21, @@ -119,6 +120,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -186,6 +188,7 @@ Object { 47, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 24, @@ -203,6 +206,7 @@ Object { 47, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot index c407773487b..b31a8682418 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof-with-type-parameters.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 20, @@ -44,6 +45,7 @@ Object { "typeAnnotation": Object { "exprName": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -61,6 +63,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +80,7 @@ Object { 17, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -94,6 +98,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, @@ -141,6 +146,7 @@ Object { ], "type": "TSTypeReference", "typeName": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 19, @@ -158,6 +164,7 @@ Object { 19, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot index ae5e8b68e4e..14ef83b3343 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/typeof.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -44,6 +45,7 @@ Object { "typeAnnotation": Object { "exprName": Object { "left": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 15, @@ -61,6 +63,7 @@ Object { 15, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -77,6 +80,7 @@ Object { 17, ], "right": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 17, @@ -94,6 +98,7 @@ Object { 17, ], "type": "Identifier", + "typeAnnotation": undefined, }, "type": "TSQualifiedName", }, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot index 698047c5dc6..613fbde6cd3 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/union-intersection.src.ts.shot @@ -8,6 +8,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 36, @@ -154,6 +155,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 33, @@ -283,6 +285,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, @@ -448,6 +451,7 @@ Object { Object { "definite": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 42, diff --git a/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot b/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot index 3a976951f29..b4b333c34ac 100644 --- a/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot +++ b/packages/typescript-estree/tests/snapshots/typescript/types/union-type.src.ts.shot @@ -6,6 +6,7 @@ Object { Object { "declare": false, "id": Object { + "decorators": Array [], "loc": Object { "end": Object { "column": 8, @@ -23,6 +24,7 @@ Object { 8, ], "type": "Identifier", + "typeAnnotation": undefined, }, "loc": Object { "end": Object { @@ -92,6 +94,7 @@ Object { }, ], }, + "typeParameters": undefined, }, ], "comments": Array [], From 3d80b92625d8337fbc2ecaa142a7cd74f6ab5878 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 20 Feb 2023 14:56:19 -0500 Subject: [PATCH 5/8] Whoops, add constraint back in --- .../eslint-plugin/src/rules/no-unnecessary-type-constraint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts index 2ecbd6ef94a..969dfbe8db2 100644 --- a/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts +++ b/packages/eslint-plugin/src/rules/no-unnecessary-type-constraint.ts @@ -4,7 +4,7 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils'; import * as util from '../util'; type MakeRequired = Omit & { - [K in Key]?: NonNullable; + [K in Key]-?: NonNullable; }; type TypeParameterWithConstraint = MakeRequired< TSESTree.TSTypeParameter, From 160e40dafd21e104ab386964269d07683145e2df Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Mon, 20 Feb 2023 16:44:54 -0500 Subject: [PATCH 6/8] Fixed assertions on decorator truthiness --- .../rules/consistent-indexed-object-style.ts | 4 ++-- .../rules/explicit-member-accessibility.ts | 2 +- packages/eslint-plugin/src/rules/indent.ts | 2 +- .../src/rules/member-ordering.ts | 2 +- .../src/rules/no-useless-constructor.ts | 2 +- .../src/rules/promise-function-async.ts | 2 +- .../src/referencer/ClassVisitor.ts | 22 ++++++++----------- .../src/referencer/Referencer.ts | 11 +++------- .../class/emit-metadata/accessor-deco.ts.shot | 2 +- .../class/emit-metadata/method-deco.ts.shot | 4 ++-- .../emit-metadata/parameters-deco.ts.shot | 2 +- .../class/emit-metadata/property-deco.ts.shot | 2 +- packages/typescript-estree/src/convert.ts | 11 +++++----- 13 files changed, 30 insertions(+), 38 deletions(-) diff --git a/packages/eslint-plugin/src/rules/consistent-indexed-object-style.ts b/packages/eslint-plugin/src/rules/consistent-indexed-object-style.ts index 4a1b475a16f..38f97d05ca4 100644 --- a/packages/eslint-plugin/src/rules/consistent-indexed-object-style.ts +++ b/packages/eslint-plugin/src/rules/consistent-indexed-object-style.ts @@ -132,8 +132,8 @@ export default createRule({ TSInterfaceDeclaration(node): void { let genericTypes = ''; - if ((node.typeParameters?.params ?? []).length > 0) { - genericTypes = `<${node.typeParameters?.params + if (node.typeParameters?.params?.length) { + genericTypes = `<${node.typeParameters.params .map(p => sourceCode.getText(p)) .join(', ')}>`; } diff --git a/packages/eslint-plugin/src/rules/explicit-member-accessibility.ts b/packages/eslint-plugin/src/rules/explicit-member-accessibility.ts index b095b903162..efaece677b1 100644 --- a/packages/eslint-plugin/src/rules/explicit-member-accessibility.ts +++ b/packages/eslint-plugin/src/rules/explicit-member-accessibility.ts @@ -229,7 +229,7 @@ export default util.createRule({ accessibility: TSESTree.Accessibility, fixer: TSESLint.RuleFixer, ): TSESLint.RuleFix | null { - if (node?.decorators?.length) { + if (node?.decorators.length) { const lastDecorator = node.decorators[node.decorators.length - 1]; const nextToken = sourceCode.getTokenAfter(lastDecorator)!; return fixer.insertTextBefore(nextToken, `${accessibility} `); diff --git a/packages/eslint-plugin/src/rules/indent.ts b/packages/eslint-plugin/src/rules/indent.ts index 50ece68cda3..c84e258e9eb 100644 --- a/packages/eslint-plugin/src/rules/indent.ts +++ b/packages/eslint-plugin/src/rules/indent.ts @@ -358,7 +358,7 @@ export default util.createRule({ body: node.body as any, id: null, // TODO: This is invalid, there can be more than one extends in interface - superClass: node.extends![0].expression as any, + superClass: node.extends[0].expression as any, abstract: false, declare: false, decorators: [], diff --git a/packages/eslint-plugin/src/rules/member-ordering.ts b/packages/eslint-plugin/src/rules/member-ordering.ts index a50cf6ba18d..34eddde6e8b 100644 --- a/packages/eslint-plugin/src/rules/member-ordering.ts +++ b/packages/eslint-plugin/src/rules/member-ordering.ts @@ -511,7 +511,7 @@ function getRank( const memberGroups: BaseMemberType[] = []; if (supportsModifiers) { - const decorated = 'decorators' in node && node.decorators!.length > 0; + const decorated = 'decorators' in node && node.decorators.length > 0; if ( decorated && (type === 'field' || diff --git a/packages/eslint-plugin/src/rules/no-useless-constructor.ts b/packages/eslint-plugin/src/rules/no-useless-constructor.ts index c37dd213621..6409b8a48c3 100644 --- a/packages/eslint-plugin/src/rules/no-useless-constructor.ts +++ b/packages/eslint-plugin/src/rules/no-useless-constructor.ts @@ -37,7 +37,7 @@ function checkParams(node: TSESTree.MethodDefinition): boolean { return !node.value.params.some( param => param.type === AST_NODE_TYPES.TSParameterProperty || - param.decorators?.length, + param.decorators.length, ); } diff --git a/packages/eslint-plugin/src/rules/promise-function-async.ts b/packages/eslint-plugin/src/rules/promise-function-async.ts index 1c81eec076e..f926ae51641 100644 --- a/packages/eslint-plugin/src/rules/promise-function-async.ts +++ b/packages/eslint-plugin/src/rules/promise-function-async.ts @@ -160,7 +160,7 @@ export default util.createRule({ // if there are decorators then skip past them if ( method.type === AST_NODE_TYPES.MethodDefinition && - method.decorators + method.decorators.length ) { const lastDecorator = method.decorators[method.decorators.length - 1]; diff --git a/packages/scope-manager/src/referencer/ClassVisitor.ts b/packages/scope-manager/src/referencer/ClassVisitor.ts index f9de6a50767..e47b29fedb5 100644 --- a/packages/scope-manager/src/referencer/ClassVisitor.ts +++ b/packages/scope-manager/src/referencer/ClassVisitor.ts @@ -57,7 +57,7 @@ class ClassVisitor extends Visitor { .defineIdentifier(node.id, new ClassNameDefinition(node.id, node)); } - node.decorators?.forEach(d => this.#referencer.visit(d)); + node.decorators.forEach(d => this.#referencer.visit(d)); this.#referencer.scopeManager.nestClassScope(node); @@ -75,7 +75,7 @@ class ClassVisitor extends Visitor { this.visitType(node.typeParameters); // then the usages this.visitType(node.superTypeParameters); - node.implements?.forEach(imp => this.visitType(imp)); + node.implements.forEach(imp => this.visitType(imp)); this.visit(node.body); @@ -96,7 +96,7 @@ class ClassVisitor extends Visitor { * foo: Type; * } */ - this.visitMetadataType(node.typeAnnotation, !!node.decorators); + this.visitMetadataType(node.typeAnnotation, !!node.decorators.length); } protected visitFunctionParameterTypeAnnotation( @@ -140,7 +140,7 @@ class ClassVisitor extends Visitor { * foo(): Type {} * } */ - let withMethodDecorators = !!methodNode.decorators; + let withMethodDecorators = !!methodNode.decorators.length; /** * class A { * foo( @@ -157,7 +157,7 @@ class ClassVisitor extends Visitor { withMethodDecorators = withMethodDecorators || (methodNode.kind !== 'set' && - node.params.some(param => param.decorators)); + node.params.some(param => param.decorators.length)); if (!withMethodDecorators && methodNode.kind === 'set') { const keyName = getLiteralMethodKeyName(methodNode); @@ -177,7 +177,7 @@ class ClassVisitor extends Visitor { // Node must both be static or not node.static === methodNode.static && getLiteralMethodKeyName(node) === keyName, - )?.decorators + )?.decorators.length ) { withMethodDecorators = true; } @@ -219,7 +219,7 @@ class ClassVisitor extends Visitor { { processRightHandNodes: true }, ); this.visitFunctionParameterTypeAnnotation(param, withMethodDecorators); - param.decorators?.forEach(d => this.visit(d)); + param.decorators.forEach(d => this.visit(d)); } this.visitMetadataType(node.returnType, withMethodDecorators); @@ -271,9 +271,7 @@ class ClassVisitor extends Visitor { } } - if ('decorators' in node) { - node.decorators?.forEach(d => this.#referencer.visit(d)); - } + node.decorators.forEach(d => this.#referencer.visit(d)); } protected visitMethod(node: TSESTree.MethodDefinition): void { @@ -287,9 +285,7 @@ class ClassVisitor extends Visitor { this.#referencer.visit(node.value); } - if ('decorators' in node) { - node.decorators?.forEach(d => this.#referencer.visit(d)); - } + node.decorators.forEach(d => this.#referencer.visit(d)); } protected visitType(node: TSESTree.Node | null | undefined): void { diff --git a/packages/scope-manager/src/referencer/Referencer.ts b/packages/scope-manager/src/referencer/Referencer.ts index f7280d4fae6..2c7672fa9e5 100644 --- a/packages/scope-manager/src/referencer/Referencer.ts +++ b/packages/scope-manager/src/referencer/Referencer.ts @@ -269,7 +269,7 @@ class Referencer extends Visitor { { processRightHandNodes: true }, ); this.visitFunctionParameterTypeAnnotation(param); - param.decorators?.forEach(d => this.visit(d)); + param.decorators.forEach(d => this.visit(d)); } this.visitType(node.returnType); @@ -783,13 +783,8 @@ class Referencer extends Visitor { { processRightHandNodes: true }, ); - if (decl.init) { - this.visit(decl.init); - } - - if ('typeAnnotation' in decl.id) { - this.visitType(decl.id.typeAnnotation); - } + this.visit(decl.init); + this.visitType(decl.id.typeAnnotation); } } diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot index 2f596b026c4..f535f8e61be 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/accessor-deco.ts.shot @@ -105,7 +105,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: true, + isValueReference: false, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot index b8217ddd1b9..74707c85f35 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/method-deco.ts.shot @@ -57,7 +57,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: true, + isValueReference: false, isWrite: false, resolved: Variable$5, }, @@ -65,7 +65,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: true, + isValueReference: false, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot index 0170199de6d..ac1f8b41de5 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/parameters-deco.ts.shot @@ -89,7 +89,7 @@ ScopeManager { identifier: Identifier<"T">, isRead: true, isTypeReference: true, - isValueReference: true, + isValueReference: false, isWrite: false, resolved: Variable$5, }, diff --git a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot index 026f55225cc..348c6009163 100644 --- a/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot +++ b/packages/scope-manager/tests/fixtures/class/emit-metadata/property-deco.ts.shot @@ -57,7 +57,7 @@ ScopeManager { identifier: Identifier<"a">, isRead: true, isTypeReference: true, - isValueReference: true, + isValueReference: false, isWrite: false, resolved: Variable$5, }, diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 64639ec435d..75de0d19bd1 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -390,10 +390,9 @@ export class Converter { return parameters.map(param => { const convertedParam = this.convertChild(param) as TSESTree.Parameter; - const decorators = getDecorators(param); - if (decorators?.length) { - convertedParam.decorators = decorators.map(el => this.convertChild(el)); - } + convertedParam.decorators = + getDecorators(param)?.map(el => this.convertChild(el)) ?? []; + return convertedParam; }); } @@ -2109,7 +2108,9 @@ export class Converter { let regex = null; try { regex = new RegExp(pattern, flags); - } catch {} + } catch { + // Intentionally blank, so regex stays null + } return this.createNode(node, { type: AST_NODE_TYPES.Literal, From 1718da80d5f335b847dcbad18494b54e3edb3711 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 23 Feb 2023 01:46:14 -0500 Subject: [PATCH 7/8] Fixed a cute bug in unified-signatures, and some more convert.ts shorthands --- .../src/rules/unified-signatures.ts | 3 +-- packages/typescript-estree/src/convert.ts | 25 +++++-------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/packages/eslint-plugin/src/rules/unified-signatures.ts b/packages/eslint-plugin/src/rules/unified-signatures.ts index 18d332d76f8..9534ef190b2 100644 --- a/packages/eslint-plugin/src/rules/unified-signatures.ts +++ b/packages/eslint-plugin/src/rules/unified-signatures.ts @@ -424,8 +424,7 @@ export default util.createRule({ return ( (a.type === AST_NODE_TYPES.RestElement) === - (b.type === AST_NODE_TYPES.RestElement) && - (optionalA !== undefined) === (optionalB !== undefined) + (b.type === AST_NODE_TYPES.RestElement) && optionalA === optionalB ); } diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 75de0d19bd1..125a7cfa0b1 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -912,31 +912,18 @@ export class Converter { : AST_NODE_TYPES.FunctionDeclaration, async: hasModifier(SyntaxKind.AsyncKeyword, node), body: this.convertChild(node.body) || undefined, - declare: false, + declare: isDeclare, expression: false, generator: !!node.asteriskToken, id: this.convertChild(node.name), params: this.convertParameters(node.parameters), - returnType: undefined, - typeParameters: undefined, - }); - - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = + returnType: node.type && this.convertTypeAnnotation(node.type, node), + typeParameters: + node.typeParameters && this.convertTSTypeParametersToTypeParametersDeclaration( node.typeParameters, - ); - } - - if (isDeclare) { - result.declare = true; - } + ), + }); return this.fixExports(node, result); } From 3743f2b8932238c44323b46301f82323ec2a6034 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Thu, 23 Feb 2023 21:23:07 -0500 Subject: [PATCH 8/8] Update snapshots --- .../tests/lib/__snapshots__/convert.test.ts.snap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap index 11d052a7217..2716f516148 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/convert.test.ts.snap @@ -130,6 +130,7 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` "type": "TSTypeReference", "typeArguments": undefined, "typeName": { + "decorators": [], "loc": { "end": { "column": 9, @@ -141,11 +142,13 @@ exports[`convert deeplyCopy should convert array of nodes 1`] = ` }, }, "name": "T", + "optional": false, "range": [ 8, 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, }, @@ -454,6 +457,7 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` "type": "TSTypeReference", "typeArguments": undefined, "typeName": { + "decorators": [], "loc": { "end": { "column": 9, @@ -465,11 +469,13 @@ exports[`convert deeplyCopy should convert node with type arguments correctly 1` }, }, "name": "T", + "optional": false, "range": [ 8, 9, ], "type": "Identifier", + "typeAnnotation": undefined, }, "typeParameters": undefined, },