From 6d820a27578254603ad6d6623277f31d5410a37c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 23 Nov 2017 21:12:13 +0000 Subject: [PATCH] removing expression field from ArrowFunctionExpression (#6836) --- packages/babylon/ast/spec.md | 1 - packages/babylon/src/parser/expression.js | 14 ++--- packages/babylon/src/plugins/estree.js | 22 ++++++-- .../pass/3/expected.json | 1 - .../expected.json | 3 +- .../expected.json | 4 +- .../expected.json | 12 ++--- .../basic/shebang-object/expected.json | 2 +- .../surrounding-call-comments/expected.json | 1 - .../expected.json | 1 - .../surrounding-return-comments/expected.json | 1 - .../surrounding-throw-comments/expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 2 - .../core/regression/2591/expected.json | 1 - .../module-export-named/expected.json | 1 - .../core/uncategorised/22/expected.json | 2 +- .../core/uncategorised/229/expected.json | 1 - .../core/uncategorised/23/expected.json | 2 +- .../core/uncategorised/24/expected.json | 2 +- .../core/uncategorised/25/expected.json | 2 +- .../core/uncategorised/259/expected.json | 1 - .../core/uncategorised/26/expected.json | 2 +- .../core/uncategorised/260/expected.json | 1 - .../core/uncategorised/261/expected.json | 1 - .../core/uncategorised/262/expected.json | 1 - .../core/uncategorised/27/expected.json | 2 +- .../core/uncategorised/275/expected.json | 2 +- .../core/uncategorised/28/expected.json | 4 +- .../core/uncategorised/284/expected.json | 1 - .../core/uncategorised/285/expected.json | 1 - .../core/uncategorised/286/expected.json | 1 - .../core/uncategorised/287/expected.json | 1 - .../core/uncategorised/288/expected.json | 1 - .../core/uncategorised/289/expected.json | 2 - .../core/uncategorised/29/expected.json | 3 +- .../core/uncategorised/290/expected.json | 1 - .../core/uncategorised/291/expected.json | 1 - .../core/uncategorised/292/expected.json | 1 - .../core/uncategorised/293/expected.json | 1 - .../core/uncategorised/294/expected.json | 1 - .../core/uncategorised/295/expected.json | 1 - .../core/uncategorised/296/expected.json | 1 - .../core/uncategorised/297/expected.json | 1 - .../core/uncategorised/298/expected.json | 1 - .../core/uncategorised/299/expected.json | 1 - .../core/uncategorised/30/expected.json | 3 +- .../core/uncategorised/31/expected.json | 3 +- .../core/uncategorised/310/expected.json | 1 - .../core/uncategorised/311/expected.json | 1 - .../core/uncategorised/312/expected.json | 1 - .../core/uncategorised/318/expected.json | 1 - .../core/uncategorised/32/expected.json | 3 +- .../core/uncategorised/33/expected.json | 3 +- .../core/uncategorised/335/expected.json | 2 +- .../core/uncategorised/338/expected.json | 2 +- .../core/uncategorised/34/expected.json | 3 +- .../core/uncategorised/35/expected.json | 3 +- .../core/uncategorised/36/expected.json | 3 +- .../core/uncategorised/37/expected.json | 3 +- .../core/uncategorised/38/expected.json | 3 +- .../core/uncategorised/39/expected.json | 3 +- .../core/uncategorised/40/expected.json | 3 +- .../core/uncategorised/41/expected.json | 3 +- .../core/uncategorised/42/expected.json | 3 +- .../core/uncategorised/43/expected.json | 3 +- .../core/uncategorised/44/expected.json | 2 +- .../core/uncategorised/45/expected.json | 2 +- .../core/uncategorised/539/expected.json | 1 - .../core/uncategorised/540/expected.json | 1 - .../core/uncategorised/541/expected.json | 1 - .../core/uncategorised/543/expected.json | 1 - .../core/uncategorised/546/expected.json | 2 +- .../core/uncategorised/549/expected.json | 2 +- .../with-object/expected.json | 2 +- .../in-logic-expression/expected.json | 2 - .../object-rest-spread/expected.json | 3 +- .../class-methods/linebreaks/expected.json | 30 ++++------- .../class-methods/tricky-names/expected.json | 14 ----- .../new-target-inside-params/expected.json | 3 -- .../meta-properties/new-target/expected.json | 1 - .../expected.json | 52 +++++++++---------- .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../es2015/regression/186/expected.json | 2 +- .../label-valid-func-non-strict/expected.json | 1 - .../es2015/uncategorised/105/expected.json | 1 - .../es2015/uncategorised/113/expected.json | 3 +- .../es2015/uncategorised/114/expected.json | 3 +- .../es2015/uncategorised/115/expected.json | 3 +- .../es2015/uncategorised/116/expected.json | 3 +- .../es2015/uncategorised/117/expected.json | 3 +- .../es2015/uncategorised/118/expected.json | 3 +- .../es2015/uncategorised/119/expected.json | 3 +- .../es2015/uncategorised/120/expected.json | 3 +- .../es2015/uncategorised/121/expected.json | 3 +- .../es2015/uncategorised/122/expected.json | 3 +- .../es2015/uncategorised/123/expected.json | 3 +- .../es2015/uncategorised/124/expected.json | 3 +- .../es2015/uncategorised/128/expected.json | 3 +- .../es2015/uncategorised/129/expected.json | 6 +-- .../es2015/uncategorised/131/expected.json | 6 +-- .../es2015/uncategorised/132/expected.json | 6 +-- .../es2015/uncategorised/133/expected.json | 6 +-- .../es2015/uncategorised/134/expected.json | 6 +-- .../es2015/uncategorised/135/expected.json | 12 ++--- .../es2015/uncategorised/136/expected.json | 1 - .../es2015/uncategorised/137/expected.json | 3 +- .../es2015/uncategorised/138/expected.json | 6 +-- .../es2015/uncategorised/139/expected.json | 6 +-- .../es2015/uncategorised/143/expected.json | 1 - .../es2015/uncategorised/144/expected.json | 2 +- .../es2015/uncategorised/145/expected.json | 6 +-- .../es2015/uncategorised/146/expected.json | 1 - .../es2015/uncategorised/147/expected.json | 2 +- .../es2015/uncategorised/148/expected.json | 1 - .../es2015/uncategorised/149/expected.json | 1 - .../es2015/uncategorised/150/expected.json | 1 - .../es2015/uncategorised/152/expected.json | 1 - .../es2015/uncategorised/153/expected.json | 5 +- .../es2015/uncategorised/154/expected.json | 5 +- .../es2015/uncategorised/155/expected.json | 7 ++- .../es2015/uncategorised/156/expected.json | 7 ++- .../es2015/uncategorised/157/expected.json | 7 ++- .../es2015/uncategorised/158/expected.json | 5 +- .../es2015/uncategorised/159/expected.json | 1 - .../es2015/uncategorised/160/expected.json | 1 - .../es2015/uncategorised/161/expected.json | 3 +- .../es2015/uncategorised/162/expected.json | 3 +- .../es2015/uncategorised/163/expected.json | 1 - .../es2015/uncategorised/164/expected.json | 1 - .../es2015/uncategorised/165/expected.json | 5 +- .../es2015/uncategorised/166/expected.json | 3 +- .../es2015/uncategorised/167/expected.json | 1 - .../es2015/uncategorised/168/expected.json | 9 ++-- .../es2015/uncategorised/169/expected.json | 1 - .../es2015/uncategorised/170/expected.json | 5 +- .../es2015/uncategorised/171/expected.json | 1 - .../es2015/uncategorised/172/expected.json | 9 ++-- .../es2015/uncategorised/173/expected.json | 3 +- .../es2015/uncategorised/174/expected.json | 3 +- .../es2015/uncategorised/175/expected.json | 11 ++-- .../es2015/uncategorised/176/expected.json | 1 - .../es2015/uncategorised/177/expected.json | 1 - .../es2015/uncategorised/178/expected.json | 3 +- .../es2015/uncategorised/179/expected.json | 3 +- .../es2015/uncategorised/180/expected.json | 1 - .../es2015/uncategorised/181/expected.json | 1 - .../es2015/uncategorised/182/expected.json | 3 +- .../es2015/uncategorised/183/expected.json | 5 +- .../es2015/uncategorised/186/expected.json | 4 +- .../es2015/uncategorised/190/expected.json | 4 +- .../es2015/uncategorised/26/expected.json | 5 +- .../es2015/uncategorised/279/expected.json | 3 +- .../es2015/uncategorised/28/expected.json | 1 - .../es2015/uncategorised/29/expected.json | 1 - .../es2015/uncategorised/30/expected.json | 1 - .../es2015/uncategorised/300/expected.json | 1 - .../es2015/uncategorised/303/expected.json | 2 +- .../es2015/uncategorised/304/expected.json | 2 +- .../es2015/uncategorised/305/expected.json | 2 +- .../es2015/uncategorised/307/expected.json | 2 +- .../es2015/uncategorised/308/expected.json | 3 +- .../es2015/uncategorised/309/expected.json | 4 +- .../es2015/uncategorised/31/expected.json | 1 - .../es2015/uncategorised/310/expected.json | 2 +- .../es2015/uncategorised/313/expected.json | 2 +- .../es2015/uncategorised/314/expected.json | 3 +- .../es2015/uncategorised/316/expected.json | 3 +- .../es2015/uncategorised/32/expected.json | 1 - .../es2015/uncategorised/321/expected.json | 2 +- .../es2015/uncategorised/33/expected.json | 3 +- .../es2015/uncategorised/338/expected.json | 1 - .../es2015/uncategorised/34/expected.json | 1 - .../es2015/uncategorised/35/expected.json | 1 - .../es2015/uncategorised/350/expected.json | 2 +- .../es2015/uncategorised/351/expected.json | 5 +- .../es2015/uncategorised/352/expected.json | 5 +- .../es2015/uncategorised/355/expected.json | 3 +- .../es2015/uncategorised/36/expected.json | 1 - .../es2015/uncategorised/360/expected.json | 2 +- .../es2015/uncategorised/362/expected.json | 3 +- .../es2015/uncategorised/364/expected.json | 1 - .../es2015/uncategorised/384/expected.json | 1 - .../es2015/uncategorised/385/expected.json | 1 - .../es2015/uncategorised/39/expected.json | 1 - .../es2015/uncategorised/391/expected.json | 1 - .../es2015/uncategorised/393/expected.json | 3 +- .../es2015/uncategorised/40/expected.json | 1 - .../es2015/uncategorised/41/expected.json | 1 - .../es2015/uncategorised/42/expected.json | 1 - .../es2015/uncategorised/43/expected.json | 1 - .../es2015/uncategorised/44/expected.json | 1 - .../es2015/uncategorised/45/expected.json | 1 - .../es2015/uncategorised/46/expected.json | 1 - .../es2015/uncategorised/47/expected.json | 2 - .../es2015/uncategorised/48/expected.json | 2 - .../es2015/uncategorised/49/expected.json | 1 - .../es2015/uncategorised/5/expected.json | 1 - .../es2015/uncategorised/50/expected.json | 1 - .../es2015/uncategorised/52/expected.json | 3 +- .../es2015/uncategorised/53/expected.json | 3 +- .../es2015/uncategorised/54/expected.json | 3 +- .../es2015/uncategorised/55/expected.json | 3 +- .../es2015/uncategorised/56/expected.json | 3 +- .../es2015/uncategorised/61/expected.json | 4 +- .../es2015/uncategorised/63/expected.json | 2 +- .../es2015/uncategorised/65/expected.json | 2 +- .../es2015/uncategorised/67/expected.json | 2 +- .../es2015/uncategorised/69/expected.json | 2 +- .../es2015/uncategorised/70/expected.json | 2 +- .../es2015/uncategorised/71/expected.json | 2 +- .../es2015/uncategorised/77/expected.json | 1 - .../es2015/uncategorised/80/expected.json | 1 - .../es2015/uncategorised/81/expected.json | 1 - .../es2015/uncategorised/9/expected.json | 1 - .../fixtures/es2015/yield/asi/expected.json | 1 - .../yield/basic-with-argument/expected.json | 1 - .../basic-without-argument/expected.json | 1 - .../expected.json | 1 - .../expected.json | 2 - .../expected.json | 1 - .../expected.json | 3 +- .../expected.json | 1 - .../expected.json | 3 +- .../expected.json | 2 - .../expected.json | 3 -- .../expected.json | 3 -- .../expected.json | 1 - .../expected.json | 2 - .../expected.json | 1 - .../expected.json | 3 -- .../expected.json | 1 - .../yield/parameter-name-arrow/expected.json | 1 - .../parameter-name-function/expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 3 +- .../expected.json | 1 - .../expected.json | 1 - .../es2015/yield/yield-yield/expected.json | 1 - .../arrow-function-concise-body/expected.json | 1 - .../expected.json | 1 - .../es2017/async-functions/1/expected.json | 1 - .../es2017/async-functions/11/expected.json | 1 - .../es2017/async-functions/12/expected.json | 1 - .../es2017/async-functions/13/expected.json | 2 - .../es2017/async-functions/14/expected.json | 1 - .../es2017/async-functions/15/expected.json | 5 +- .../es2017/async-functions/16/expected.json | 3 +- .../es2017/async-functions/17/expected.json | 1 - .../es2017/async-functions/18/expected.json | 1 - .../es2017/async-functions/21/expected.json | 1 - .../es2017/async-functions/22/expected.json | 3 +- .../es2017/async-functions/24/expected.json | 1 - .../es2017/async-functions/25/expected.json | 1 - .../es2017/async-functions/26/expected.json | 1 - .../es2017/async-functions/27/expected.json | 1 - .../es2017/async-functions/28/expected.json | 1 - .../es2017/async-functions/29/expected.json | 3 +- .../es2017/async-functions/30/expected.json | 3 +- .../es2017/async-functions/31/expected.json | 1 - .../es2017/async-functions/32/expected.json | 1 - .../es2017/async-functions/33/expected.json | 3 +- .../es2017/async-functions/34/expected.json | 3 +- .../es2017/async-functions/37/expected.json | 2 +- .../es2017/async-functions/38/expected.json | 2 +- .../es2017/async-functions/8/expected.json | 2 +- .../export-arrow/expected.json | 1 - .../async-functions/export/expected.json | 2 - .../object-default-params/expected.json | 3 +- .../trailing-function-commas/2/expected.json | 1 - .../trailing-function-commas/3/expected.json | 3 +- .../trailing-function-commas/4/expected.json | 1 - .../migrated_0010/expected.json | 1 - .../migrated_0011/expected.json | 1 - .../migrated_0012/expected.json | 1 - .../migrated_0000/expected.json | 1 - .../migrated_0001/expected.json | 1 - .../migrated_0002/expected.json | 1 - .../migrated_0003/expected.json | 1 - .../migrated_0004/expected.json | 1 - .../migrated_0005/expected.json | 2 - .../migrated_0006/expected.json | 1 - .../migrated_0007/expected.json | 1 - .../migrated_0008/expected.json | 1 - .../migrated_0009/expected.json | 1 - .../migrated_0010/expected.json | 1 - .../migrated_0011/expected.json | 1 - .../migrated_0012/expected.json | 1 - .../migrated_0013/expected.json | 1 - .../migrated_0014/expected.json | 1 - .../migrated_0000/expected.json | 1 - .../migrated_0001/expected.json | 1 - .../array-binding-pattern-01/expected.json | 1 - .../array-binding-pattern-02/expected.json | 1 - .../array-binding-pattern-03/expected.json | 1 - .../array-binding-pattern-empty/expected.json | 1 - .../elision/expected.json | 1 - .../empty-pattern-fn/expected.json | 1 - .../patterned-catch/expected.json | 6 +-- .../with-default-fn/expected.json | 1 - .../with-object-pattern/expected.json | 2 +- .../expected.json | 1 - .../arrow-with-only-rest/expected.json | 1 - .../migrated_0000/expected.json | 1 - .../migrated_0001/expected.json | 1 - .../migrated_0002/expected.json | 1 - .../migrated_0003/expected.json | 1 - .../migrated_0004/expected.json | 1 - .../migrated_0005/expected.json | 3 +- .../migrated_0006/expected.json | 1 - .../migrated_0007/expected.json | 1 - .../migrated_0008/expected.json | 1 - .../migrated_0009/expected.json | 1 - .../migrated_0010/expected.json | 1 - .../migrated_0011/expected.json | 1 - .../migrated_0012/expected.json | 1 - .../migrated_0013/expected.json | 1 - .../migrated_0014/expected.json | 1 - .../migrated_0015/expected.json | 1 - .../migrated_0016/expected.json | 2 - .../migrated_0017/expected.json | 2 - .../migrated_0018/expected.json | 1 - .../migrated_0019/expected.json | 1 - .../migrated_0020/expected.json | 1 - .../es2015-class/migrated_0004/expected.json | 3 +- .../es2015-class/migrated_0005/expected.json | 6 +-- .../es2015-class/migrated_0006/expected.json | 6 +-- .../es2015-class/migrated_0007/expected.json | 6 +-- .../es2015-class/migrated_0008/expected.json | 6 +-- .../es2015-class/migrated_0009/expected.json | 3 +- .../es2015-class/migrated_0010/expected.json | 6 +-- .../es2015-class/migrated_0011/expected.json | 9 ++-- .../es2015-class/migrated_0012/expected.json | 3 +- .../es2015-class/migrated_0013/expected.json | 1 - .../es2015-class/migrated_0014/expected.json | 2 - .../es2015-class/migrated_0015/expected.json | 3 +- .../es2015-class/migrated_0017/expected.json | 3 +- .../es2015-class/migrated_0018/expected.json | 3 +- .../es2015-class/migrated_0019/expected.json | 4 +- .../es2015-class/migrated_0020/expected.json | 6 +-- .../es2015-class/migrated_0021/expected.json | 1 - .../migrated_0000/expected.json | 1 - .../migrated_0001/expected.json | 1 - .../migrated_0002/expected.json | 3 +- .../nested-cover-grammar/expected.json | 2 +- .../nested-cover-grammar/expected.json | 2 +- .../object-pattern-assignment/expected.json | 12 ++--- .../export-default-function/expected.json | 1 - .../expected.json | 1 - .../export-default-object/expected.json | 2 +- .../export-function-declaration/expected.json | 1 - .../export-function/expected.json | 1 - .../expected.json | 1 - .../for-of-object-pattern-const/expected.json | 4 +- .../for-of-object-pattern/expected.json | 4 +- .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../generator-declaration/expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../generator-expression/expected.json | 1 - .../expected.json | 2 - .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../generator-method-with-yield/expected.json | 3 +- .../generator-method/expected.json | 3 +- .../expected.json | 1 - .../static-generator-method/expected.json | 3 +- .../assign-new-target/expected.json | 1 - .../new-new-target/expected.json | 1 - .../new-target-declaration/expected.json | 1 - .../new-target-expression/expected.json | 1 - .../new-target-invoke/expected.json | 1 - .../new-target-precedence/expected.json | 1 - .../migrated_0000/expected.json | 3 +- .../migrated_0001/expected.json | 3 +- .../migrated_0002/expected.json | 3 +- .../migrated_0003/expected.json | 3 +- .../migrated_0004/expected.json | 3 +- .../expected.json | 8 ++- .../proto-identifier-getter/expected.json | 5 +- .../proto-identifier-method/expected.json | 5 +- .../proto-identifier-setter/expected.json | 5 +- .../proto-literal-getter-setter/expected.json | 8 ++- .../proto-literal-getter/expected.json | 5 +- .../proto-literal-method/expected.json | 5 +- .../proto-literal-setter/expected.json | 5 +- .../migrated_0000/expected.json | 4 +- .../elision/expected.json | 2 +- .../empty-fn/expected.json | 1 - .../nested/expected.json | 2 +- .../properties/expected.json | 8 +-- .../migrated_0002/expected.json | 1 - .../migrated_0006/expected.json | 1 - .../function-declaration/expected.json | 1 - .../function-expression/expected.json | 1 - .../object-method/expected.json | 3 +- .../object-shorthand-method/expected.json | 3 +- .../arrow_super/expected.json | 4 +- .../constructor_super/expected.json | 3 +- .../new_super/expected.json | 3 +- .../super_computed/expected.json | 3 +- .../super_member/expected.json | 3 +- .../yield-arrow-concise-body/expected.json | 1 - .../yield-arrow-function-body/expected.json | 1 - .../expected.json | 1 - .../yield-arrow-parameter-name/expected.json | 1 - .../yield-binding-element/expected.json | 2 +- .../yield-binding-property/expected.json | 2 +- .../expected.json | 1 - .../yield-expression-precedence/expected.json | 1 - .../expected.json | 1 - .../yield-function-declaration/expected.json | 1 - .../expected.json | 1 - .../yield-function-expression/expected.json | 1 - .../expected.json | 2 - .../expected.json | 2 - .../yield-generator-declaration/expected.json | 1 - .../expected.json | 2 - .../expected.json | 2 - .../yield-generator-method/expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 1 - .../es2015-yield/yield-method/expected.json | 3 +- .../expected.json | 3 +- .../yield-rest-parameter/expected.json | 1 - .../expected.json | 2 +- .../yield-strict-method/expected.json | 3 +- .../yield-super-property/expected.json | 3 +- .../expected.json | 1 - .../yield-yield-expression/expected.json | 1 - .../arrow-rest-parameter-array/expected.json | 1 - .../arrow-rest-parameter-object/expected.json | 3 +- .../function-declaration/expected.json | 1 - .../function-expression/expected.json | 1 - .../invalid-setter-rest/expected.json | 3 +- .../object-method/expected.json | 3 +- .../object-shorthand-method/expected.json | 3 +- .../rest-parameter-array/expected.json | 1 - .../rest-parameter-object/expected.json | 3 +- .../statement-if/migrated_0001/expected.json | 1 - .../migrated_0000/expected.json | 1 - .../migrated_0001/expected.json | 1 - .../migrated_0002/expected.json | 1 - .../migrated_0003/expected.json | 1 - .../migrated_0002/expected.json | 2 +- .../estree/class-method/basic/expected.json | 4 +- .../estree/class-method/flow/expected.json | 4 +- .../estree/directives/block/expected.json | 2 +- .../function-non-strict/expected.json | 2 +- .../estree/directives/raw/expected.json | 2 +- .../estree/object-method/basic/expected.json | 4 +- .../object-property/basic/expected.json | 2 +- .../class-method-2/expected.json | 3 +- .../class-method/expected.json | 3 +- .../async-generators/for-await/expected.json | 1 - .../object-method/expected.json | 3 +- .../bigint/valid-large/expected.json | 2 +- .../bigint/valid-small/expected.json | 2 +- .../async-generator/expected.json | 3 +- .../class-private-methods/async/expected.json | 3 +- .../combined/expected.json | 6 +-- .../generator/expected.json | 3 +- .../get-set/expected.json | 4 +- .../method/expected.json | 3 +- .../asi-success/expected.json | 2 +- .../inline/expected.json | 2 +- .../nested/expected.json | 16 +----- .../pbn-success/expected.json | 9 +--- .../static/expected.json | 2 +- .../asi-success/expected.json | 7 ++- .../class-properties/computed/expected.json | 1 - .../class-properties/edge-cases/expected.json | 41 +++++++-------- .../class-properties/inline/expected.json | 8 +-- .../new-target-with-flow/expected.json | 4 -- .../class-properties/new-target/expected.json | 4 -- .../class-properties/super/expected.json | 5 +- .../class-expression/expected.json | 3 +- .../class-generator/expected.json | 3 +- .../decorators-2/complex-expr/expected.json | 3 +- .../decoratorception-class/expected.json | 2 +- .../decoratorception-method/expected.json | 8 ++- .../decorators-2/get-decorator/expected.json | 1 - .../on-computed-name-method/expected.json | 1 - .../decorators-2/set-decorator/expected.json | 1 - .../decorators-2/static-method/expected.json | 3 +- .../class-decorator-getter/expected.json | 3 +- .../class-decorator-setter/expected.json | 3 +- .../class-decorators-multiple/expected.json | 3 +- .../class-method-parameter/expected.json | 5 +- .../expected.json | 2 +- .../computed-member-expression/expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../decorators/method-decorator/expected.json | 3 +- .../decorators/object-decorator/expected.json | 2 +- .../object-method-parameter/expected.json | 5 +- .../do-expressions/with-jsx/expected.json | 1 - .../dynamic-import/generator/expected.json | 1 - .../inside-function/expected.json | 1 - .../dynamic-import/top-level/expected.json | 1 - .../variable-arguments/expected.json | 1 - .../expected.json | 1 - .../enabled-call-statement/expected.json | 1 - .../function-sent/enabled-call/expected.json | 1 - .../enabled-if-statement/expected.json | 1 - .../enabled-inside-generator/expected.json | 1 - .../enabled-statement/expected.json | 1 - .../object-rest-spread/10/expected.json | 4 +- .../object-rest-spread/2/expected.json | 2 +- .../object-rest-spread/3/expected.json | 3 +- .../object-rest-spread/5/expected.json | 2 +- .../object-rest-spread/6/expected.json | 6 +-- .../class-contructor-call/expected.json | 30 +++++------ .../conditional-decimal/expected.json | 2 +- .../function-call/expected.json | 10 ++-- .../member-access/expected.json | 12 ++--- .../pipeline-operator/chain/expected.json | 1 - .../precedence/expected.json | 2 +- .../with-arrow/expected.json | 1 - .../throw-expression/comma/expected.json | 1 - .../throw-expression/expression/expected.json | 1 - .../throw-expression/logical/expected.json | 1 - .../throw-expression/statement/expected.json | 1 - .../uncategorised/43/expected.json | 2 +- .../uncategorised/44/expected.json | 2 +- .../uncategorised/45/expected.json | 2 +- .../uncategorised/46/expected.json | 2 +- .../uncategorised/47/expected.json | 2 +- .../uncategorised/48/expected.json | 2 +- .../uncategorised/49/expected.json | 2 +- .../uncategorised/62/expected.json | 1 - .../good_03/expected.json | 1 - .../good_04/expected.json | 1 - .../good_05/expected.json | 1 - .../good_13/expected.json | 3 +- .../good_10/expected.json | 1 - .../good_11/expected.json | 1 - .../good_12/expected.json | 1 - .../good_13/expected.json | 1 - .../good_14/expected.json | 1 - .../flow/bounded-polymorphism/2/expected.json | 1 - .../expected.json | 2 +- .../expected.json | 3 +- .../flow/comment/spread/expected.json | 2 - .../flow/def-site-variance/1/expected.json | 1 - .../literal-types/string-double/expected.json | 1 - .../literal-types/string-single/expected.json | 1 - .../flow/optional-type/1/expected.json | 1 - .../flow/optional-type/3/expected.json | 1 - .../flow/optional-type/4/expected.json | 1 - .../fixtures/flow/predicates/2/expected.json | 1 - .../fixtures/flow/predicates/3/expected.json | 1 - .../flow/regression/issue-166/expected.json | 1 - .../flow/regression/issue-2083/expected.json | 6 +-- .../flow/regression/issue-2493/expected.json | 1 - .../flow/regression/issue-321/expected.json | 2 - .../flow/regression/issue-336/expected.json | 1 - .../flow/regression/issue-58/expected.json | 39 -------------- .../flow/regression/issue-593/expected.json | 1 - .../flow/regression/issue-92/expected.json | 1 - .../1/expected.json | 1 - .../flow/type-annotations/1/expected.json | 1 - .../flow/type-annotations/10/expected.json | 1 - .../flow/type-annotations/100/expected.json | 3 +- .../flow/type-annotations/101/expected.json | 1 - .../flow/type-annotations/102/expected.json | 1 - .../flow/type-annotations/103/expected.json | 1 - .../flow/type-annotations/104/expected.json | 6 +-- .../flow/type-annotations/105/expected.json | 1 - .../flow/type-annotations/107/expected.json | 3 +- .../flow/type-annotations/108/expected.json | 24 ++++----- .../flow/type-annotations/11/expected.json | 1 - .../flow/type-annotations/118/expected.json | 2 +- .../flow/type-annotations/119/expected.json | 2 +- .../flow/type-annotations/12/expected.json | 1 - .../flow/type-annotations/13/expected.json | 1 - .../flow/type-annotations/130/expected.json | 1 - .../flow/type-annotations/14/expected.json | 1 - .../flow/type-annotations/15/expected.json | 1 - .../flow/type-annotations/16/expected.json | 1 - .../flow/type-annotations/17/expected.json | 1 - .../flow/type-annotations/18/expected.json | 1 - .../flow/type-annotations/19/expected.json | 1 - .../flow/type-annotations/2/expected.json | 1 - .../flow/type-annotations/20/expected.json | 3 +- .../flow/type-annotations/21/expected.json | 3 +- .../flow/type-annotations/22/expected.json | 3 +- .../flow/type-annotations/23/expected.json | 3 +- .../flow/type-annotations/24/expected.json | 3 +- .../flow/type-annotations/25/expected.json | 3 +- .../flow/type-annotations/26/expected.json | 3 +- .../flow/type-annotations/27/expected.json | 3 +- .../flow/type-annotations/28/expected.json | 3 +- .../flow/type-annotations/29/expected.json | 3 +- .../flow/type-annotations/3/expected.json | 1 - .../flow/type-annotations/4/expected.json | 1 - .../flow/type-annotations/5/expected.json | 1 - .../flow/type-annotations/50/expected.json | 3 +- .../flow/type-annotations/51/expected.json | 3 +- .../flow/type-annotations/52/expected.json | 1 - .../flow/type-annotations/53/expected.json | 4 +- .../flow/type-annotations/54/expected.json | 4 +- .../flow/type-annotations/56/expected.json | 3 +- .../flow/type-annotations/6/expected.json | 1 - .../flow/type-annotations/60/expected.json | 4 +- .../flow/type-annotations/61/expected.json | 4 +- .../flow/type-annotations/63/expected.json | 3 +- .../flow/type-annotations/64/expected.json | 1 - .../flow/type-annotations/65/expected.json | 1 - .../flow/type-annotations/66/expected.json | 1 - .../flow/type-annotations/67/expected.json | 1 - .../flow/type-annotations/68/expected.json | 1 - .../flow/type-annotations/69/expected.json | 1 - .../flow/type-annotations/7/expected.json | 1 - .../flow/type-annotations/70/expected.json | 1 - .../flow/type-annotations/71/expected.json | 1 - .../flow/type-annotations/72/expected.json | 1 - .../flow/type-annotations/73/expected.json | 1 - .../flow/type-annotations/74/expected.json | 1 - .../flow/type-annotations/75/expected.json | 1 - .../flow/type-annotations/76/expected.json | 1 - .../flow/type-annotations/77/expected.json | 1 - .../flow/type-annotations/79/expected.json | 1 - .../flow/type-annotations/8/expected.json | 1 - .../flow/type-annotations/80/expected.json | 1 - .../flow/type-annotations/9/expected.json | 1 - .../flow/type-annotations/97/expected.json | 3 +- .../flow/type-annotations/99/expected.json | 1 - .../arrow-func-return-newline/expected.json | 1 - .../existential-type-param-2/expected.json | 1 - .../expected.json | 1 - .../with-default-valid/expected.json | 1 - .../flow/type-generics/1/expected.json | 4 +- .../flow/type-generics/2/expected.json | 1 - .../type-generics/async-arrow/expected.json | 7 ++- .../arrow_with_jsx/expected.json | 4 -- .../arrow_without_jsx/expected.json | 4 -- .../class-method-reserved-word/expected.json | 24 +++------ .../expected.json | 3 +- .../object-reserved-word/expected.json | 12 ++--- .../fixtures/flow/typecasts/2/expected.json | 4 +- .../fixtures/flow/typecasts/3/expected.json | 1 - .../yield-extra-parentheses/expected.json | 1 - .../flow/typecasts/yield/expected.json | 1 - .../test/fixtures/jsx/basic/asi/expected.json | 1 - .../jsx/basic/fragment-1/expected.json | 2 +- .../jsx/basic/yield-tag/expected.json | 1 - .../fixtures/jsx/regression/3/expected.json | 2 +- .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../array-pattern-empty/expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 7 ++- .../expected.json | 1 - .../array-pattern-multi-element/expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 3 +- .../expected.json | 1 - .../expected.json | 1 - .../expected.json | 3 +- .../expected.json | 1 - .../expected.json | 3 +- .../object-pattern-empty/expected.json | 1 - .../expected.json | 7 ++- .../expected.json | 7 ++- .../expected.json | 7 ++- .../expected.json | 13 +++-- .../expected.json | 7 ++- .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 3 +- .../expected.json | 5 +- .../expected.json | 3 +- .../arrow-function/annotated/expected.json | 3 +- .../expected.json | 2 +- .../async-generic/expected.json | 2 +- .../arrow-function/async/expected.json | 3 +- .../default-parameter-values/expected.json | 3 +- .../destructuring/expected.json | 3 +- .../arrow-function/generic-tsx/expected.json | 3 +- .../arrow-function/generic/expected.json | 3 +- .../optional-parameter/expected.json | 3 +- .../predicate-types/expected.json | 3 +- .../class/constructor/expected.json | 11 ++-- .../typescript/class/declare/expected.json | 12 ++--- .../expected.json | 2 +- .../class/expression-extends/expected.json | 2 +- .../class/expression-generic/expected.json | 2 +- .../class/expression-implements/expected.json | 2 +- .../class/extends-implements/expected.json | 2 +- .../typescript/class/extends/expected.json | 2 +- .../typescript/class/generic/expected.json | 4 +- .../class/get-generic/expected.json | 5 +- .../typescript/class/implements/expected.json | 2 +- .../class/index-signature/expected.json | 2 +- .../members-with-modifier-names/expected.json | 11 ++-- .../members-with-reserved-names/expected.json | 5 +- .../class/method-computed/expected.json | 4 +- .../class/method-generic/expected.json | 6 +-- .../class/method-no-body/expected.json | 8 ++- .../class/method-optional/expected.json | 5 +- .../class/method-return-type/expected.json | 5 +- .../expected.json | 3 +- .../expected.json | 6 +-- .../class/modifiers-accessors/expected.json | 21 +++----- .../modifiers-methods-async/expected.json | 21 +++----- .../class/modifiers-properties/expected.json | 34 ++++++------ .../expected.json | 5 +- .../class/parameter-properties/expected.json | 5 +- .../typescript/class/properties/expected.json | 10 ++-- .../class/property-computed/expected.json | 2 +- .../typescript/class/static/expected.json | 12 ++--- .../const/no-initializer/expected.json | 2 +- .../typescript/declare/const/expected.json | 2 +- .../declare/destructure/expected.json | 10 ++-- .../typescript/declare/var/expected.json | 2 +- .../typescript/export/declare/expected.json | 3 +- .../function/annotated/expected.json | 3 +- .../function/anonymous/expected.json | 3 +- .../typescript/function/declare/expected.json | 4 +- .../function/export-default/expected.json | 3 +- .../function/overloads/expected.json | 4 +- .../function/predicate-types/expected.json | 4 +- .../interface/call-signature/expected.json | 2 +- .../construct-signature/expected.json | 2 +- .../interface/extends/expected.json | 2 +- .../interface/generic/expected.json | 4 +- .../interface/index-signature/expected.json | 2 +- .../interface/method-computed/expected.json | 2 +- .../interface/method-generic/expected.json | 6 +-- .../interface/method-optional/expected.json | 4 +- .../interface/method-plain/expected.json | 6 +-- .../interface/modifiers/expected.json | 4 +- .../interface/properties/expected.json | 10 ++-- .../interface/property-computed/expected.json | 2 +- .../property-named-public/expected.json | 4 +- .../reserved-method-name/expected.json | 4 +- .../interface/separators/expected.json | 14 ++--- .../body-declare/expected.json | 2 +- .../body-nested-declare/expected.json | 2 +- .../global-in-module/expected.json | 2 +- .../tsx/brace-is-block/expected.json | 2 +- .../type-alias/generic-complex/expected.json | 4 +- .../type-alias/generic/expected.json | 2 +- .../type-arguments/call/expected.json | 2 +- .../type-arguments/new/expected.json | 2 +- .../type-arguments/whitespace/expected.json | 3 +- .../typescript/types/array/expected.json | 2 +- .../types/function-generic/expected.json | 2 +- .../types/function-in-generic/expected.json | 2 +- .../types/function-with-this/expected.json | 2 +- .../typescript/types/function/expected.json | 2 +- .../typescript/types/indexed/expected.json | 2 +- .../typescript/types/keywords/expected.json | 2 +- .../types/literal-boolean/expected.json | 2 +- .../literal-number-negative/expected.json | 2 +- .../types/literal-number/expected.json | 2 +- .../types/literal-string/expected.json | 2 +- .../typescript/types/mapped/expected.json | 2 +- .../reference-generic-nested/expected.json | 2 +- .../types/reference-generic/expected.json | 2 +- .../typescript/types/reference/expected.json | 2 +- .../types/type-literal/expected.json | 4 +- .../types/type-operator/expected.json | 2 +- .../typescript/types/typeof/expected.json | 2 +- .../types/union-intersection/expected.json | 2 +- 786 files changed, 728 insertions(+), 1533 deletions(-) diff --git a/packages/babylon/ast/spec.md b/packages/babylon/ast/spec.md index 644f4af81baf..0764d979f142 100644 --- a/packages/babylon/ast/spec.md +++ b/packages/babylon/ast/spec.md @@ -627,7 +627,6 @@ A `this` expression. interface ArrowFunctionExpression <: Function, Expression { type: "ArrowFunctionExpression"; body: BlockStatement | Expression; - expression: boolean; } ``` diff --git a/packages/babylon/src/parser/expression.js b/packages/babylon/src/parser/expression.js index 97b3d9f2ddef..7c0edbadac64 100644 --- a/packages/babylon/src/parser/expression.js +++ b/packages/babylon/src/parser/expression.js @@ -1480,7 +1480,6 @@ export default class ExpressionParser extends LValParser { initFunction(node: N.BodilessFunctionOrMethodBase, isAsync: ?boolean): void { node.id = null; node.generator = false; - node.expression = false; node.async = !!isAsync; } @@ -1559,11 +1558,10 @@ export default class ExpressionParser extends LValParser { ); } - isStrictBody( - node: { body: N.BlockStatement }, - isExpression: ?boolean, - ): boolean { - if (!isExpression && node.body.directives.length) { + isStrictBody(node: { body: N.BlockStatement }): boolean { + const isBlockStatement = node.body.type === "BlockStatement"; + + if (isBlockStatement && node.body.directives.length) { for (const directive of node.body.directives) { if (directive.value.value === "use strict") { return true; @@ -1595,7 +1593,6 @@ export default class ExpressionParser extends LValParser { if (isExpression) { node.body = this.parseMaybeAssign(); - node.expression = true; } else { // Start a new scope with regard to labels and the `inGenerator` // flag (restore them to their old value afterwards). @@ -1606,7 +1603,6 @@ export default class ExpressionParser extends LValParser { this.state.inFunction = true; this.state.labels = []; node.body = this.parseBlock(true); - node.expression = false; this.state.inFunction = oldInFunc; this.state.inGenerator = oldInGen; this.state.labels = oldLabels; @@ -1624,7 +1620,7 @@ export default class ExpressionParser extends LValParser { // If this is a strict mode function, verify that argument names // are not repeated, and it does not try to bind the words `eval` // or `arguments`. - const isStrict = this.isStrictBody(node, node.expression); + const isStrict = this.isStrictBody(node); // Also check for arrow functions const checkLVal = this.state.strict || isStrict || isArrowFunction; diff --git a/packages/babylon/src/plugins/estree.js b/packages/babylon/src/plugins/estree.js index 70d5908c3811..358c66863cb0 100644 --- a/packages/babylon/src/plugins/estree.js +++ b/packages/babylon/src/plugins/estree.js @@ -66,6 +66,14 @@ export default (superClass: Class): Class => // Overrides // ================================== + initFunction( + node: N.BodilessFunctionOrMethodBase, + isAsync: ?boolean, + ): void { + super.initFunction(node, isAsync); + node.expression = false; + } + checkDeclaration(node: N.Pattern): void { if (isSimpleProperty(node)) { // $FlowFixMe @@ -128,11 +136,10 @@ export default (superClass: Class): Class => } } - isStrictBody( - node: { body: N.BlockStatement }, - isExpression: ?boolean, - ): boolean { - if (!isExpression && node.body.body.length > 0) { + isStrictBody(node: { body: N.BlockStatement }): boolean { + const isBlockStatement = node.body.type === "BlockStatement"; + + if (isBlockStatement && node.body.body.length > 0) { for (const directive of node.body.body) { if ( directive.type === "ExpressionStatement" && @@ -242,6 +249,11 @@ export default (superClass: Class): Class => return node; } + parseFunctionBody(node: N.Function, allowExpression: ?boolean): void { + super.parseFunctionBody(node, allowExpression); + node.expression = node.body.type !== "BlockStatement"; + } + parseMethod( node: T, isGenerator: boolean, diff --git a/packages/babylon/test/expressions/is-expression-babylon/pass/3/expected.json b/packages/babylon/test/expressions/is-expression-babylon/pass/3/expected.json index b7ffc7b6ca61..4eaed0b5c4be 100644 --- a/packages/babylon/test/expressions/is-expression-babylon/pass/3/expected.json +++ b/packages/babylon/test/expressions/is-expression-babylon/pass/3/expected.json @@ -14,7 +14,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json index 10e0d6cbdcba..d33bb43b35d1 100644 --- a/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json @@ -88,7 +88,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 103, @@ -107,10 +106,10 @@ "name": "method1", "leadingComments": null }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/function-trailing-comma-shorthand/expected.json b/packages/babylon/test/fixtures/comments/basic/function-trailing-comma-shorthand/expected.json index 95184b49b694..87ea5f9165cd 100644 --- a/packages/babylon/test/fixtures/comments/basic/function-trailing-comma-shorthand/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/function-trailing-comma-shorthand/expected.json @@ -121,8 +121,6 @@ } }, "method": false, - "shorthand": true, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -140,6 +138,8 @@ }, "name": "b" }, + "computed": false, + "shorthand": true, "value": { "type": "Identifier", "start": 8, diff --git a/packages/babylon/test/fixtures/comments/basic/object-property-trailing-comma/expected.json b/packages/babylon/test/fixtures/comments/basic/object-property-trailing-comma/expected.json index 3e55ef7129de..c34ab8f89d97 100644 --- a/packages/babylon/test/fixtures/comments/basic/object-property-trailing-comma/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/object-property-trailing-comma/expected.json @@ -104,8 +104,6 @@ } }, "method": false, - "shorthand": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -123,6 +121,8 @@ }, "name": "a" }, + "computed": false, + "shorthand": false, "value": { "type": "StringLiteral", "start": 17, @@ -159,8 +159,6 @@ } }, "method": false, - "shorthand": false, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -179,6 +177,8 @@ "name": "b", "leadingComments": null }, + "computed": false, + "shorthand": false, "value": { "type": "StringLiteral", "start": 40, @@ -233,8 +233,6 @@ } }, "method": false, - "shorthand": false, - "computed": false, "key": { "type": "Identifier", "start": 60, @@ -253,6 +251,8 @@ "name": "c", "leadingComments": null }, + "computed": false, + "shorthand": false, "value": { "type": "StringLiteral", "start": 63, diff --git a/packages/babylon/test/fixtures/comments/basic/shebang-object/expected.json b/packages/babylon/test/fixtures/comments/basic/shebang-object/expected.json index ba246f1e8906..bf2ed2a6d6b7 100644 --- a/packages/babylon/test/fixtures/comments/basic/shebang-object/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/shebang-object/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 33, @@ -106,6 +105,7 @@ "name": "spawn", "leadingComments": null }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json b/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json index ea2c84fbc98d..6d981c4e8f20 100644 --- a/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json b/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json index f3fc61bd293c..de669fb9c737 100644 --- a/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json b/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json index 02cf5d12e96b..cf52811b179c 100644 --- a/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json b/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json index c76d573a8464..5a49d0304040 100644 --- a/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json b/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json index 669d70dc8f1b..5cbea1bbf738 100644 --- a/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json index 3ce051b4a8dd..19b410da1109 100644 --- a/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json @@ -60,7 +60,6 @@ "name": "bar" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json index ec0792f047e3..93335c8ea6ce 100644 --- a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json @@ -60,7 +60,6 @@ "name": "bar" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json index 2c858e5b4524..9e74ce4779d5 100644 --- a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json @@ -123,7 +123,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -191,7 +190,6 @@ "name": "isConstant" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/regression/2591/expected.json b/packages/babylon/test/fixtures/core/regression/2591/expected.json index 71e7684f6c9d..6ccdff162257 100644 --- a/packages/babylon/test/fixtures/core/regression/2591/expected.json +++ b/packages/babylon/test/fixtures/core/regression/2591/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/sourcetype-unambiguous/module-export-named/expected.json b/packages/babylon/test/fixtures/core/sourcetype-unambiguous/module-export-named/expected.json index 01e29c42d4d9..5cb48eb09bfb 100644 --- a/packages/babylon/test/fixtures/core/sourcetype-unambiguous/module-export-named/expected.json +++ b/packages/babylon/test/fixtures/core/sourcetype-unambiguous/module-export-named/expected.json @@ -76,7 +76,6 @@ "name": "fn" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/22/expected.json b/packages/babylon/test/fixtures/core/uncategorised/22/expected.json index 8a57b4b290c8..fddf10097f8b 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/22/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/22/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "answer" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/229/expected.json b/packages/babylon/test/fixtures/core/uncategorised/229/expected.json index 38198e3d253a..e51a4dc3c271 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/229/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/229/expected.json @@ -89,7 +89,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/23/expected.json b/packages/babylon/test/fixtures/core/uncategorised/23/expected.json index 36656a5a0c16..c56978c4643d 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/23/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/23/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "if" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/24/expected.json b/packages/babylon/test/fixtures/core/uncategorised/24/expected.json index bf9211c537a5..69dcde772a92 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/24/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/24/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "true" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/25/expected.json b/packages/babylon/test/fixtures/core/uncategorised/25/expected.json index 72b5293e2e79..2d46aacb67f4 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/25/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/25/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "false" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/259/expected.json b/packages/babylon/test/fixtures/core/uncategorised/259/expected.json index fe9666a99eef..210a3c49ea3e 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/259/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/259/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/26/expected.json b/packages/babylon/test/fixtures/core/uncategorised/26/expected.json index b3d2471ea36b..9808cc6f9297 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/26/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/26/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "null" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/260/expected.json b/packages/babylon/test/fixtures/core/uncategorised/260/expected.json index 1f4ff8a16adb..4e4569aa913f 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/260/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/260/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/261/expected.json b/packages/babylon/test/fixtures/core/uncategorised/261/expected.json index 05b71f8cff2b..91a57f13b562 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/261/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/261/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/262/expected.json b/packages/babylon/test/fixtures/core/uncategorised/262/expected.json index bd73928291ae..d459bf8ae3c7 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/262/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/262/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/27/expected.json b/packages/babylon/test/fixtures/core/uncategorised/27/expected.json index 390c3895459b..39a2e86bcc33 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/27/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/27/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 6, @@ -125,6 +124,7 @@ }, "value": "answer" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/275/expected.json b/packages/babylon/test/fixtures/core/uncategorised/275/expected.json index 9c4a377caad3..fec4e5ed0890 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/275/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/275/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -90,6 +89,7 @@ }, "name": "message" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/28/expected.json b/packages/babylon/test/fixtures/core/uncategorised/28/expected.json index 96b5b5d4b54b..6c1b897cb91b 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/28/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/28/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -159,7 +159,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -177,6 +176,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/284/expected.json b/packages/babylon/test/fixtures/core/uncategorised/284/expected.json index 89d89116525c..23c82e441495 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/284/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/284/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/285/expected.json b/packages/babylon/test/fixtures/core/uncategorised/285/expected.json index 01acb188eddd..4373bde0ec98 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/285/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/285/expected.json @@ -60,7 +60,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/286/expected.json b/packages/babylon/test/fixtures/core/uncategorised/286/expected.json index 93d4d923bf8b..bfb149242022 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/286/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/286/expected.json @@ -60,7 +60,6 @@ "name": "arguments" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/287/expected.json b/packages/babylon/test/fixtures/core/uncategorised/287/expected.json index 05cce3b8f3d2..98648b2ea6a4 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/287/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/287/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/288/expected.json b/packages/babylon/test/fixtures/core/uncategorised/288/expected.json index 4b791206943f..1cdd5e11dc77 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/288/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/288/expected.json @@ -74,7 +74,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/289/expected.json b/packages/babylon/test/fixtures/core/uncategorised/289/expected.json index 1b08145eb97b..e9cfba6c404b 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/289/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/289/expected.json @@ -60,7 +60,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -110,7 +109,6 @@ "name": "inner" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/29/expected.json b/packages/babylon/test/fixtures/core/uncategorised/29/expected.json index f586ae626bfe..39910722776e 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/29/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/29/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "width" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/290/expected.json b/packages/babylon/test/fixtures/core/uncategorised/290/expected.json index a5373f5a7939..4b567d37932b 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/290/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/290/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/291/expected.json b/packages/babylon/test/fixtures/core/uncategorised/291/expected.json index cdfeb7b01952..d40cf30ddd1f 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/291/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/291/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/292/expected.json b/packages/babylon/test/fixtures/core/uncategorised/292/expected.json index 2a928b39d27a..30307ec20655 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/292/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/292/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/293/expected.json b/packages/babylon/test/fixtures/core/uncategorised/293/expected.json index ed3d6655c1b1..b83bc1984392 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/293/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/293/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/294/expected.json b/packages/babylon/test/fixtures/core/uncategorised/294/expected.json index 7df304a88aa3..fcf126fd3e70 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/294/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/294/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/295/expected.json b/packages/babylon/test/fixtures/core/uncategorised/295/expected.json index 53520cfe7fe1..80eba990ba8f 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/295/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/295/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/296/expected.json b/packages/babylon/test/fixtures/core/uncategorised/296/expected.json index ce5cb4228835..da1c8e428381 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/296/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/296/expected.json @@ -106,7 +106,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/297/expected.json b/packages/babylon/test/fixtures/core/uncategorised/297/expected.json index 2b88f0d95349..26a884193229 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/297/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/297/expected.json @@ -106,7 +106,6 @@ "name": "arguments" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/298/expected.json b/packages/babylon/test/fixtures/core/uncategorised/298/expected.json index f3e529622f37..0aaae5e1dbcd 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/298/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/298/expected.json @@ -106,7 +106,6 @@ "name": "hi" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/299/expected.json b/packages/babylon/test/fixtures/core/uncategorised/299/expected.json index f79af90cc1b6..845e87f68964 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/299/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/299/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/30/expected.json b/packages/babylon/test/fixtures/core/uncategorised/30/expected.json index e925ad0dafec..d429a166ba5c 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/30/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/30/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "undef" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/31/expected.json b/packages/babylon/test/fixtures/core/uncategorised/31/expected.json index c5b5923ef939..d1f81badfe81 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/31/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/31/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "if" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/310/expected.json b/packages/babylon/test/fixtures/core/uncategorised/310/expected.json index e5fa9ec2602b..5d53da8da0d5 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/310/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/310/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/311/expected.json b/packages/babylon/test/fixtures/core/uncategorised/311/expected.json index 3b50dd8b73cf..596e242872ed 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/311/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/311/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/312/expected.json b/packages/babylon/test/fixtures/core/uncategorised/312/expected.json index 6ae21e8aa6c2..8cc2cff071d7 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/312/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/312/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/318/expected.json b/packages/babylon/test/fixtures/core/uncategorised/318/expected.json index be25c9494bcf..390b3c0cb15c 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/318/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/318/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/32/expected.json b/packages/babylon/test/fixtures/core/uncategorised/32/expected.json index 338f19fb6760..0bb970b8bfdd 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/32/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/32/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "true" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/33/expected.json b/packages/babylon/test/fixtures/core/uncategorised/33/expected.json index 316ceff9fd12..b437e1198ea6 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/33/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/33/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "false" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/335/expected.json b/packages/babylon/test/fixtures/core/uncategorised/335/expected.json index ebb58af9d209..a43f8671a975 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/335/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/335/expected.json @@ -100,7 +100,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -118,6 +117,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayExpression", diff --git a/packages/babylon/test/fixtures/core/uncategorised/338/expected.json b/packages/babylon/test/fixtures/core/uncategorised/338/expected.json index 625cf5776ea2..3501c6abb808 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/338/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/338/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "NumericLiteral", "start": 2, @@ -93,6 +92,7 @@ }, "value": 1 }, + "computed": false, "shorthand": false, "value": { "type": "BinaryExpression", diff --git a/packages/babylon/test/fixtures/core/uncategorised/34/expected.json b/packages/babylon/test/fixtures/core/uncategorised/34/expected.json index ec8a37862420..2ccfebd84e8f 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/34/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/34/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "null" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/35/expected.json b/packages/babylon/test/fixtures/core/uncategorised/35/expected.json index 0a962208246d..2b4c3de12256 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/35/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/35/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 10, @@ -125,10 +124,10 @@ }, "value": "undef" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/36/expected.json b/packages/babylon/test/fixtures/core/uncategorised/36/expected.json index de643d969a12..13b51c0b8caa 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/36/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/36/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "NumericLiteral", "start": 10, @@ -125,10 +124,10 @@ }, "value": 10 }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/37/expected.json b/packages/babylon/test/fixtures/core/uncategorised/37/expected.json index 43b7edb9d14d..6d8e2915b4c7 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/37/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/37/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "width" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/38/expected.json b/packages/babylon/test/fixtures/core/uncategorised/38/expected.json index e7c0af752102..e2ad1e5fb537 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/38/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/38/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "if" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/39/expected.json b/packages/babylon/test/fixtures/core/uncategorised/39/expected.json index bb18e63d328a..191712949627 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/39/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/39/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "true" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/40/expected.json b/packages/babylon/test/fixtures/core/uncategorised/40/expected.json index e14dc5c87fe3..f07436992959 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/40/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/40/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "false" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/41/expected.json b/packages/babylon/test/fixtures/core/uncategorised/41/expected.json index 20b729527407..09febf2f3733 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/41/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/41/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "null" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/42/expected.json b/packages/babylon/test/fixtures/core/uncategorised/42/expected.json index 3156d2e2ff09..9b4f087f6d94 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/42/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/42/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 10, @@ -125,10 +124,10 @@ }, "value": "null" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/43/expected.json b/packages/babylon/test/fixtures/core/uncategorised/43/expected.json index 5dcdec165e95..81cd87738684 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/43/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/43/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "NumericLiteral", "start": 10, @@ -125,10 +124,10 @@ }, "value": 10 }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/44/expected.json b/packages/babylon/test/fixtures/core/uncategorised/44/expected.json index b77f8b4535e4..ed95d5710091 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/44/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/44/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "get" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/45/expected.json b/packages/babylon/test/fixtures/core/uncategorised/45/expected.json index 904dcf51125f..38879155e671 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/45/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/45/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "set" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/core/uncategorised/539/expected.json b/packages/babylon/test/fixtures/core/uncategorised/539/expected.json index 2bd4333d3153..e19849d8446e 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/539/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/539/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/core/uncategorised/540/expected.json b/packages/babylon/test/fixtures/core/uncategorised/540/expected.json index 0decbaaefa3c..ef6f6a59c901 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/540/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/540/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/541/expected.json b/packages/babylon/test/fixtures/core/uncategorised/541/expected.json index db7df06cb399..550111396b65 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/541/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/541/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/543/expected.json b/packages/babylon/test/fixtures/core/uncategorised/543/expected.json index 174e12e8d228..da3099d06d5a 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/543/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/543/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/core/uncategorised/546/expected.json b/packages/babylon/test/fixtures/core/uncategorised/546/expected.json index de77ab2b9567..4ec2907adc30 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/546/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/546/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -105,6 +104,7 @@ }, "name": "public" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/core/uncategorised/549/expected.json b/packages/babylon/test/fixtures/core/uncategorised/549/expected.json index 088ba6a7ad4e..b4b8dad7e7ae 100644 --- a/packages/babylon/test/fixtures/core/uncategorised/549/expected.json +++ b/packages/babylon/test/fixtures/core/uncategorised/549/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -105,6 +104,7 @@ }, "name": "arguments" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/array-rest-spread/with-object/expected.json b/packages/babylon/test/fixtures/es2015/array-rest-spread/with-object/expected.json index b278aa92ef6b..f521f1187170 100644 --- a/packages/babylon/test/fixtures/es2015/array-rest-spread/with-object/expected.json +++ b/packages/babylon/test/fixtures/es2015/array-rest-spread/with-object/expected.json @@ -116,7 +116,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -134,6 +133,7 @@ }, "name": "length" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/arrow-functions/in-logic-expression/expected.json b/packages/babylon/test/fixtures/es2015/arrow-functions/in-logic-expression/expected.json index abc58a8846a1..8183fac4db63 100644 --- a/packages/babylon/test/fixtures/es2015/arrow-functions/in-logic-expression/expected.json +++ b/packages/babylon/test/fixtures/es2015/arrow-functions/in-logic-expression/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -160,7 +159,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/arrow-functions/object-rest-spread/expected.json b/packages/babylon/test/fixtures/es2015/arrow-functions/object-rest-spread/expected.json index 0357f6b22e8a..ddb025a4476c 100644 --- a/packages/babylon/test/fixtures/es2015/arrow-functions/object-rest-spread/expected.json +++ b/packages/babylon/test/fixtures/es2015/arrow-functions/object-rest-spread/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -141,6 +139,7 @@ }, "name": "title" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/class-methods/linebreaks/expected.json b/packages/babylon/test/fixtures/es2015/class-methods/linebreaks/expected.json index 7094788e97eb..dbe6606ec7a4 100644 --- a/packages/babylon/test/fixtures/es2015/class-methods/linebreaks/expected.json +++ b/packages/babylon/test/fixtures/es2015/class-methods/linebreaks/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -165,10 +163,10 @@ }, "name": "a" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -222,7 +220,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 51, @@ -240,10 +237,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -279,7 +276,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 74, @@ -297,10 +293,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -337,7 +333,6 @@ }, "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 91, @@ -355,9 +350,9 @@ }, "name": "a" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -393,7 +388,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 119, @@ -411,10 +405,10 @@ }, "name": "a" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -450,7 +444,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 147, @@ -468,10 +461,10 @@ }, "name": "a" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -525,7 +518,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 170, @@ -543,10 +535,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -582,7 +574,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 202, @@ -600,10 +591,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -640,7 +631,6 @@ }, "static": true, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 228, @@ -658,9 +648,9 @@ }, "name": "a" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/class-methods/tricky-names/expected.json b/packages/babylon/test/fixtures/es2015/class-methods/tricky-names/expected.json index 1e9e3bb027d8..2a8c103e5ed8 100644 --- a/packages/babylon/test/fixtures/es2015/class-methods/tricky-names/expected.json +++ b/packages/babylon/test/fixtures/es2015/class-methods/tricky-names/expected.json @@ -111,7 +111,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -168,7 +167,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -225,7 +223,6 @@ "static": false, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -282,7 +279,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -342,7 +338,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -402,7 +397,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -462,7 +456,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -519,7 +512,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -576,7 +568,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -633,7 +624,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -690,7 +680,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -747,7 +736,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -804,7 +792,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -861,7 +848,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/meta-properties/new-target-inside-params/expected.json b/packages/babylon/test/fixtures/es2015/meta-properties/new-target-inside-params/expected.json index 7567bbc47246..3ef7aad8ebde 100644 --- a/packages/babylon/test/fixtures/es2015/meta-properties/new-target-inside-params/expected.json +++ b/packages/babylon/test/fixtures/es2015/meta-properties/new-target-inside-params/expected.json @@ -60,7 +60,6 @@ "name": "Foo" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -195,7 +194,6 @@ "name": "Bar" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -243,7 +241,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/meta-properties/new-target/expected.json b/packages/babylon/test/fixtures/es2015/meta-properties/new-target/expected.json index 30b0e8ac731f..ae31cf50dd0a 100644 --- a/packages/babylon/test/fixtures/es2015/meta-properties/new-target/expected.json +++ b/packages/babylon/test/fixtures/es2015/meta-properties/new-target/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/modules/duplicate-named-export-destructuring/expected.json b/packages/babylon/test/fixtures/es2015/modules/duplicate-named-export-destructuring/expected.json index e8a01c593cff..328d5a933667 100644 --- a/packages/babylon/test/fixtures/es2015/modules/duplicate-named-export-destructuring/expected.json +++ b/packages/babylon/test/fixtures/es2015/modules/duplicate-named-export-destructuring/expected.json @@ -103,7 +103,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -121,6 +120,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -242,7 +242,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -260,6 +259,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -378,7 +378,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 77, @@ -396,6 +395,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -427,7 +427,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 84, @@ -445,6 +444,7 @@ }, "name": "baz" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -569,7 +569,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 114, @@ -587,6 +586,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -618,7 +618,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 121, @@ -636,6 +635,7 @@ }, "name": "baz" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -667,7 +667,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 129, @@ -685,6 +684,7 @@ }, "name": "qux" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -812,7 +812,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 161, @@ -830,6 +829,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -861,7 +861,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 168, @@ -879,6 +878,7 @@ }, "name": "baz" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -910,7 +910,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 176, @@ -928,6 +927,7 @@ }, "name": "qux2" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -971,7 +971,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 186, @@ -989,6 +988,7 @@ }, "name": "foo3" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -1344,7 +1344,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 272, @@ -1362,6 +1361,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", @@ -1430,7 +1430,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 289, @@ -1448,6 +1447,7 @@ }, "name": "foo2" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", @@ -1585,7 +1585,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 327, @@ -1603,6 +1602,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -1634,7 +1634,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 334, @@ -1652,6 +1651,7 @@ }, "name": "baz" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -1683,7 +1683,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 341, @@ -1701,6 +1700,7 @@ }, "name": "qux3" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -1744,7 +1744,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 351, @@ -1762,6 +1761,7 @@ }, "name": "foo2" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -1793,7 +1793,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 359, @@ -1811,6 +1810,7 @@ }, "name": "baz2" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", @@ -1949,7 +1949,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 397, @@ -1967,6 +1966,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -1998,7 +1998,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 404, @@ -2016,6 +2015,7 @@ }, "name": "baz" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -2047,7 +2047,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 411, @@ -2065,6 +2064,7 @@ }, "name": "qux5" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -2108,7 +2108,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 421, @@ -2126,6 +2125,7 @@ }, "name": "foo2" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -2157,7 +2157,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 429, @@ -2175,6 +2174,7 @@ }, "name": "baz2" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", @@ -2221,7 +2221,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 437, @@ -2239,6 +2238,7 @@ }, "name": "qux6" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -2368,7 +2368,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 469, @@ -2386,6 +2385,7 @@ }, "name": "Foo" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -2507,7 +2507,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 497, @@ -2525,6 +2524,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration-expression-disambiguation/expected.json b/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration-expression-disambiguation/expected.json index 8106cf01a026..824b8b9d4665 100644 --- a/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration-expression-disambiguation/expected.json +++ b/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration-expression-disambiguation/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration/expected.json b/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration/expected.json index ffc9c92fd4c9..b92310aa5f74 100644 --- a/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration/expected.json +++ b/packages/babylon/test/fixtures/es2015/modules/export-default-function-declaration/expected.json @@ -74,7 +74,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/modules/export-default-function-expression/expected.json b/packages/babylon/test/fixtures/es2015/modules/export-default-function-expression/expected.json index 845de0632b89..2ea0e34a9137 100644 --- a/packages/babylon/test/fixtures/es2015/modules/export-default-function-expression/expected.json +++ b/packages/babylon/test/fixtures/es2015/modules/export-default-function-expression/expected.json @@ -74,7 +74,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/regression/186/expected.json b/packages/babylon/test/fixtures/es2015/regression/186/expected.json index 49b6d1aab07e..e490032e1769 100644 --- a/packages/babylon/test/fixtures/es2015/regression/186/expected.json +++ b/packages/babylon/test/fixtures/es2015/regression/186/expected.json @@ -159,7 +159,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -177,6 +176,7 @@ }, "name": "bar" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/statements/label-valid-func-non-strict/expected.json b/packages/babylon/test/fixtures/es2015/statements/label-valid-func-non-strict/expected.json index 127eac7560f0..3e9d1e5692e4 100644 --- a/packages/babylon/test/fixtures/es2015/statements/label-valid-func-non-strict/expected.json +++ b/packages/babylon/test/fixtures/es2015/statements/label-valid-func-non-strict/expected.json @@ -74,7 +74,6 @@ "name": "bar" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/105/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/105/expected.json index a9aed1c3aa6f..9bbcccaf8632 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/105/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/105/expected.json @@ -60,7 +60,6 @@ "name": "t" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/113/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/113/expected.json index cad16d40f7dd..4ddc0845d83f 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/113/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/113/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "get" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/114/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/114/expected.json index 8af6dc0f9211..56144a2a74ac 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/114/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/114/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -108,10 +107,10 @@ }, "name": "get" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/115/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/115/expected.json index 17580d67f86b..8820ccdeacfd 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/115/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/115/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -124,10 +123,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/116/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/116/expected.json index 129699041411..6c5807f7c03b 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/116/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/116/expected.json @@ -106,7 +106,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 31, @@ -124,10 +123,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/117/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/117/expected.json index f00e0c107d3f..c9cffd1afc7b 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/117/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/117/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/118/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/118/expected.json index 312d1c4e7761..a70322f1fda3 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/118/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/118/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/119/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/119/expected.json index 622579925b43..de37d718a376 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/119/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/119/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "set" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/120/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/120/expected.json index 6159a166d371..45b59f48d887 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/120/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/120/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -108,10 +107,10 @@ }, "name": "set" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/121/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/121/expected.json index 9dbb7f02444e..2e1dd78f48b3 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/121/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/121/expected.json @@ -91,7 +91,6 @@ }, "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -109,9 +108,9 @@ }, "name": "gen" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/122/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/122/expected.json index df6337f1f345..69e3614627f8 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/122/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/122/expected.json @@ -91,7 +91,6 @@ }, "static": true, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -109,9 +108,9 @@ }, "name": "gen" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/123/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/123/expected.json index 1685cc9b6e79..f57f2aea8ec5 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/123/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/123/expected.json @@ -104,7 +104,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -122,10 +121,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/124/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/124/expected.json index 264271977ffa..359ffc263c42 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/124/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/124/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "StringLiteral", "start": 9, @@ -111,10 +110,10 @@ }, "value": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/128/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/128/expected.json index fc2058a4200b..d3b9813822cc 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/128/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/128/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/129/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/129/expected.json index 5454ccebf17e..666da83fcd65 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/129/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/129/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 25, @@ -165,10 +163,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/131/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/131/expected.json index ec906dfe00fb..4c677f80f592 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/131/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/131/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -165,10 +163,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/132/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/132/expected.json index 2dd984cc0f7f..3697acc02181 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/132/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/132/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -165,10 +163,10 @@ }, "name": "foo" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/133/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/133/expected.json index 199a299f92e8..35a7f817a5b0 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/133/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/133/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 34, @@ -165,10 +163,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/134/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/134/expected.json index b9dd2520bd0d..8ea47ece80dd 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/134/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/134/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -165,10 +163,10 @@ }, "name": "bar" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/135/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/135/expected.json index 903738ff2cfa..02ea59050f48 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/135/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/135/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -165,10 +163,10 @@ }, "name": "foo" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -222,7 +220,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 55, @@ -240,10 +237,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -279,7 +276,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 68, @@ -297,10 +293,10 @@ }, "name": "foo" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/136/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/136/expected.json index c01494b7de27..750cacb621a7 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/136/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/136/expected.json @@ -111,7 +111,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/137/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/137/expected.json index 0864f451f74a..899700953291 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/137/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/137/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": true, "key": { "type": "Identifier", "start": 22, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": true, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/138/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/138/expected.json index e8baafdc7489..957478e7aac5 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/138/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/138/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -165,7 +164,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 28, @@ -183,10 +181,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/139/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/139/expected.json index b61e6d560f4c..630f0922d1ec 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/139/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/139/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -165,10 +163,10 @@ }, "name": "foo" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/143/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/143/expected.json index 6852b7e74c62..81682a426db1 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/143/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/143/expected.json @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/144/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/144/expected.json index c484ee36224d..39a49e838bb9 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/144/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/144/expected.json @@ -127,7 +127,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -145,6 +144,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/145/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/145/expected.json index b57ffb279711..f18b6c9233b8 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/145/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/145/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": true, "key": { "type": "Identifier", "start": 7, @@ -90,10 +89,10 @@ }, "name": "x" }, + "computed": true, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -129,7 +128,6 @@ } }, "method": false, - "computed": true, "key": { "type": "Identifier", "start": 21, @@ -147,10 +145,10 @@ }, "name": "x" }, + "computed": true, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/146/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/146/expected.json index 5aab5e962281..cbe2c1669bcd 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/146/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/146/expected.json @@ -93,7 +93,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/147/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/147/expected.json index 9b0cfcecacb2..7d30ae5aec94 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/147/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/147/expected.json @@ -156,7 +156,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -174,6 +173,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/148/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/148/expected.json index 35aa9b82e969..c4f8097ddaf9 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/148/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/148/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/149/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/149/expected.json index 1bb1bd74da5a..dd4deea1fc9e 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/149/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/149/expected.json @@ -125,7 +125,6 @@ "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/150/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/150/expected.json index 2e9d46b456af..25524ab3ad20 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/150/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/150/expected.json @@ -111,7 +111,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/152/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/152/expected.json index 4577cf0204f0..03e81654d226 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/152/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/152/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/153/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/153/expected.json index a371840ab685..8f15ae2b2f8f 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/153/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/153/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -125,6 +123,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -179,7 +178,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -197,6 +195,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/154/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/154/expected.json index 5138fc882b26..c3283eacde35 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/154/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/154/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -137,7 +136,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -155,6 +153,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -209,7 +208,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -227,6 +225,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/155/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/155/expected.json index a35b2d27f275..cd2b61093a1e 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/155/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/155/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -90,6 +89,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -154,7 +153,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -172,6 +170,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -226,7 +225,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -244,6 +242,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/156/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/156/expected.json index f023b81a282f..a45ec992c91a 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/156/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/156/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -90,10 +89,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -140,7 +139,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -158,6 +156,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -212,7 +211,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -230,6 +228,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/157/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/157/expected.json index 2964c5978349..c035135f590a 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/157/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/157/expected.json @@ -88,7 +88,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -106,10 +105,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -156,7 +155,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -174,6 +172,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -228,7 +227,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -246,6 +244,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/158/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/158/expected.json index a94e42c1d72f..abab4d3407a1 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/158/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/158/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -105,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -123,6 +121,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -177,7 +176,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -195,6 +193,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/159/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/159/expected.json index e1465d0c7d91..994c1ca32cf7 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/159/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/159/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/160/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/160/expected.json index a0c1096c6f41..cbee94cb9567 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/160/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/160/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/161/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/161/expected.json index ef6bf5694157..f370fc56ed23 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/161/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/161/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/162/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/162/expected.json index 11d3f9a875c3..03e03a58ba42 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/162/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/162/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/163/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/163/expected.json index 07716be5ae62..81c2986660d2 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/163/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/163/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/164/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/164/expected.json index a42e8c8b1d4e..88ec97dda2dc 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/164/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/164/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/165/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/165/expected.json index c48f8c98ce32..3b3abf58dc20 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/165/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/165/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -111,6 +109,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -148,7 +147,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -166,6 +164,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/166/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/166/expected.json index 5327aa282f8a..ed1323e105ac 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/166/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/166/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -110,7 +109,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -128,6 +126,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/167/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/167/expected.json index 83e3c57d2c73..ccd5690b8dc2 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/167/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/167/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/168/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/168/expected.json index 3fb28437fbc9..0e7b34d2310e 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/168/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/168/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -111,6 +109,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -142,7 +141,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -160,6 +158,7 @@ }, "name": "w" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -197,7 +196,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -215,6 +213,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -255,7 +254,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -273,6 +271,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/169/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/169/expected.json index 349715bcfac5..719937cc5334 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/169/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/169/expected.json @@ -74,7 +74,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/170/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/170/expected.json index 6449d5ba66b8..16140c6a7621 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/170/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/170/expected.json @@ -74,7 +74,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -162,7 +161,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -180,6 +178,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/171/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/171/expected.json index ec25a3ef37d0..df43443aa700 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/171/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/171/expected.json @@ -74,7 +74,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/172/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/172/expected.json index 8e42ea2ca281..9047896c500d 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/172/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/172/expected.json @@ -74,7 +74,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -156,7 +155,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -174,6 +172,7 @@ }, "name": "w" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -211,7 +210,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -229,6 +227,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -269,7 +268,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -287,6 +285,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/173/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/173/expected.json index f7c8cd58cb0c..939136ff1369 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/173/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/173/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,10 +89,10 @@ }, "name": "x" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/174/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/174/expected.json index 17308d92ca74..9eeb455f3393 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/174/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/174/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,10 +89,10 @@ }, "name": "x" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/175/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/175/expected.json index 45eb4b22ffcb..09c74ff1bf0e 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/175/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/175/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,10 +89,10 @@ }, "name": "x" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -126,7 +125,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -144,6 +142,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -175,7 +174,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -193,6 +191,7 @@ }, "name": "w" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -230,7 +229,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -248,6 +246,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -288,7 +287,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -306,6 +304,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/176/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/176/expected.json index a8af6c1f546d..3fe343e78ebc 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/176/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/176/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/177/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/177/expected.json index b6621bcdefff..ee10a01314db 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/177/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/177/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/178/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/178/expected.json index ab295e9001bc..4905d3b21fb9 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/178/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/178/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -109,6 +107,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/179/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/179/expected.json index db8d1a1658a5..75221d008378 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/179/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/179/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -109,6 +107,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/180/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/180/expected.json index 60ac7f04f666..f5a9953b3343 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/180/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/180/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/181/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/181/expected.json index abd0b99c5659..3d8d9715bd89 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/181/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/181/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/182/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/182/expected.json index 6d952744d27f..e241e3dc0746 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/182/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/182/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -109,6 +107,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/183/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/183/expected.json index 3acabbe14d66..f770afe627c0 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/183/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/183/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -109,6 +107,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -143,7 +142,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -161,6 +159,7 @@ }, "name": "c" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/186/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/186/expected.json index b8a5b0f64f39..8bce2d47132c 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/186/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/186/expected.json @@ -102,7 +102,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -120,6 +119,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -157,7 +157,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -175,6 +174,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/190/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/190/expected.json index ac1a13b3c214..05d7c90ed409 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/190/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/190/expected.json @@ -102,7 +102,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -120,6 +119,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -157,7 +157,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -175,6 +174,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/26/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/26/expected.json index f5757a32bf87..dbc2cc6f1df1 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/26/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/26/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectExpression", @@ -136,7 +136,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -154,6 +153,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -212,7 +212,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/279/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/279/expected.json index 5703482a9aaa..cf0523a27355 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/279/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/279/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/28/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/28/expected.json index 9910aa18c476..b207aacaaea6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/28/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/28/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/29/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/29/expected.json index b6a6ef550a12..22b0d5dc8f60 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/29/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/29/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/30/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/30/expected.json index 0d6682111590..0c593af97547 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/30/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/30/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/300/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/300/expected.json index ac195d747060..8914b2e1e1e7 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/300/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/300/expected.json @@ -60,7 +60,6 @@ "name": "normal" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/303/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/303/expected.json index 668070027b2d..2c80d9e45424 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/303/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/303/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "get" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/304/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/304/expected.json index 1f0a81aa3a53..1adbe93a4467 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/304/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/304/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "propName" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/305/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/305/expected.json index 65a3330a860d..b0ea92c5b344 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/305/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/305/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "propName" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/307/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/307/expected.json index 26e8370e1ba3..d4f785258b4b 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/307/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/307/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/308/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/308/expected.json index b7295cf418c0..5e31273530c6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/308/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/308/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -109,6 +107,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/309/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/309/expected.json index 195565514b3b..31465756a4e6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/309/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/309/expected.json @@ -119,7 +119,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -137,6 +136,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -168,7 +168,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -186,6 +185,7 @@ }, "name": "c" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/31/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/31/expected.json index 36e04398ee6d..87e6e46b23e3 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/31/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/31/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/310/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/310/expected.json index 59105c1b3f62..009ef9172c24 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/310/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/310/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -90,6 +89,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/313/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/313/expected.json index 6c8963e87e4a..984ef148e061 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/313/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/313/expected.json @@ -103,7 +103,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -121,6 +120,7 @@ }, "name": "message" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/314/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/314/expected.json index fbe0b1f788db..afd0831c3664 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/314/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/314/expected.json @@ -89,7 +89,6 @@ "column": 21 } }, - "static": false, "kind": "method", "computed": false, "key": { @@ -109,9 +108,9 @@ }, "name": "static" }, + "static": false, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/316/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/316/expected.json index a80e13719db3..adcf59bfac01 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/316/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/316/expected.json @@ -91,7 +91,6 @@ }, "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -109,9 +108,9 @@ }, "name": "static" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/32/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/32/expected.json index 54989111af14..3658a6b51ac0 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/32/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/32/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/321/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/321/expected.json index 2a3b5211e8f4..e550cb99b791 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/321/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/321/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/33/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/33/expected.json index e493220b5c94..2d11218d2ee9 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/33/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/33/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -109,7 +108,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -127,6 +125,7 @@ }, "name": "property" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/338/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/338/expected.json index ff0188633aa6..cbf90c40f0ca 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/338/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/338/expected.json @@ -74,7 +74,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/34/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/34/expected.json index 93d45404a417..5ae406f90c36 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/34/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/34/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/35/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/35/expected.json index 78728a0062c3..dbb53e95e2bd 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/35/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/35/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/350/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/350/expected.json index 6c8ba6c0c7a3..dcec00d3bd63 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/350/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/350/expected.json @@ -130,7 +130,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -148,6 +147,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/351/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/351/expected.json index 40fd874fe38a..518df06259e6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/351/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/351/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,10 +89,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -165,7 +164,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -183,6 +181,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/352/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/352/expected.json index 9430a3ea5b23..f4fa87a34a2d 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/352/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/352/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -90,10 +89,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -165,7 +164,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 33, @@ -183,6 +181,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/355/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/355/expected.json index 0081764853a7..4b50507632b8 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/355/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/355/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -111,6 +109,7 @@ }, "name": "set" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/36/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/36/expected.json index cdb2f5c52e28..12b4ea09d91c 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/36/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/36/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/360/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/360/expected.json index cfee130b5b8d..476c53c8dac5 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/360/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/360/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -105,6 +104,7 @@ }, "name": "await" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/362/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/362/expected.json index 2f746e5bd452..e6d82ad739e3 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/362/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/362/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -111,6 +109,7 @@ }, "name": "await" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/364/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/364/expected.json index 51f1dbd5b46d..38250dd49da0 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/364/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/364/expected.json @@ -60,7 +60,6 @@ "name": "await" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/384/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/384/expected.json index 5113890dce23..214000f901d6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/384/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/384/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/385/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/385/expected.json index a3bcbae858f5..c99dcb102036 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/385/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/385/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/39/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/39/expected.json index e47019cdb6c0..6890a7d437f0 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/39/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/39/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/391/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/391/expected.json index b426a8f949f5..a3bf05cf5d55 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/391/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/391/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/393/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/393/expected.json index 519d3d0d90f1..dd2bcfe76474 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/393/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/393/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -109,6 +107,7 @@ }, "name": "set" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/40/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/40/expected.json index b7e7b6100178..cf27183ec2a3 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/40/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/40/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/41/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/41/expected.json index 1f49c57e2d93..29078923b51a 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/41/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/41/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/42/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/42/expected.json index a2bf196ca0f9..ba75a08eb777 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/42/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/42/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/43/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/43/expected.json index d912fa2794a9..5d58016491d5 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/43/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/43/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/44/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/44/expected.json index 84f8889f2fb6..a8fee8ae6725 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/44/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/44/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/45/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/45/expected.json index 31928b185102..a8155f5a0149 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/45/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/45/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/46/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/46/expected.json index cab6510eaff1..b7657b46b58a 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/46/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/46/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/47/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/47/expected.json index 5b9f51fa627e..be94c3c8d002 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/47/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/47/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -95,7 +94,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/48/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/48/expected.json index 864245ed88f7..6145b03905ca 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/48/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/48/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -95,7 +94,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/49/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/49/expected.json index d6a7efe40fa1..c483c721e170 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/49/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/49/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/5/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/5/expected.json index 8a3dd5608b8c..8ba09d6077f6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/5/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/5/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/50/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/50/expected.json index e5022056df15..cfdd7259cc65 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/50/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/50/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/52/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/52/expected.json index 9415c4be2b72..05d60f30b1bf 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/52/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/52/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/53/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/53/expected.json index d5e9eb555e4b..5018252dae2e 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/53/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/53/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/54/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/54/expected.json index 879d54f7eeaa..6e2e4d98d3de 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/54/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/54/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "StringLiteral", "start": 6, @@ -125,10 +124,10 @@ }, "value": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/55/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/55/expected.json index a1a2904802db..9689a45ac891 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/55/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/55/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "get" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/56/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/56/expected.json index 947e572d5e67..d8d8cfee12d2 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/56/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/56/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "set" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/61/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/61/expected.json index 620e423e0ab6..abd80881c660 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/61/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/61/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -159,7 +159,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -177,6 +176,7 @@ }, "name": "z" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/63/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/63/expected.json index 32c1f441a141..d6a7a13e09ba 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/63/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/63/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/65/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/65/expected.json index 1903ed877386..c30eb05cd5d8 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/65/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/65/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/67/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/67/expected.json index 553cd0a7b1a4..cf2e7c370b42 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/67/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/67/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/69/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/69/expected.json index 87c594fbad32..a3a3bf16b006 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/69/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/69/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/70/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/70/expected.json index f19653b31b73..19dcbbb5b07f 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/70/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/70/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/71/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/71/expected.json index 62072bc52eba..9b861018fd89 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/71/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/71/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/77/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/77/expected.json index 43573a571130..31bb9f1617e6 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/77/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/77/expected.json @@ -76,7 +76,6 @@ "name": "parse" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/80/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/80/expected.json index 3c9a9fc01d5e..055c8513c23c 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/80/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/80/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/81/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/81/expected.json index 2296dba4c119..a0a439c51244 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/81/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/81/expected.json @@ -74,7 +74,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/uncategorised/9/expected.json b/packages/babylon/test/fixtures/es2015/uncategorised/9/expected.json index 95b01a403fc9..90750e471c32 100644 --- a/packages/babylon/test/fixtures/es2015/uncategorised/9/expected.json +++ b/packages/babylon/test/fixtures/es2015/uncategorised/9/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/asi/expected.json b/packages/babylon/test/fixtures/es2015/yield/asi/expected.json index dca7e84e4b2c..eb48399f8b5a 100644 --- a/packages/babylon/test/fixtures/es2015/yield/asi/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/asi/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/basic-with-argument/expected.json b/packages/babylon/test/fixtures/es2015/yield/basic-with-argument/expected.json index 637000834785..498f09145590 100644 --- a/packages/babylon/test/fixtures/es2015/yield/basic-with-argument/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/basic-with-argument/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/basic-without-argument/expected.json b/packages/babylon/test/fixtures/es2015/yield/basic-without-argument/expected.json index c06f76fd9b97..8f43ffec5608 100644 --- a/packages/babylon/test/fixtures/es2015/yield/basic-without-argument/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/basic-without-argument/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-function-declaration/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-function-declaration/expected.json index 48c7abd93429..d2579ee54d39 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-function-declaration/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-function-declaration/expected.json @@ -60,7 +60,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression-inside-generator/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression-inside-generator/expected.json index adb52158c743..8d7c612194b6 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -124,7 +123,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression/expected.json index f9d6ec61df1d..8bc27e3e8b29 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-function-expression/expected.json @@ -90,7 +90,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-function-method/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-function-method/expected.json index e6f2fa5700c1..522747fd539a 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-function-method/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-function-method/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,10 +107,10 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-generator-declaration/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-generator-declaration/expected.json index fa5c0963715f..120cd02cd3a6 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-generator-declaration/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-generator-declaration/expected.json @@ -60,7 +60,6 @@ "name": "yield" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-generator-method/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-generator-method/expected.json index 6cc8417dd65e..39ed075d24d4 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-generator-method/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-generator-method/expected.json @@ -91,7 +91,6 @@ }, "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -109,9 +108,9 @@ }, "name": "yield" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/function-name-inside-function/expected.json b/packages/babylon/test/fixtures/es2015/yield/function-name-inside-function/expected.json index cb8604acf349..d194f09b4279 100644 --- a/packages/babylon/test/fixtures/es2015/yield/function-name-inside-function/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/function-name-inside-function/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -110,7 +109,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/inside-arrow-inside-generator/expected.json b/packages/babylon/test/fixtures/es2015/yield/inside-arrow-inside-generator/expected.json index 274481edfd0c..877b76020a00 100644 --- a/packages/babylon/test/fixtures/es2015/yield/inside-arrow-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/inside-arrow-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -108,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -160,7 +158,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-arrow-inside-generator/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-arrow-inside-generator/expected.json index fb243454e08d..4471abb19896 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-arrow-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-arrow-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -108,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -127,7 +125,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow/expected.json index 4e9be7eb6c55..078bdf09bd42 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-arrow/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function-inside-generator/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function-inside-generator/expected.json index a0e97b21b09b..866cdc131138 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -110,7 +109,6 @@ "name": "fn2" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function/expected.json index cc2cd474676a..c8bee4e85c28 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-default-inside-function/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-inside-arrow-inside-generator/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-inside-arrow-inside-generator/expected.json index 196e931a5ae8..2561dac703f3 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-inside-arrow-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-inside-arrow-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -108,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -127,7 +125,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-no-parens/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-no-parens/expected.json index e9f9206b366f..5d1679862c21 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-no-parens/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow-no-parens/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow/expected.json index 6dfa746d3a3e..bb53d708dcf4 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-name-arrow/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/parameter-name-function/expected.json b/packages/babylon/test/fixtures/es2015/yield/parameter-name-function/expected.json index 9ac15233bb47..f622a3453b5a 100644 --- a/packages/babylon/test/fixtures/es2015/yield/parameter-name-function/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/parameter-name-function/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-in-arrow-scope-is-multiplication/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-in-arrow-scope-is-multiplication/expected.json index 177e044e8d26..b8501a57bf87 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-in-arrow-scope-is-multiplication/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-in-arrow-scope-is-multiplication/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-declaration/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-declaration/expected.json index 44a42a67a36e..a8ba560b287f 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-declaration/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-declaration/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-expression/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-expression/expected.json index 19da0b61bbbb..1d05b84fb076 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-expression/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-function-expression/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-method/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-method/expected.json index 23040e20d414..3d0e47f352e7 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-method/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-generator-method/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -122,10 +121,10 @@ }, "name": "test" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-plain-function/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-plain-function/expected.json index 98b14d48e2aa..9a3288570323 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-plain-function/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-inside-plain-function/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-star-parameter-default-inside-function/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-star-parameter-default-inside-function/expected.json index 3a1b23b0fb36..7b7b46c6aa3e 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-star-parameter-default-inside-function/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-star-parameter-default-inside-function/expected.json @@ -60,7 +60,6 @@ "name": "fn" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2015/yield/yield-yield/expected.json b/packages/babylon/test/fixtures/es2015/yield/yield-yield/expected.json index d31bc5cfdbf9..7077117a6261 100644 --- a/packages/babylon/test/fixtures/es2015/yield/yield-yield/expected.json +++ b/packages/babylon/test/fixtures/es2015/yield/yield-yield/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2016/simple-parameter-list/arrow-function-concise-body/expected.json b/packages/babylon/test/fixtures/es2016/simple-parameter-list/arrow-function-concise-body/expected.json index 647180b64a97..06b1680cce2c 100644 --- a/packages/babylon/test/fixtures/es2016/simple-parameter-list/arrow-function-concise-body/expected.json +++ b/packages/babylon/test/fixtures/es2016/simple-parameter-list/arrow-function-concise-body/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2016/simple-parameter-list/async-arrow-function-concise-body/expected.json b/packages/babylon/test/fixtures/es2016/simple-parameter-list/async-arrow-function-concise-body/expected.json index 419b4797ef05..6fa67c4b5713 100644 --- a/packages/babylon/test/fixtures/es2016/simple-parameter-list/async-arrow-function-concise-body/expected.json +++ b/packages/babylon/test/fixtures/es2016/simple-parameter-list/async-arrow-function-concise-body/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/1/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/1/expected.json index b2dfa5cf58fa..29c0ee4b3781 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/1/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/1/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/11/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/11/expected.json index 3d14dde860fa..5d0744fda3be 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/11/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/11/expected.json @@ -92,7 +92,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/12/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/12/expected.json index 8398464169f7..60e0f51f828a 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/12/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/12/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/13/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/13/expected.json index 02dbad929bb2..c07c03c7228a 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/13/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/13/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -126,7 +125,6 @@ "name": "inner" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/14/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/14/expected.json index f02a870e41ce..59208fb2a34d 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/14/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/14/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/15/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/15/expected.json index 6e44684aa0cf..17ec04f48801 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/15/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/15/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,6 +121,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -159,7 +159,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -177,10 +176,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/16/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/16/expected.json index 186ab6f31f55..803a31c95b50 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/16/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/16/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -108,10 +107,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/17/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/17/expected.json index a5afb022706e..a85f67bc3bc6 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/17/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/17/expected.json @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/18/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/18/expected.json index 2b5f4bdab041..50c1d58cda2c 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/18/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/18/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/21/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/21/expected.json index e881d2604b08..7b7cf6918506 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/21/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/21/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/22/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/22/expected.json index 6975fdfe3b5f..e6f223e3e75b 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/22/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/22/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -108,10 +107,10 @@ }, "name": "async" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/24/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/24/expected.json index 9f0d18451f3f..09728b92451d 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/24/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/24/expected.json @@ -125,7 +125,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/25/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/25/expected.json index a3bcbae858f5..c99dcb102036 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/25/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/25/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/26/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/26/expected.json index 8039ab6b864a..6e1690722760 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/26/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/26/expected.json @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/27/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/27/expected.json index c22d0e642a25..eb5ac8510ef9 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/27/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/27/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/28/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/28/expected.json index 5542a1f7d0ad..3dc06069e440 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/28/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/28/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/29/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/29/expected.json index 993df81280ea..91610202b37f 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/29/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/29/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -141,6 +139,7 @@ }, "name": "async" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/30/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/30/expected.json index 0bb8a173879a..3fe8245c09fc 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/30/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/30/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -141,6 +139,7 @@ }, "name": "async" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/31/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/31/expected.json index 128405386443..8bc4a63cfae1 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/31/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/31/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/32/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/32/expected.json index 7bdc1b1cbcc0..db96100e2d66 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/32/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/32/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/33/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/33/expected.json index 26698d24e63f..fac94f55133f 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/33/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/33/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -141,6 +139,7 @@ }, "name": "async" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/34/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/34/expected.json index fe65e72356a1..c5fe2d9cb38f 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/34/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/34/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -141,6 +139,7 @@ }, "name": "async" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/37/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/37/expected.json index 9904051f7a5a..484373d0e11e 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/37/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/37/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -105,6 +104,7 @@ }, "name": "async" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/38/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/38/expected.json index ac62e0ad3534..ae804966614e 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/38/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/38/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -105,6 +104,7 @@ }, "name": "async" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/8/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/8/expected.json index 7f51e9a3ebe4..d1fbeefaa8be 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/8/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/8/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -105,6 +104,7 @@ }, "name": "async" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/es2017/async-functions/export-arrow/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/export-arrow/expected.json index dd7fe7275a4c..ffc3c8de4695 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/export-arrow/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/export-arrow/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/export/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/export/expected.json index 68a60db703ff..4a5c2e36a010 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/export/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/export/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -144,7 +143,6 @@ "name": "bar" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/es2017/async-functions/object-default-params/expected.json b/packages/babylon/test/fixtures/es2017/async-functions/object-default-params/expected.json index 300d135dc28d..f0b1ac0d4a6d 100644 --- a/packages/babylon/test/fixtures/es2017/async-functions/object-default-params/expected.json +++ b/packages/babylon/test/fixtures/es2017/async-functions/object-default-params/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -141,6 +139,7 @@ }, "name": "bar" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/es2017/trailing-function-commas/2/expected.json b/packages/babylon/test/fixtures/es2017/trailing-function-commas/2/expected.json index 99e64d2352e9..bc6cd543f1a5 100644 --- a/packages/babylon/test/fixtures/es2017/trailing-function-commas/2/expected.json +++ b/packages/babylon/test/fixtures/es2017/trailing-function-commas/2/expected.json @@ -60,7 +60,6 @@ "name": "log" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/trailing-function-commas/3/expected.json b/packages/babylon/test/fixtures/es2017/trailing-function-commas/3/expected.json index 333b27327218..dbc2b26938f4 100644 --- a/packages/babylon/test/fixtures/es2017/trailing-function-commas/3/expected.json +++ b/packages/babylon/test/fixtures/es2017/trailing-function-commas/3/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,10 +107,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/es2017/trailing-function-commas/4/expected.json b/packages/babylon/test/fixtures/es2017/trailing-function-commas/4/expected.json index 53f94b690ddb..0544404b2dae 100644 --- a/packages/babylon/test/fixtures/es2017/trailing-function-commas/4/expected.json +++ b/packages/babylon/test/fixtures/es2017/trailing-function-commas/4/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0010/expected.json b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0010/expected.json index e5fa9ec2602b..5d53da8da0d5 100644 --- a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0010/expected.json +++ b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0010/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0011/expected.json b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0011/expected.json index 3b50dd8b73cf..596e242872ed 100644 --- a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0011/expected.json +++ b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0011/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0012/expected.json b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0012/expected.json index 6ae21e8aa6c2..8cc2cff071d7 100644 --- a/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0012/expected.json +++ b/packages/babylon/test/fixtures/esprima/automatic-semicolon-insertion/migrated_0012/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0000/expected.json index 89d89116525c..23c82e441495 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0000/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0001/expected.json index 01acb188eddd..4373bde0ec98 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0001/expected.json @@ -60,7 +60,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0002/expected.json index 93d4d923bf8b..bfb149242022 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0002/expected.json @@ -60,7 +60,6 @@ "name": "arguments" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0003/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0003/expected.json index 05cce3b8f3d2..98648b2ea6a4 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0003/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0003/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0004/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0004/expected.json index 4b791206943f..1cdd5e11dc77 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0004/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0004/expected.json @@ -74,7 +74,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0005/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0005/expected.json index 1b08145eb97b..e9cfba6c404b 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0005/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0005/expected.json @@ -60,7 +60,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -110,7 +109,6 @@ "name": "inner" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0006/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0006/expected.json index a5373f5a7939..4b567d37932b 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0006/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0006/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0007/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0007/expected.json index cdfeb7b01952..d40cf30ddd1f 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0007/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0007/expected.json @@ -60,7 +60,6 @@ "name": "hello" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0008/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0008/expected.json index 7df304a88aa3..fcf126fd3e70 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0008/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0008/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0009/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0009/expected.json index ce5cb4228835..da1c8e428381 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0009/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0009/expected.json @@ -106,7 +106,6 @@ "name": "eval" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0010/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0010/expected.json index 2b88f0d95349..26a884193229 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0010/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0010/expected.json @@ -106,7 +106,6 @@ "name": "arguments" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0011/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0011/expected.json index f3e529622f37..0aaae5e1dbcd 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0011/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0011/expected.json @@ -106,7 +106,6 @@ "name": "hi" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0012/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0012/expected.json index f79af90cc1b6..845e87f68964 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0012/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0012/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0013/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0013/expected.json index 511cc1461acc..e6495a754a39 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0013/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0013/expected.json @@ -60,7 +60,6 @@ "name": "universe" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0014/expected.json b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0014/expected.json index 9b336de80e26..5e95ad45dae3 100644 --- a/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0014/expected.json +++ b/packages/babylon/test/fixtures/esprima/declaration-function/migrated_0014/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0000/expected.json index e7c92d32b5b4..691e0b073583 100644 --- a/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0000/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0001/expected.json index 4530bdb97fa0..9310c48ca292 100644 --- a/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/directive-prolog/migrated_0001/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-01/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-01/expected.json index 592f6f4c3ae4..0bd708c7c3d8 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-01/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-01/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-02/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-02/expected.json index 40992a438333..8d094fa12fc0 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-02/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-02/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-03/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-03/expected.json index 99f74f62d8b9..ff629758817e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-03/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-03/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-empty/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-empty/expected.json index bf9322b67acf..3625bde0024a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-empty/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/array-binding-pattern-empty/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/elision/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/elision/expected.json index cf5275647d2c..52f032007503 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/elision/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-binding-pattern/elision/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/empty-pattern-fn/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/empty-pattern-fn/expected.json index eba23577ef02..a8dd7d0406a4 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/empty-pattern-fn/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/empty-pattern-fn/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/patterned-catch/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/patterned-catch/expected.json index 7dfea8e34d0a..512ce594076e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/patterned-catch/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/patterned-catch/expected.json @@ -152,7 +152,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -170,6 +169,7 @@ }, "name": "c" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -207,7 +207,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -225,6 +224,7 @@ }, "name": "d" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", @@ -381,7 +381,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 40, @@ -399,6 +398,7 @@ }, "name": "h" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-default-fn/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-default-fn/expected.json index 187faa482d7a..88958a6e4ccc 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-default-fn/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-default-fn/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-object-pattern/expected.json b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-object-pattern/expected.json index dea5d68b0eee..d6906352d8cd 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-object-pattern/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-array-pattern/with-object-pattern/expected.json @@ -102,7 +102,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -120,6 +119,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-arg-and-rest/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-arg-and-rest/expected.json index 937d51b6387d..4052cfa0a7d5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-arg-and-rest/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-arg-and-rest/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-only-rest/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-only-rest/expected.json index 1ab3f26f36ab..7cf001e9d28b 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-only-rest/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/arrow-with-only-rest/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0000/expected.json index 9910aa18c476..b207aacaaea6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0000/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0001/expected.json index b6a6ef550a12..22b0d5dc8f60 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0001/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0002/expected.json index 0d6682111590..0c593af97547 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0002/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0003/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0003/expected.json index 36e04398ee6d..87e6e46b23e3 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0003/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0003/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0004/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0004/expected.json index 54989111af14..3658a6b51ac0 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0004/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0004/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0005/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0005/expected.json index e493220b5c94..2d11218d2ee9 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0005/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0005/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -109,7 +108,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -127,6 +125,7 @@ }, "name": "property" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0006/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0006/expected.json index 93d45404a417..5ae406f90c36 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0006/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0006/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0007/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0007/expected.json index 78728a0062c3..dbb53e95e2bd 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0007/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0007/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0008/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0008/expected.json index e47019cdb6c0..6890a7d437f0 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0008/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0008/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0009/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0009/expected.json index b7e7b6100178..cf27183ec2a3 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0009/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0009/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0010/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0010/expected.json index 1f49c57e2d93..29078923b51a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0010/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0010/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0011/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0011/expected.json index a2bf196ca0f9..ba75a08eb777 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0011/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0011/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0012/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0012/expected.json index d912fa2794a9..5d58016491d5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0012/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0012/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0013/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0013/expected.json index 84f8889f2fb6..a8fee8ae6725 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0013/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0013/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0014/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0014/expected.json index 31928b185102..a8155f5a0149 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0014/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0014/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0015/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0015/expected.json index cab6510eaff1..b7657b46b58a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0015/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0015/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0016/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0016/expected.json index 5b9f51fa627e..be94c3c8d002 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0016/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0016/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -95,7 +94,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0017/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0017/expected.json index 864245ed88f7..6145b03905ca 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0017/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0017/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -95,7 +94,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0018/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0018/expected.json index d6a7efe40fa1..c483c721e170 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0018/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0018/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0019/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0019/expected.json index e5022056df15..cfdd7259cc65 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0019/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0019/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0020/expected.json b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0020/expected.json index b8563aeaae8d..a9a870f87769 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0020/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-arrow-function/migrated_0020/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0004/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0004/expected.json index 1998fa25fd6f..adde2a7cd813 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0004/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0004/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0005/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0005/expected.json index 899e4f89fcdd..f80515d971ac 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0005/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0005/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -165,10 +163,10 @@ }, "name": "b" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0006/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0006/expected.json index aee3a382dcda..e1222b75adae 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0006/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0006/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -165,10 +163,10 @@ }, "name": "b" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0007/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0007/expected.json index 30c3a5f4e691..200a67482e00 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0007/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0007/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -165,10 +163,10 @@ }, "name": "b" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0008/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0008/expected.json index fc5dd0305340..253ef01d629f 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0008/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0008/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -165,10 +163,10 @@ }, "name": "b" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0009/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0009/expected.json index 163cde64f1fb..9aef880b8387 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0009/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0009/expected.json @@ -89,7 +89,6 @@ "column": 19 } }, - "static": false, "kind": "method", "computed": false, "key": { @@ -109,9 +108,9 @@ }, "name": "static" }, + "static": false, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0010/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0010/expected.json index 123b5826feb8..353841b9c9c6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0010/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0010/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -165,10 +163,10 @@ }, "name": "b" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0011/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0011/expected.json index 08bf6cfa7ab3..b8b6b34fe8f1 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0011/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0011/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 33, @@ -165,10 +163,10 @@ }, "name": "a" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -204,7 +202,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 50, @@ -222,10 +219,10 @@ }, "name": "a" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0012/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0012/expected.json index cf546974f2e8..dbee3c7e3425 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0012/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0012/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0013/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0013/expected.json index f0fd394ac8c7..34d93e3c4dc2 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0013/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0013/expected.json @@ -111,7 +111,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0014/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0014/expected.json index 1ff1dcca263f..0a1abb289529 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0014/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0014/expected.json @@ -111,7 +111,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -168,7 +167,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0015/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0015/expected.json index fffddf1e7683..93bf26f7d201 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0015/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0015/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -108,10 +107,10 @@ }, "name": "static" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0017/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0017/expected.json index ae929ebe00c8..909d9672baad 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0017/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0017/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "prototype" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0018/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0018/expected.json index ef96011b27e3..c59d09ec5db6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0018/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0018/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0019/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0019/expected.json index 9fc80e5ba476..16f5dcc9fa5e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0019/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0019/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "StringLiteral", "start": 9, @@ -111,10 +110,10 @@ }, "value": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -174,7 +173,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0020/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0020/expected.json index ae2168a01efe..2f57a91a1308 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0020/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0020/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 39, @@ -165,10 +163,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0021/expected.json b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0021/expected.json index 3b05492ff7fd..2eb9fe79f7f2 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0021/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-class/migrated_0021/expected.json @@ -114,7 +114,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0000/expected.json index e1465d0c7d91..994c1ca32cf7 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0000/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0001/expected.json index a0c1096c6f41..cbee94cb9567 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0001/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0002/expected.json index ef6bf5694157..f370fc56ed23 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-default-parameter-value/migrated_0002/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-cover-grammar/expected.json b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-cover-grammar/expected.json index df55dfe4df3e..4ef24e0ac5a6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-cover-grammar/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-cover-grammar/expected.json @@ -102,7 +102,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -120,6 +119,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/nested-cover-grammar/expected.json b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/nested-cover-grammar/expected.json index ffcd88b46a03..add1b80a1cde 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/nested-cover-grammar/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/nested-cover-grammar/expected.json @@ -387,7 +387,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -405,6 +404,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/object-pattern-assignment/expected.json b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/object-pattern-assignment/expected.json index 14b57f257c31..6af1d27e59c0 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/object-pattern-assignment/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-destructuring-assignment-object-pattern/object-pattern-assignment/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -142,7 +142,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -160,6 +159,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -194,7 +194,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -212,6 +211,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", @@ -327,7 +327,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 39, @@ -345,6 +344,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -385,7 +385,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 47, @@ -403,6 +402,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "MemberExpression", @@ -486,7 +486,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 69, @@ -504,6 +503,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "MemberExpression", diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-function/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-function/expected.json index 3c9a9fc01d5e..055c8513c23c 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-function/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-function/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-named-function/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-named-function/expected.json index 73c18e7a0a5b..cbc9553b0e10 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-named-function/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-named-function/expected.json @@ -74,7 +74,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-object/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-object/expected.json index e9316ee54f22..c7125efbdf03 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-object/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-default-object/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -90,6 +89,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function-declaration/expected.json index a83b57f9d574..67c38420f8bc 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function-declaration/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function/expected.json index 8a4161daa495..efe136334e8a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-function/expected.json @@ -76,7 +76,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-var-anonymous-function/expected.json b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-var-anonymous-function/expected.json index 22cb4bf78a7e..08b96321fbf7 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-var-anonymous-function/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-export-declaration/export-var-anonymous-function/expected.json @@ -106,7 +106,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern-const/expected.json b/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern-const/expected.json index f39a7f0e1dae..fbf2358333b6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern-const/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern-const/expected.json @@ -102,7 +102,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -120,6 +119,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -157,7 +157,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -175,6 +174,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern/expected.json b/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern/expected.json index b0e0c8506194..3304b9020f3f 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-for-of/for-of-object-pattern/expected.json @@ -73,7 +73,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -91,6 +90,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -128,7 +128,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -146,6 +145,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-params/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-params/expected.json index 2423e57fcf77..7bb0447e421c 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-params/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-params/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield-delegate/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield-delegate/expected.json index 58db0aae3b27..7f84c3d1f581 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield-delegate/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield-delegate/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield/expected.json index be45b3da432c..4dccc952c200 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration-with-yield/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration/expected.json index 1218c2a65b14..e0f1121abe17 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-declaration/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-rest-param/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-rest-param/expected.json index db8af8e9787c..a242fc1f559d 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-rest-param/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-rest-param/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-params/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-params/expected.json index f7443b2b2648..1362f519ca4e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-params/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-params/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield-delegate/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield-delegate/expected.json index 68ae729a2b73..55c5fc16788e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield-delegate/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield-delegate/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield/expected.json index 7ae471dd07cf..037922b8d104 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression-with-yield/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression/expected.json index c5418c003ab7..367c8a691c86 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-expression/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-computed-name/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-computed-name/expected.json index 66422a0b0ad0..8044b80e2a52 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-computed-name/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-computed-name/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -157,7 +156,6 @@ "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-params/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-params/expected.json index a45b9ad7f9a5..90576c1c5c30 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-params/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-params/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-delegate/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-delegate/expected.json index 2180fdc787c7..822e1710e3a4 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-delegate/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-delegate/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-expression/expected.json index 93a78ef5209f..786b968d6b69 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-expression/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-line-terminator/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-line-terminator/expected.json index 8d7abdba4a95..92c74802ca8f 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-line-terminator/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield-line-terminator/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield/expected.json index f4a5aa527223..fdb6ad3cb644 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method-with-yield/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method/expected.json index 808a6a8397bf..18db0c1dd1a6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/generator-method/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method-with-computed-name/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method-with-computed-name/expected.json index d6bde8049a62..416825f0b126 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method-with-computed-name/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method-with-computed-name/expected.json @@ -111,7 +111,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method/expected.json index 14762b81ab58..d89096c40079 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-generator/static-generator-method/expected.json @@ -91,7 +91,6 @@ }, "static": true, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -109,9 +108,9 @@ }, "name": "foo" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/assign-new-target/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/assign-new-target/expected.json index 98424401bdc3..7aa1ae8e6b9f 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/assign-new-target/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/assign-new-target/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-new-target/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-new-target/expected.json index be413af4670e..288600cccd51 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-new-target/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-new-target/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-declaration/expected.json index 1bac964983c1..c638246c6db4 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-declaration/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-expression/expected.json index 08af3f07a0f8..b5752a284726 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-expression/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-invoke/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-invoke/expected.json index 78ccbda879c3..58ba5bb1e80b 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-invoke/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-invoke/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-precedence/expected.json b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-precedence/expected.json index bc3f8206faa1..003bc7b4b63b 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-precedence/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-meta-property/new-target-precedence/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0000/expected.json index 9415c4be2b72..05d60f30b1bf 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0000/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0001/expected.json index d5e9eb555e4b..5018252dae2e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0001/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0002/expected.json index 879d54f7eeaa..6e2e4d98d3de 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0002/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "StringLiteral", "start": 6, @@ -125,10 +124,10 @@ }, "value": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0003/expected.json b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0003/expected.json index a1a2904802db..9689a45ac891 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0003/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0003/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "get" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0004/expected.json b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0004/expected.json index 947e572d5e67..d8d8cfee12d2 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0004/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-method-definition/migrated_0004/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "set" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter-setter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter-setter/expected.json index dbb75d94aba9..c0c8200ece55 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter-setter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter-setter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,6 +89,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -122,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -140,10 +139,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -179,7 +178,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -197,10 +195,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter/expected.json index cbfcf5f82ee3..181e3c40feb1 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-getter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,6 +89,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -122,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -140,10 +139,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-method/expected.json index df65cc7cd9f0..bd528c430cc5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-method/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,6 +89,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -122,7 +122,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -140,10 +139,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-setter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-setter/expected.json index 0186c1bc41d8..255173a09b0b 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-setter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-identifier-setter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,6 +89,7 @@ }, "name": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -122,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -140,10 +139,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter-setter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter-setter/expected.json index e0fb06eef1a3..4bbb184db39e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter-setter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter-setter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 3, @@ -93,6 +92,7 @@ }, "value": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -125,7 +125,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -143,10 +142,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -182,7 +181,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 45, @@ -200,10 +198,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter/expected.json index 895e87a67844..3f202ba80a03 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-getter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 3, @@ -93,6 +92,7 @@ }, "value": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -125,7 +125,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -143,10 +142,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-method/expected.json index bb7f43d8a51e..14904c3a91df 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-method/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 3, @@ -93,6 +92,7 @@ }, "value": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -125,7 +125,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -143,10 +142,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-setter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-setter/expected.json index 3d984cf80463..8dc996e315d3 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-setter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-initialiser/proto-literal-setter/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "StringLiteral", "start": 3, @@ -93,6 +92,7 @@ }, "value": "__proto__" }, + "computed": false, "shorthand": false, "value": { "type": "NullLiteral", @@ -125,7 +125,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -143,10 +142,10 @@ }, "name": "__proto__" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-literal-property-value-shorthand/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-literal-property-value-shorthand/migrated_0000/expected.json index 620e423e0ab6..abd80881c660 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-literal-property-value-shorthand/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-literal-property-value-shorthand/migrated_0000/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -159,7 +159,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -177,6 +176,7 @@ }, "name": "z" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/elision/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/elision/expected.json index 6dcfe66427c3..f546a66df973 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/elision/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/elision/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/empty-fn/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/empty-fn/expected.json index 62f2520c8c85..842fde628789 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/empty-fn/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/empty-fn/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/nested/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/nested/expected.json index 5e1855da28b3..ae85f7ce66f5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/nested/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/nested/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", diff --git a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/properties/expected.json b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/properties/expected.json index 8dde30d848a3..7d99f45aab3e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-object-pattern/properties/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-object-pattern/properties/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -142,7 +142,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -160,6 +159,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", @@ -232,7 +232,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -250,6 +249,7 @@ }, "name": "c" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -284,7 +284,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -302,6 +301,7 @@ }, "name": "e" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0002/expected.json index 8a3dd5608b8c..8ba09d6077f6 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0002/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0006/expected.json b/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0006/expected.json index 95b01a403fc9..90750e471c32 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0006/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-octal-integer-literal/migrated_0006/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-declaration/expected.json index 07716be5ae62..81c2986660d2 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-declaration/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-expression/expected.json index 8c72a24d81e3..9d6057b46ccd 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/function-expression/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-method/expected.json index 220cb767a587..7f9a954a96b5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-method/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-shorthand-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-shorthand-method/expected.json index 158fdcac2ae0..f7d12c635cf7 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-shorthand-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-rest-parameter/object-shorthand-method/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-super-property/arrow_super/expected.json b/packages/babylon/test/fixtures/esprima/es2015-super-property/arrow_super/expected.json index 6f97b22f32d6..c5cf38f22c42 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-super-property/arrow_super/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-super-property/arrow_super/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -124,10 +123,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -175,7 +174,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-super-property/constructor_super/expected.json b/packages/babylon/test/fixtures/esprima/es2015-super-property/constructor_super/expected.json index 1e275d862540..f7de748e9636 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-super-property/constructor_super/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-super-property/constructor_super/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -124,10 +123,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-super-property/new_super/expected.json b/packages/babylon/test/fixtures/esprima/es2015-super-property/new_super/expected.json index 270481875ab9..216a5660f470 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-super-property/new_super/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-super-property/new_super/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -124,10 +123,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-super-property/super_computed/expected.json b/packages/babylon/test/fixtures/esprima/es2015-super-property/super_computed/expected.json index 0fc729cbe95d..88b6fc788381 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-super-property/super_computed/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-super-property/super_computed/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -124,10 +123,10 @@ }, "name": "X" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-super-property/super_member/expected.json b/packages/babylon/test/fixtures/esprima/es2015-super-property/super_member/expected.json index 7b48047fecfc..13b4db2bc4cf 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-super-property/super_member/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-super-property/super_member/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -124,10 +123,10 @@ }, "name": "X" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-concise-body/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-concise-body/expected.json index 979a5b2d8f93..a5418d671763 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-concise-body/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-concise-body/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-function-body/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-function-body/expected.json index f21f16b122a4..0eede033eb25 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-function-body/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-function-body/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-default/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-default/expected.json index 4e9be7eb6c55..078bdf09bd42 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-default/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-default/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-name/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-name/expected.json index 482f30d4af6b..a479ba89d89a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-name/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-arrow-parameter-name/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-element/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-element/expected.json index 21e8a75108b0..f3203cac78c0 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-element/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-element/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-property/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-property/expected.json index 185e1b80fc6d..5f10e8fb0303 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-property/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-binding-property/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -105,6 +104,7 @@ }, "name": "yield" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-call-expression-property/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-call-expression-property/expected.json index 96faaad62336..d062c8843e4a 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-call-expression-property/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-call-expression-property/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-expression-precedence/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-expression-precedence/expected.json index 0af9249a29b8..71eabf68b725 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-expression-precedence/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-expression-precedence/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration-formal-parameter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration-formal-parameter/expected.json index 1bcf0b31b8de..db59de998c2e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration-formal-parameter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration-formal-parameter/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration/expected.json index 7a94e2914060..94e5595e8591 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-declaration/expected.json @@ -60,7 +60,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression-parameter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression-parameter/expected.json index 792d4b517052..18adc5638187 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression-parameter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression-parameter/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression/expected.json index 69b03706fdcb..524c1fed7f46 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-function-expression/expected.json @@ -74,7 +74,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-concise-body/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-concise-body/expected.json index aa434f16dc2e..7290cfd9597d 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-concise-body/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-concise-body/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -108,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-function-body/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-function-body/expected.json index 5e171cab8f88..426b0ef2deb4 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-function-body/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-arrow-function-body/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -108,7 +107,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-declaration/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-declaration/expected.json index b8920d91bbca..f18ed953bef5 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-declaration/expected.json @@ -60,7 +60,6 @@ "name": "yield" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-expression/expected.json index dfddec406d22..c4c376b55d2e 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-expression/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -156,7 +155,6 @@ "name": "yield" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-parameter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-parameter/expected.json index 553f0518f2f9..f8ccf6154e47 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-parameter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-function-parameter/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -140,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-method/expected.json index 79c30e517ef7..74dab07b2f15 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-method/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -90,10 +89,10 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-parameter-object-pattern/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-parameter-object-pattern/expected.json index 4ede8e5d8ee5..f726177339aa 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-parameter-object-pattern/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-generator-parameter-object-pattern/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -111,6 +109,7 @@ }, "name": "yield" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-member-expression-property/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-member-expression-property/expected.json index fe001abdb5ce..bb1a6d1640ea 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-member-expression-property/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-member-expression-property/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-method/expected.json index 0e9ebaaa33b9..306f6642c0dd 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-method/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -90,10 +89,10 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-parameter-object-pattern/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-parameter-object-pattern/expected.json index e16e19c65339..76c95ba068c1 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-parameter-object-pattern/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-parameter-object-pattern/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -111,6 +109,7 @@ }, "name": "yield" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-rest-parameter/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-rest-parameter/expected.json index 90d608359fdf..8c9a82f27244 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-rest-parameter/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-rest-parameter/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-binding-property/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-binding-property/expected.json index 0a5773facc45..b8da000b1438 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-binding-property/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-binding-property/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -105,6 +104,7 @@ }, "name": "yield" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-method/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-method/expected.json index e3f77abfebad..6bdf706ad6ca 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-strict-method/expected.json @@ -72,7 +72,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -90,10 +89,10 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-super-property/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-super-property/expected.json index 0801ae0ade4a..b7a768b0a0c4 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-super-property/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-super-property/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -124,10 +123,10 @@ }, "name": "X" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression-delegate/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression-delegate/expected.json index d0d73e72ff7d..8b5641d1a3ae 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression-delegate/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression-delegate/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression/expected.json b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression/expected.json index d5adbff2e15d..37960a2ef138 100644 --- a/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/es2015-yield/yield-yield-expression/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-array/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-array/expected.json index 4bdc1344d7ad..721b70528da4 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-array/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-array/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-object/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-object/expected.json index 3ab154002eaa..f2235c6b5146 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-object/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-object/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -122,7 +121,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -140,6 +138,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/function-declaration/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/function-declaration/expected.json index 07716be5ae62..81c2986660d2 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/function-declaration/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/function-declaration/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/function-expression/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/function-expression/expected.json index 8c72a24d81e3..9d6057b46ccd 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/function-expression/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/function-expression/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/invalid-setter-rest/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/invalid-setter-rest/expected.json index 7ca9b46fe230..8d4bed2eb18c 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/invalid-setter-rest/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/invalid-setter-rest/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -122,10 +121,10 @@ }, "name": "f" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/object-method/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/object-method/expected.json index 220cb767a587..7f9a954a96b5 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/object-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/object-method/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,6 +121,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/object-shorthand-method/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/object-shorthand-method/expected.json index 158fdcac2ae0..f7d12c635cf7 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/object-shorthand-method/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/object-shorthand-method/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-array/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-array/expected.json index 5baa9cff6076..ae4c2ed557eb 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-array/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-array/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-object/expected.json b/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-object/expected.json index 42ce27cb2a79..76c00e3fcd1f 100644 --- a/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-object/expected.json +++ b/packages/babylon/test/fixtures/esprima/rest-parameter/rest-parameter-object/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/esprima/statement-if/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/statement-if/migrated_0001/expected.json index 38198e3d253a..e51a4dc3c271 100644 --- a/packages/babylon/test/fixtures/esprima/statement-if/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-if/migrated_0001/expected.json @@ -89,7 +89,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0000/expected.json b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0000/expected.json index fe9666a99eef..210a3c49ea3e 100644 --- a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0000/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0000/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0001/expected.json b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0001/expected.json index 1f4ff8a16adb..4e4569aa913f 100644 --- a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0001/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0001/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0002/expected.json index 05b71f8cff2b..91a57f13b562 100644 --- a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0002/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0003/expected.json b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0003/expected.json index bd73928291ae..d459bf8ae3c7 100644 --- a/packages/babylon/test/fixtures/esprima/statement-return/migrated_0003/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-return/migrated_0003/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/esprima/statement-throw/migrated_0002/expected.json b/packages/babylon/test/fixtures/esprima/statement-throw/migrated_0002/expected.json index 9c4a377caad3..fec4e5ed0890 100644 --- a/packages/babylon/test/fixtures/esprima/statement-throw/migrated_0002/expected.json +++ b/packages/babylon/test/fixtures/esprima/statement-throw/migrated_0002/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -90,6 +89,7 @@ }, "name": "message" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/estree/class-method/basic/expected.json b/packages/babylon/test/fixtures/estree/class-method/basic/expected.json index 8b70b14f6d01..ed044addab8a 100644 --- a/packages/babylon/test/fixtures/estree/class-method/basic/expected.json +++ b/packages/babylon/test/fixtures/estree/class-method/basic/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,6 +107,7 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -125,8 +125,8 @@ }, "id": null, "generator": false, - "expression": false, "async": false, + "expression": false, "params": [], "body": { "type": "BlockStatement", diff --git a/packages/babylon/test/fixtures/estree/class-method/flow/expected.json b/packages/babylon/test/fixtures/estree/class-method/flow/expected.json index ff4523d0f126..268bd8439f8e 100644 --- a/packages/babylon/test/fixtures/estree/class-method/flow/expected.json +++ b/packages/babylon/test/fixtures/estree/class-method/flow/expected.json @@ -106,7 +106,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 39, @@ -124,6 +123,7 @@ }, "name": "finishNodeAt" }, + "computed": false, "kind": "method", "value": { "type": "FunctionExpression", @@ -141,8 +141,8 @@ }, "id": null, "generator": false, - "expression": false, "async": false, + "expression": false, "params": [ { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/estree/directives/block/expected.json b/packages/babylon/test/fixtures/estree/directives/block/expected.json index 1370348bc2f2..6723fdbf0e16 100644 --- a/packages/babylon/test/fixtures/estree/directives/block/expected.json +++ b/packages/babylon/test/fixtures/estree/directives/block/expected.json @@ -60,8 +60,8 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, + "expression": false, "params": [], "body": { "type": "BlockStatement", diff --git a/packages/babylon/test/fixtures/estree/directives/function-non-strict/expected.json b/packages/babylon/test/fixtures/estree/directives/function-non-strict/expected.json index 9e22c6306c06..bb3b781e7457 100644 --- a/packages/babylon/test/fixtures/estree/directives/function-non-strict/expected.json +++ b/packages/babylon/test/fixtures/estree/directives/function-non-strict/expected.json @@ -60,8 +60,8 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, + "expression": false, "params": [], "body": { "type": "BlockStatement", diff --git a/packages/babylon/test/fixtures/estree/directives/raw/expected.json b/packages/babylon/test/fixtures/estree/directives/raw/expected.json index b1d0f267c424..220249c4aa79 100644 --- a/packages/babylon/test/fixtures/estree/directives/raw/expected.json +++ b/packages/babylon/test/fixtures/estree/directives/raw/expected.json @@ -63,4 +63,4 @@ } ] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/estree/object-method/basic/expected.json b/packages/babylon/test/fixtures/estree/object-method/basic/expected.json index de9baf8dff20..2ca56f067976 100644 --- a/packages/babylon/test/fixtures/estree/object-method/basic/expected.json +++ b/packages/babylon/test/fixtures/estree/object-method/basic/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -122,6 +121,7 @@ }, "name": "foo" }, + "computed": false, "kind": "init", "value": { "type": "FunctionExpression", @@ -139,8 +139,8 @@ }, "id": null, "generator": false, - "expression": false, "async": false, + "expression": false, "params": [], "body": { "type": "BlockStatement", diff --git a/packages/babylon/test/fixtures/estree/object-property/basic/expected.json b/packages/babylon/test/fixtures/estree/object-property/basic/expected.json index c2051e303a98..e9b55b9b2bfa 100644 --- a/packages/babylon/test/fixtures/estree/object-property/basic/expected.json +++ b/packages/babylon/test/fixtures/estree/object-property/basic/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -122,6 +121,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "Literal", diff --git a/packages/babylon/test/fixtures/experimental/async-generators/class-method-2/expected.json b/packages/babylon/test/fixtures/experimental/async-generators/class-method-2/expected.json index ea451fd3cb95..5e4225b34258 100644 --- a/packages/babylon/test/fixtures/experimental/async-generators/class-method-2/expected.json +++ b/packages/babylon/test/fixtures/experimental/async-generators/class-method-2/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -108,10 +107,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/async-generators/class-method/expected.json b/packages/babylon/test/fixtures/experimental/async-generators/class-method/expected.json index 82b6bd579fff..63eff9eccc9c 100644 --- a/packages/babylon/test/fixtures/experimental/async-generators/class-method/expected.json +++ b/packages/babylon/test/fixtures/experimental/async-generators/class-method/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 25, @@ -108,10 +107,10 @@ }, "name": "queryAll" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/async-generators/for-await/expected.json b/packages/babylon/test/fixtures/experimental/async-generators/for-await/expected.json index b69586316e46..a60988eac186 100644 --- a/packages/babylon/test/fixtures/experimental/async-generators/for-await/expected.json +++ b/packages/babylon/test/fixtures/experimental/async-generators/for-await/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/async-generators/object-method/expected.json b/packages/babylon/test/fixtures/experimental/async-generators/object-method/expected.json index 24a82e11c994..ecb5ae7de8c2 100644 --- a/packages/babylon/test/fixtures/experimental/async-generators/object-method/expected.json +++ b/packages/babylon/test/fixtures/experimental/async-generators/object-method/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -122,10 +121,10 @@ }, "name": "queryAll" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/bigint/valid-large/expected.json b/packages/babylon/test/fixtures/experimental/bigint/valid-large/expected.json index 1536e3c7ae96..e236ac8dd67b 100644 --- a/packages/babylon/test/fixtures/experimental/bigint/valid-large/expected.json +++ b/packages/babylon/test/fixtures/experimental/bigint/valid-large/expected.json @@ -66,4 +66,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/bigint/valid-small/expected.json b/packages/babylon/test/fixtures/experimental/bigint/valid-small/expected.json index 736974a559fe..9d0c84e40ca2 100644 --- a/packages/babylon/test/fixtures/experimental/bigint/valid-small/expected.json +++ b/packages/babylon/test/fixtures/experimental/bigint/valid-small/expected.json @@ -66,4 +66,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/async-generator/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/async-generator/expected.json index 3e909dd1f881..f5ed3dfdaf53 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/async-generator/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/async-generator/expected.json @@ -126,7 +126,6 @@ "kind": "method", "id": null, "generator": true, - "expression": false, "async": true, "params": [ { @@ -652,4 +651,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/async/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/async/expected.json index b394a8191863..b1ab4f613f87 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/async/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/async/expected.json @@ -126,7 +126,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -217,4 +216,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/combined/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/combined/expected.json index b4e752bd7792..0c8a7b09443f 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/combined/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/combined/expected.json @@ -179,7 +179,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -369,7 +368,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -477,7 +475,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -599,7 +596,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -708,4 +704,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/generator/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/generator/expected.json index b2e3395a984c..9a535e389d85 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/generator/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/generator/expected.json @@ -125,7 +125,6 @@ }, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -217,4 +216,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/get-set/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/get-set/expected.json index 13ffb2624a10..1c19ce1d313b 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/get-set/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/get-set/expected.json @@ -126,7 +126,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -247,7 +246,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -359,4 +357,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-methods/method/expected.json b/packages/babylon/test/fixtures/experimental/class-private-methods/method/expected.json index 063445a73b29..9384092c3d90 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-methods/method/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-methods/method/expected.json @@ -125,7 +125,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -201,4 +200,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-properties/asi-success/expected.json b/packages/babylon/test/fixtures/experimental/class-private-properties/asi-success/expected.json index afb8c6a2004d..b15a053d3279 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-properties/asi-success/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-properties/asi-success/expected.json @@ -179,4 +179,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-properties/inline/expected.json b/packages/babylon/test/fixtures/experimental/class-private-properties/inline/expected.json index c29aba9665a6..f04ba741dacd 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-properties/inline/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-properties/inline/expected.json @@ -365,4 +365,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-properties/nested/expected.json b/packages/babylon/test/fixtures/experimental/class-private-properties/nested/expected.json index 6560e192208d..6cf439e4132e 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-properties/nested/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-properties/nested/expected.json @@ -247,7 +247,6 @@ "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -912,7 +911,6 @@ "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -1337,7 +1335,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -1473,7 +1470,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -1680,7 +1676,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -1816,7 +1811,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -2023,7 +2017,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -2418,7 +2411,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -2705,7 +2697,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -2841,7 +2832,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -3048,7 +3038,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -3184,7 +3173,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -3391,7 +3379,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -3786,7 +3773,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -4034,4 +4020,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-properties/pbn-success/expected.json b/packages/babylon/test/fixtures/experimental/class-private-properties/pbn-success/expected.json index 65eae7c21d3d..d016c37afe26 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-properties/pbn-success/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-properties/pbn-success/expected.json @@ -247,7 +247,6 @@ "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -672,7 +671,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -808,7 +806,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -1015,7 +1012,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -1151,7 +1147,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -1358,7 +1353,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -1753,7 +1747,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -2001,4 +1994,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-private-properties/static/expected.json b/packages/babylon/test/fixtures/experimental/class-private-properties/static/expected.json index 363faa2c4747..4089a843c7a1 100644 --- a/packages/babylon/test/fixtures/experimental/class-private-properties/static/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-private-properties/static/expected.json @@ -198,4 +198,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/class-properties/asi-success/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/asi-success/expected.json index 180c9fa44dd6..174d224de134 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/asi-success/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/asi-success/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,6 +107,7 @@ }, "name": "x" }, + "computed": false, "value": null }, { @@ -125,7 +125,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -143,6 +142,7 @@ }, "name": "y" }, + "computed": false, "value": null } ] @@ -210,7 +210,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -228,6 +227,7 @@ }, "name": "p" }, + "computed": false, "value": null }, { @@ -266,7 +266,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/class-properties/computed/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/computed/expected.json index dcdd64b2d8ad..5427d9b8b2f9 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/computed/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/computed/expected.json @@ -269,7 +269,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/class-properties/edge-cases/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/edge-cases/expected.json index e029628a7044..1f2961c0760d 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/edge-cases/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/edge-cases/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -108,6 +107,7 @@ }, "name": "a" }, + "computed": false, "value": null }, { @@ -124,7 +124,6 @@ "column": 8 } }, - "static": false, "computed": false, "key": { "type": "Identifier", @@ -143,6 +142,7 @@ }, "name": "static" }, + "static": false, "value": null } ] @@ -210,7 +210,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 47, @@ -228,6 +227,7 @@ }, "name": "a" }, + "computed": false, "value": null } ] @@ -295,7 +295,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 62, @@ -313,6 +312,7 @@ }, "name": "get" }, + "computed": false, "value": null } ] @@ -380,7 +380,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 79, @@ -398,6 +397,7 @@ }, "name": "set" }, + "computed": false, "value": null } ] @@ -464,7 +464,6 @@ "column": 17 } }, - "static": false, "computed": false, "key": { "type": "Identifier", @@ -483,6 +482,7 @@ }, "name": "static" }, + "static": false, "value": null } ] @@ -550,7 +550,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 116, @@ -568,6 +567,7 @@ }, "name": "async" }, + "computed": false, "value": null } ] @@ -635,7 +635,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 138, @@ -653,6 +652,7 @@ }, "name": "get" }, + "computed": false, "value": null }, { @@ -671,7 +671,6 @@ }, "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 145, @@ -689,9 +688,9 @@ }, "name": "a" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -778,7 +777,6 @@ }, "static": true, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 177, @@ -796,9 +794,9 @@ }, "name": "a" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { @@ -884,7 +882,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 199, @@ -902,6 +899,7 @@ }, "name": "async" }, + "computed": false, "value": null }, { @@ -919,7 +917,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 207, @@ -937,10 +934,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -1026,7 +1023,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 239, @@ -1044,6 +1040,7 @@ }, "name": "async" }, + "computed": false, "value": null }, { @@ -1061,7 +1058,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 247, @@ -1079,6 +1075,7 @@ }, "name": "a" }, + "computed": false, "value": null } ] @@ -1145,7 +1142,6 @@ "column": 19 } }, - "static": false, "computed": false, "key": { "type": "Identifier", @@ -1164,6 +1160,7 @@ }, "name": "static" }, + "static": false, "value": null } ] @@ -1230,7 +1227,6 @@ "column": 13 } }, - "static": false, "computed": false, "key": { "type": "Identifier", @@ -1249,6 +1245,7 @@ }, "name": "static" }, + "static": false, "value": { "type": "NumericLiteral", "start": 298, @@ -1335,7 +1332,6 @@ } }, "static": false, - "computed": true, "key": { "type": "StringLiteral", "start": 325, @@ -1356,10 +1352,10 @@ }, "value": "a" }, + "computed": true, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -1445,7 +1441,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 366, @@ -1463,10 +1458,10 @@ }, "name": "static" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/class-properties/inline/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/inline/expected.json index d5369121bb3a..26ed38ab6208 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/inline/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/inline/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,6 +107,7 @@ }, "name": "x" }, + "computed": false, "value": null }, { @@ -125,7 +125,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 13, @@ -143,6 +142,7 @@ }, "name": "y" }, + "computed": false, "value": null } ] @@ -210,7 +210,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -228,6 +227,7 @@ }, "name": "x" }, + "computed": false, "value": { "type": "NumericLiteral", "start": 33, @@ -264,7 +264,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 36, @@ -282,6 +281,7 @@ }, "name": "y" }, + "computed": false, "value": { "type": "NumericLiteral", "start": 40, diff --git a/packages/babylon/test/fixtures/experimental/class-properties/new-target-with-flow/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/new-target-with-flow/expected.json index 2f2859395791..235483266bef 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/new-target-with-flow/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/new-target-with-flow/expected.json @@ -400,7 +400,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -504,7 +503,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -933,7 +931,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -1037,7 +1034,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/class-properties/new-target/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/new-target/expected.json index 0f9788579b15..b145601ec9c3 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/new-target/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/new-target/expected.json @@ -397,7 +397,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -500,7 +499,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -926,7 +924,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -1029,7 +1026,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/class-properties/super/expected.json b/packages/babylon/test/fixtures/experimental/class-properties/super/expected.json index 3460702b3b33..9a0a37ede6ca 100644 --- a/packages/babylon/test/fixtures/experimental/class-properties/super/expected.json +++ b/packages/babylon/test/fixtures/experimental/class-properties/super/expected.json @@ -105,7 +105,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 28, @@ -123,10 +122,10 @@ }, "name": "c" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -180,7 +179,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 40, @@ -198,6 +196,7 @@ }, "name": "c" }, + "computed": false, "value": { "type": "CallExpression", "start": 44, diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/class-expression/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/class-expression/expected.json index af3ed887d20e..72dc5339c8ec 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/class-expression/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/class-expression/expected.json @@ -204,7 +204,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 36, @@ -222,10 +221,10 @@ }, "name": "bam" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/class-generator/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/class-generator/expected.json index 87b73b717afe..83bddbb3476f 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/class-generator/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/class-generator/expected.json @@ -125,7 +125,6 @@ ], "static": false, "kind": "method", - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -143,9 +142,9 @@ }, "name": "m" }, + "computed": false, "id": null, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/complex-expr/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/complex-expr/expected.json index b048d367ee82..d1e5d66b3a6f 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/complex-expr/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/complex-expr/expected.json @@ -274,7 +274,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -292,10 +291,10 @@ }, "name": "m" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-class/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-class/expected.json index b18168fe0dd2..5ee1bc734595 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-class/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-class/expected.json @@ -119,7 +119,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -137,6 +136,7 @@ }, "name": "store" }, + "computed": false, "shorthand": false, "value": { "type": "ClassExpression", diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-method/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-method/expected.json index 472e83b4922f..b05b9fcf6141 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-method/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/decoratorception-method/expected.json @@ -250,7 +250,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 64, @@ -268,10 +267,10 @@ }, "name": "innerMethod" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -300,7 +299,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 94, @@ -318,10 +316,10 @@ }, "name": "outerMethod" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -348,4 +346,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/get-decorator/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/get-decorator/expected.json index 8c47184dac3e..5db365b9582a 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/get-decorator/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/get-decorator/expected.json @@ -145,7 +145,6 @@ "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/on-computed-name-method/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/on-computed-name-method/expected.json index 7e9968743f54..0abd604dcf39 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/on-computed-name-method/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/on-computed-name-method/expected.json @@ -148,7 +148,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/set-decorator/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/set-decorator/expected.json index 03fe0b732c90..90cf5e8b0367 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/set-decorator/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/set-decorator/expected.json @@ -145,7 +145,6 @@ "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/decorators-2/static-method/expected.json b/packages/babylon/test/fixtures/experimental/decorators-2/static-method/expected.json index 43de7c771cc7..79bd82fd29a6 100644 --- a/packages/babylon/test/fixtures/experimental/decorators-2/static-method/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators-2/static-method/expected.json @@ -124,7 +124,6 @@ } ], "static": true, - "computed": false, "key": { "type": "Identifier", "start": 28, @@ -142,10 +141,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/class-decorator-getter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/class-decorator-getter/expected.json index f8c9ea1a4174..eae716dff63d 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/class-decorator-getter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/class-decorator-getter/expected.json @@ -124,7 +124,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -142,10 +141,10 @@ }, "name": "bar" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/class-decorator-setter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/class-decorator-setter/expected.json index 54943162d150..6787d02b9866 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/class-decorator-setter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/class-decorator-setter/expected.json @@ -124,7 +124,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -142,10 +141,10 @@ }, "name": "bar" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/decorators/class-decorators-multiple/expected.json b/packages/babylon/test/fixtures/experimental/decorators/class-decorators-multiple/expected.json index 2a5f2b5987e2..ebcbd85f3d3c 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/class-decorators-multiple/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/class-decorators-multiple/expected.json @@ -156,7 +156,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -174,10 +173,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/class-method-parameter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/class-method-parameter/expected.json index 4fa42e9a7017..63933c49d666 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/class-method-parameter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/class-method-parameter/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -274,7 +273,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -292,6 +290,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/experimental/decorators/computed-member-expr-on-prop/expected.json b/packages/babylon/test/fixtures/experimental/decorators/computed-member-expr-on-prop/expected.json index 89b5631e8236..0064500c2d5b 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/computed-member-expr-on-prop/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/computed-member-expr-on-prop/expected.json @@ -157,7 +157,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -175,6 +174,7 @@ }, "name": "a" }, + "computed": false, "value": { "type": "NumericLiteral", "start": 28, diff --git a/packages/babylon/test/fixtures/experimental/decorators/computed-member-expression/expected.json b/packages/babylon/test/fixtures/experimental/decorators/computed-member-expression/expected.json index babebd47ef59..bf99b7432094 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/computed-member-expression/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/computed-member-expression/expected.json @@ -157,7 +157,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -175,10 +174,10 @@ }, "name": "abc" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/export-default-declaration-function-declaration-parameter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/export-default-declaration-function-declaration-parameter/expected.json index e52e8cbb6451..1297f4920fb5 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/export-default-declaration-function-declaration-parameter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/export-default-declaration-function-declaration-parameter/expected.json @@ -74,7 +74,6 @@ "name": "func" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -237,7 +236,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 46, @@ -255,6 +253,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/experimental/decorators/export-default-with-nested-class/expected.json b/packages/babylon/test/fixtures/experimental/decorators/export-default-with-nested-class/expected.json index 51940d688de6..c247e9e09fe6 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/export-default-with-nested-class/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/export-default-with-nested-class/expected.json @@ -138,7 +138,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 54, @@ -156,10 +155,10 @@ }, "name": "makeNestedClass" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/function-declaration-parameter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/function-declaration-parameter/expected.json index 2c9ec156dd2c..907c3b783bb6 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/function-declaration-parameter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/function-declaration-parameter/expected.json @@ -60,7 +60,6 @@ "name": "func" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -223,7 +222,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 31, @@ -241,6 +239,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/experimental/decorators/function-expression-parameter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/function-expression-parameter/expected.json index 32b529a6649a..4e6198ddf790 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/function-expression-parameter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/function-expression-parameter/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -253,7 +252,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 40, @@ -271,6 +269,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/experimental/decorators/method-decorator/expected.json b/packages/babylon/test/fixtures/experimental/decorators/method-decorator/expected.json index 0f924d4cca13..95acd52c44b5 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/method-decorator/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/method-decorator/expected.json @@ -124,7 +124,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -142,10 +141,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/decorators/object-decorator/expected.json b/packages/babylon/test/fixtures/experimental/decorators/object-decorator/expected.json index d0c0ff0180c2..8ceeef6f0ef4 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/object-decorator/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/object-decorator/expected.json @@ -153,7 +153,6 @@ } ], "method": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -171,6 +170,7 @@ }, "name": "foo" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/experimental/decorators/object-method-parameter/expected.json b/packages/babylon/test/fixtures/experimental/decorators/object-method-parameter/expected.json index d0ec8b529578..90ccc20f0208 100644 --- a/packages/babylon/test/fixtures/experimental/decorators/object-method-parameter/expected.json +++ b/packages/babylon/test/fixtures/experimental/decorators/object-method-parameter/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -122,10 +121,10 @@ }, "name": "method" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -288,7 +287,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 38, @@ -306,6 +304,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", diff --git a/packages/babylon/test/fixtures/experimental/do-expressions/with-jsx/expected.json b/packages/babylon/test/fixtures/experimental/do-expressions/with-jsx/expected.json index 0096627dd9cb..8f6e605515d3 100644 --- a/packages/babylon/test/fixtures/experimental/do-expressions/with-jsx/expected.json +++ b/packages/babylon/test/fixtures/experimental/do-expressions/with-jsx/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/dynamic-import/generator/expected.json b/packages/babylon/test/fixtures/experimental/dynamic-import/generator/expected.json index e2aff25e733b..ff3147a217a3 100644 --- a/packages/babylon/test/fixtures/experimental/dynamic-import/generator/expected.json +++ b/packages/babylon/test/fixtures/experimental/dynamic-import/generator/expected.json @@ -60,7 +60,6 @@ "name": "a" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/dynamic-import/inside-function/expected.json b/packages/babylon/test/fixtures/experimental/dynamic-import/inside-function/expected.json index e677f47a4e3e..2ea3c7fb5082 100644 --- a/packages/babylon/test/fixtures/experimental/dynamic-import/inside-function/expected.json +++ b/packages/babylon/test/fixtures/experimental/dynamic-import/inside-function/expected.json @@ -60,7 +60,6 @@ "name": "loadImport" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/dynamic-import/top-level/expected.json b/packages/babylon/test/fixtures/experimental/dynamic-import/top-level/expected.json index 3fe68aabcc64..44349a3fa635 100644 --- a/packages/babylon/test/fixtures/experimental/dynamic-import/top-level/expected.json +++ b/packages/babylon/test/fixtures/experimental/dynamic-import/top-level/expected.json @@ -418,7 +418,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/dynamic-import/variable-arguments/expected.json b/packages/babylon/test/fixtures/experimental/dynamic-import/variable-arguments/expected.json index 9b9dc9d289a0..a05af57a703f 100644 --- a/packages/babylon/test/fixtures/experimental/dynamic-import/variable-arguments/expected.json +++ b/packages/babylon/test/fixtures/experimental/dynamic-import/variable-arguments/expected.json @@ -225,7 +225,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-asi-funciton-declaration/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-asi-funciton-declaration/expected.json index 53c4079fde9f..7c2f1a8cdbd5 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-asi-funciton-declaration/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-asi-funciton-declaration/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-call-statement/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-call-statement/expected.json index 0edf1696eb76..20907c338052 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-call-statement/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-call-statement/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-call/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-call/expected.json index 968f3af3d4c8..6053afed26e6 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-call/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-call/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-if-statement/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-if-statement/expected.json index 7ed356f20a3c..97299864d84a 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-if-statement/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-if-statement/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-inside-generator/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-inside-generator/expected.json index bfacd5b28e22..6d03a012abb6 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-inside-generator/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-inside-generator/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/function-sent/enabled-statement/expected.json b/packages/babylon/test/fixtures/experimental/function-sent/enabled-statement/expected.json index fd3ef8617be1..1fafacae8751 100644 --- a/packages/babylon/test/fixtures/experimental/function-sent/enabled-statement/expected.json +++ b/packages/babylon/test/fixtures/experimental/function-sent/enabled-statement/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/object-rest-spread/10/expected.json b/packages/babylon/test/fixtures/experimental/object-rest-spread/10/expected.json index 169e1ee02d12..8f25c2d95d9b 100644 --- a/packages/babylon/test/fixtures/experimental/object-rest-spread/10/expected.json +++ b/packages/babylon/test/fixtures/experimental/object-rest-spread/10/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 6, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -142,7 +142,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -160,6 +159,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/experimental/object-rest-spread/2/expected.json b/packages/babylon/test/fixtures/experimental/object-rest-spread/2/expected.json index f03eed64e8a0..7e5f5f53f8ea 100644 --- a/packages/babylon/test/fixtures/experimental/object-rest-spread/2/expected.json +++ b/packages/babylon/test/fixtures/experimental/object-rest-spread/2/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/experimental/object-rest-spread/3/expected.json b/packages/babylon/test/fixtures/experimental/object-rest-spread/3/expected.json index 4de6807268e0..5e11b8cf1a3b 100644 --- a/packages/babylon/test/fixtures/experimental/object-rest-spread/3/expected.json +++ b/packages/babylon/test/fixtures/experimental/object-rest-spread/3/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -109,6 +107,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/experimental/object-rest-spread/5/expected.json b/packages/babylon/test/fixtures/experimental/object-rest-spread/5/expected.json index edfb47e37b56..471b7c59d63c 100644 --- a/packages/babylon/test/fixtures/experimental/object-rest-spread/5/expected.json +++ b/packages/babylon/test/fixtures/experimental/object-rest-spread/5/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -122,6 +121,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/experimental/object-rest-spread/6/expected.json b/packages/babylon/test/fixtures/experimental/object-rest-spread/6/expected.json index b6b781d209bc..53ef3f7245d6 100644 --- a/packages/babylon/test/fixtures/experimental/object-rest-spread/6/expected.json +++ b/packages/babylon/test/fixtures/experimental/object-rest-spread/6/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -90,6 +89,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -159,7 +159,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -177,6 +176,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -246,7 +246,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 20, @@ -264,6 +263,7 @@ }, "name": "c" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/experimental/optional-chaining/class-contructor-call/expected.json b/packages/babylon/test/fixtures/experimental/optional-chaining/class-contructor-call/expected.json index cd91d5b86eb2..49911ff155e3 100644 --- a/packages/babylon/test/fixtures/experimental/optional-chaining/class-contructor-call/expected.json +++ b/packages/babylon/test/fixtures/experimental/optional-chaining/class-contructor-call/expected.json @@ -73,8 +73,8 @@ }, "name": "C" }, - "arguments": [], - "optional": true + "optional": true, + "arguments": [] } }, { @@ -122,6 +122,7 @@ }, "name": "C" }, + "optional": true, "arguments": [ { "type": "Identifier", @@ -157,8 +158,7 @@ }, "name": "b" } - ], - "optional": true + ] } }, { @@ -220,7 +220,6 @@ }, "name": "B" }, - "optional": true, "property": { "type": "Identifier", "start": 33, @@ -238,10 +237,11 @@ }, "name": "C" }, - "computed": false + "computed": false, + "optional": true }, - "arguments": [], - "optional": true + "optional": true, + "arguments": [] } }, { @@ -303,7 +303,6 @@ }, "name": "B" }, - "optional": true, "property": { "type": "Identifier", "start": 47, @@ -321,8 +320,10 @@ }, "name": "C" }, - "computed": false + "computed": false, + "optional": true }, + "optional": true, "arguments": [ { "type": "Identifier", @@ -358,8 +359,7 @@ }, "name": "b" } - ], - "optional": true + ] } }, { @@ -421,7 +421,6 @@ }, "name": "B" }, - "optional": true, "property": { "type": "Identifier", "start": 65, @@ -439,7 +438,8 @@ }, "name": "C" }, - "computed": false + "computed": false, + "optional": true }, "arguments": [] } @@ -447,4 +447,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/optional-chaining/conditional-decimal/expected.json b/packages/babylon/test/fixtures/experimental/optional-chaining/conditional-decimal/expected.json index a7c530f5429f..70feddd253ce 100644 --- a/packages/babylon/test/fixtures/experimental/optional-chaining/conditional-decimal/expected.json +++ b/packages/babylon/test/fixtures/experimental/optional-chaining/conditional-decimal/expected.json @@ -203,4 +203,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/optional-chaining/function-call/expected.json b/packages/babylon/test/fixtures/experimental/optional-chaining/function-call/expected.json index 6b21fceb0815..92e841058e98 100644 --- a/packages/babylon/test/fixtures/experimental/optional-chaining/function-call/expected.json +++ b/packages/babylon/test/fixtures/experimental/optional-chaining/function-call/expected.json @@ -220,7 +220,6 @@ }, "name": "a" }, - "optional": true, "property": { "type": "Identifier", "start": 27, @@ -238,7 +237,8 @@ }, "name": "func" }, - "computed": false + "computed": false, + "optional": true }, "arguments": [], "optional": true @@ -303,7 +303,6 @@ }, "name": "a" }, - "optional": true, "property": { "type": "Identifier", "start": 40, @@ -321,7 +320,8 @@ }, "name": "func" }, - "computed": false + "computed": false, + "optional": true }, "arguments": [ { @@ -365,4 +365,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/optional-chaining/member-access/expected.json b/packages/babylon/test/fixtures/experimental/optional-chaining/member-access/expected.json index f3e110ea1457..db9bb6bc0d18 100644 --- a/packages/babylon/test/fixtures/experimental/optional-chaining/member-access/expected.json +++ b/packages/babylon/test/fixtures/experimental/optional-chaining/member-access/expected.json @@ -90,8 +90,8 @@ }, "name": "bar" }, - "optional": true, - "computed": false + "computed": false, + "optional": true } }, { @@ -170,8 +170,8 @@ }, "name": "bar" }, - "optional": true, - "computed": false + "computed": false, + "optional": true }, "property": { "type": "Identifier", @@ -190,8 +190,8 @@ }, "name": "baz" }, - "optional": true, - "computed": false + "computed": false, + "optional": true } } ], diff --git a/packages/babylon/test/fixtures/experimental/pipeline-operator/chain/expected.json b/packages/babylon/test/fixtures/experimental/pipeline-operator/chain/expected.json index 70ad3a44d732..f7ce4802a1b8 100644 --- a/packages/babylon/test/fixtures/experimental/pipeline-operator/chain/expected.json +++ b/packages/babylon/test/fixtures/experimental/pipeline-operator/chain/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/pipeline-operator/precedence/expected.json b/packages/babylon/test/fixtures/experimental/pipeline-operator/precedence/expected.json index 054a9a9dadb7..3bd3f8913c6a 100644 --- a/packages/babylon/test/fixtures/experimental/pipeline-operator/precedence/expected.json +++ b/packages/babylon/test/fixtures/experimental/pipeline-operator/precedence/expected.json @@ -269,4 +269,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/pipeline-operator/with-arrow/expected.json b/packages/babylon/test/fixtures/experimental/pipeline-operator/with-arrow/expected.json index 1a3fed18dce9..979db6b9e659 100644 --- a/packages/babylon/test/fixtures/experimental/pipeline-operator/with-arrow/expected.json +++ b/packages/babylon/test/fixtures/experimental/pipeline-operator/with-arrow/expected.json @@ -93,7 +93,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/experimental/throw-expression/comma/expected.json b/packages/babylon/test/fixtures/experimental/throw-expression/comma/expected.json index 77b94cdde907..82ce22ff1e96 100644 --- a/packages/babylon/test/fixtures/experimental/throw-expression/comma/expected.json +++ b/packages/babylon/test/fixtures/experimental/throw-expression/comma/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/throw-expression/expression/expected.json b/packages/babylon/test/fixtures/experimental/throw-expression/expression/expected.json index 14f3d23c12e2..a0815832770a 100644 --- a/packages/babylon/test/fixtures/experimental/throw-expression/expression/expected.json +++ b/packages/babylon/test/fixtures/experimental/throw-expression/expression/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/throw-expression/logical/expected.json b/packages/babylon/test/fixtures/experimental/throw-expression/logical/expected.json index 9567c711e403..3d656ed8d8c0 100644 --- a/packages/babylon/test/fixtures/experimental/throw-expression/logical/expected.json +++ b/packages/babylon/test/fixtures/experimental/throw-expression/logical/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/throw-expression/statement/expected.json b/packages/babylon/test/fixtures/experimental/throw-expression/statement/expected.json index 35c16d08380b..d9c37d2029e5 100644 --- a/packages/babylon/test/fixtures/experimental/throw-expression/statement/expected.json +++ b/packages/babylon/test/fixtures/experimental/throw-expression/statement/expected.json @@ -60,7 +60,6 @@ "name": "test" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/43/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/43/expected.json index b5e0eed1eeb3..9dd5e9905e26 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/43/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/43/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,6 +107,7 @@ }, "name": "foo" }, + "computed": false, "value": { "type": "StringLiteral", "start": 18, diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/44/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/44/expected.json index 0bd96ae88cd6..4025c616373e 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/44/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/44/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,6 +107,7 @@ }, "name": "foo" }, + "computed": false, "value": null } ] diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/45/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/45/expected.json index 9c603e0ed15d..47363a38641c 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/45/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/45/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -108,6 +107,7 @@ }, "name": "foo" }, + "computed": false, "value": null } ] diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/46/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/46/expected.json index 221e6c8c0aca..ce6d78e0a7fc 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/46/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/46/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -108,6 +107,7 @@ }, "name": "foo" }, + "computed": false, "value": { "type": "StringLiteral", "start": 25, diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/47/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/47/expected.json index 63eed136a324..37fe3d9890ed 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/47/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/47/expected.json @@ -124,7 +124,6 @@ } ], "static": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -142,6 +141,7 @@ }, "name": "foo" }, + "computed": false, "value": { "type": "StringLiteral", "start": 23, diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/48/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/48/expected.json index 126bbc97f99e..1c84e7bbb569 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/48/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/48/expected.json @@ -124,7 +124,6 @@ } ], "static": true, - "computed": false, "key": { "type": "Identifier", "start": 24, @@ -142,6 +141,7 @@ }, "name": "foo" }, + "computed": false, "value": { "type": "StringLiteral", "start": 30, diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/49/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/49/expected.json index a222166ebec5..b5a8d458eb51 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/49/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/49/expected.json @@ -138,7 +138,6 @@ } ], "method": false, - "computed": false, "key": { "type": "Identifier", "start": 17, @@ -156,6 +155,7 @@ }, "name": "bar" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/62/expected.json b/packages/babylon/test/fixtures/experimental/uncategorised/62/expected.json index 7ca7768fc9d5..9c37f72e9c2f 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/62/expected.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/62/expected.json @@ -105,7 +105,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_03/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_03/expected.json index ce0e1324e45f..d5f57fab6eeb 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_03/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_03/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_04/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_04/expected.json index 2baac05e214d..a32abb24483d 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_04/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_04/expected.json @@ -153,7 +153,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_05/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_05/expected.json index cf7d1a24f77b..0e9d4cc36658 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_05/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_05/expected.json @@ -177,7 +177,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_13/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_13/expected.json index ad9ad5c63001..9714ca6255af 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_13/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-no-parens-types/good_13/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -149,4 +148,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_10/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_10/expected.json index acd3af9b78fb..684ce54799d2 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_10/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_10/expected.json @@ -193,7 +193,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_11/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_11/expected.json index 794fbace18ad..2baa8d8eae89 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_11/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_11/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_12/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_12/expected.json index c70e9e0baeb2..db335e4d45b4 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_12/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_12/expected.json @@ -153,7 +153,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_13/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_13/expected.json index dd51dd08b783..9e4ef9fa83a3 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_13/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_13/expected.json @@ -177,7 +177,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_14/expected.json b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_14/expected.json index 18444090169f..897affda5981 100644 --- a/packages/babylon/test/fixtures/flow/anonymous-function-types/good_14/expected.json +++ b/packages/babylon/test/fixtures/flow/anonymous-function-types/good_14/expected.json @@ -163,7 +163,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/bounded-polymorphism/2/expected.json b/packages/babylon/test/fixtures/flow/bounded-polymorphism/2/expected.json index e7f5ee680d78..096f90c649dd 100644 --- a/packages/babylon/test/fixtures/flow/bounded-polymorphism/2/expected.json +++ b/packages/babylon/test/fixtures/flow/bounded-polymorphism/2/expected.json @@ -60,7 +60,6 @@ "name": "bar" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json b/packages/babylon/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json index 2d268761f80d..11506344afd7 100644 --- a/packages/babylon/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json +++ b/packages/babylon/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,6 +107,7 @@ }, "name": "constructor" }, + "computed": false, "variance": null, "typeAnnotation": { "type": "TypeAnnotation", diff --git a/packages/babylon/test/fixtures/flow/classes/constructor-with-class-prop-plugin/expected.json b/packages/babylon/test/fixtures/flow/classes/constructor-with-class-prop-plugin/expected.json index 661a2f582840..dd1ca6a3f921 100644 --- a/packages/babylon/test/fixtures/flow/classes/constructor-with-class-prop-plugin/expected.json +++ b/packages/babylon/test/fixtures/flow/classes/constructor-with-class-prop-plugin/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/comment/spread/expected.json b/packages/babylon/test/fixtures/flow/comment/spread/expected.json index 313e33c4acda..f2a0db913c2b 100644 --- a/packages/babylon/test/fixtures/flow/comment/spread/expected.json +++ b/packages/babylon/test/fixtures/flow/comment/spread/expected.json @@ -61,7 +61,6 @@ "leadingComments": null }, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -141,7 +140,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/def-site-variance/1/expected.json b/packages/babylon/test/fixtures/flow/def-site-variance/1/expected.json index 2ee9a406c5f7..5f77fd7ae973 100644 --- a/packages/babylon/test/fixtures/flow/def-site-variance/1/expected.json +++ b/packages/babylon/test/fixtures/flow/def-site-variance/1/expected.json @@ -190,7 +190,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/literal-types/string-double/expected.json b/packages/babylon/test/fixtures/flow/literal-types/string-double/expected.json index 010fa630f44b..f401a068a59e 100644 --- a/packages/babylon/test/fixtures/flow/literal-types/string-double/expected.json +++ b/packages/babylon/test/fixtures/flow/literal-types/string-double/expected.json @@ -60,7 +60,6 @@ "name": "createElement" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/literal-types/string-single/expected.json b/packages/babylon/test/fixtures/flow/literal-types/string-single/expected.json index bd14fc10acac..daadb6c9ec01 100644 --- a/packages/babylon/test/fixtures/flow/literal-types/string-single/expected.json +++ b/packages/babylon/test/fixtures/flow/literal-types/string-single/expected.json @@ -60,7 +60,6 @@ "name": "createElement" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/optional-type/1/expected.json b/packages/babylon/test/fixtures/flow/optional-type/1/expected.json index da459cf18d35..a990fa57dc13 100644 --- a/packages/babylon/test/fixtures/flow/optional-type/1/expected.json +++ b/packages/babylon/test/fixtures/flow/optional-type/1/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/optional-type/3/expected.json b/packages/babylon/test/fixtures/flow/optional-type/3/expected.json index 338ba4dbb9ea..d9660e597643 100644 --- a/packages/babylon/test/fixtures/flow/optional-type/3/expected.json +++ b/packages/babylon/test/fixtures/flow/optional-type/3/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/optional-type/4/expected.json b/packages/babylon/test/fixtures/flow/optional-type/4/expected.json index 8a9c1e5b995a..c1e981bffe6f 100644 --- a/packages/babylon/test/fixtures/flow/optional-type/4/expected.json +++ b/packages/babylon/test/fixtures/flow/optional-type/4/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/predicates/2/expected.json b/packages/babylon/test/fixtures/flow/predicates/2/expected.json index 79772c24176d..2c82788abc6e 100644 --- a/packages/babylon/test/fixtures/flow/predicates/2/expected.json +++ b/packages/babylon/test/fixtures/flow/predicates/2/expected.json @@ -106,7 +106,6 @@ "returnType": null, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/predicates/3/expected.json b/packages/babylon/test/fixtures/flow/predicates/3/expected.json index 85e6105aca70..942e6dcdf904 100644 --- a/packages/babylon/test/fixtures/flow/predicates/3/expected.json +++ b/packages/babylon/test/fixtures/flow/predicates/3/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-166/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-166/expected.json index 8d34b9806976..a1ccf297cde3 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-166/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-166/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-2083/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-2083/expected.json index ff7b01c2f593..a9058d0c71fc 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-2083/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-2083/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "foo" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -321,7 +320,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 114, @@ -339,10 +337,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-2493/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-2493/expected.json index 9e890e3ca328..ef69096e0392 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-2493/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-2493/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-321/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-321/expected.json index b9585cf17ac6..cbc65da5aa41 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-321/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-321/expected.json @@ -254,7 +254,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -540,7 +539,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-336/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-336/expected.json index 3c169bcd542d..656a7e4cade0 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-336/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-336/expected.json @@ -169,7 +169,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-58/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-58/expected.json index 44381d5f03e4..ea2faebfbc29 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-58/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-58/expected.json @@ -111,7 +111,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -300,7 +299,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -527,7 +525,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -715,7 +712,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -775,7 +771,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -980,7 +975,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -1030,7 +1024,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -1303,7 +1296,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -1581,7 +1573,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -1862,7 +1853,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2085,7 +2075,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2189,7 +2178,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2410,7 +2398,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2496,7 +2483,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2691,7 +2677,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -2777,7 +2762,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3001,7 +2985,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3094,7 +3077,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3250,7 +3232,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3309,7 +3290,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3496,7 +3476,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3555,7 +3534,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3778,7 +3756,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3815,7 +3792,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -3875,7 +3851,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4062,7 +4037,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4121,7 +4095,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4158,7 +4131,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4219,7 +4191,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4493,7 +4464,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4733,7 +4703,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -4937,7 +4906,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { @@ -5126,7 +5094,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -5183,7 +5150,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -5323,7 +5289,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { @@ -5360,7 +5325,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -5420,7 +5384,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -5644,7 +5607,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -5872,7 +5834,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-593/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-593/expected.json index 03be1e51675f..5b1ebef2fb89 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-593/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-593/expected.json @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/regression/issue-92/expected.json b/packages/babylon/test/fixtures/flow/regression/issue-92/expected.json index 5a037f32c33b..39f20b48ad36 100644 --- a/packages/babylon/test/fixtures/flow/regression/issue-92/expected.json +++ b/packages/babylon/test/fixtures/flow/regression/issue-92/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/trailing-function-commas-type/1/expected.json b/packages/babylon/test/fixtures/flow/trailing-function-commas-type/1/expected.json index 806ebcd4b71b..c74f63c116c3 100644 --- a/packages/babylon/test/fixtures/flow/trailing-function-commas-type/1/expected.json +++ b/packages/babylon/test/fixtures/flow/trailing-function-commas-type/1/expected.json @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/1/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/1/expected.json index ae49055627ec..491625a0952c 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/1/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/1/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/10/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/10/expected.json index 9e46f1b9bfca..c60dca869abd 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/10/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/10/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/100/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/100/expected.json index 3a0d91cfaa8c..04a02425621d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/100/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/100/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,10 +107,10 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/101/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/101/expected.json index aaf434545594..20097db468a0 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/101/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/101/expected.json @@ -122,7 +122,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/102/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/102/expected.json index e48ab5b50066..a99c108857b8 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/102/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/102/expected.json @@ -138,7 +138,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/103/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/103/expected.json index fd5baadca16f..746377acc89d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/103/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/103/expected.json @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/104/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/104/expected.json index 6ff300d7c796..c90378eba697 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/104/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/104/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,6 +107,7 @@ }, "name": "get" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -145,7 +145,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -231,7 +230,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -249,6 +247,7 @@ }, "name": "set" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -286,7 +285,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/105/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/105/expected.json index a8d2cfdcfd35..b74182b7046f 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/105/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/105/expected.json @@ -60,7 +60,6 @@ "name": "g" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/107/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/107/expected.json index c077e69e8ded..d0b1887a69c7 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/107/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/107/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -137,7 +136,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -155,6 +153,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/108/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/108/expected.json index 9e8df837d40e..33daa2c034c1 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/108/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/108/expected.json @@ -241,7 +241,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 39, @@ -259,6 +258,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -296,7 +296,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 45, @@ -314,6 +313,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", @@ -555,7 +555,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 97, @@ -573,6 +572,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -610,7 +610,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 103, @@ -628,6 +627,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", @@ -1076,7 +1076,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 193, @@ -1094,6 +1093,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectExpression", @@ -1125,7 +1125,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 198, @@ -1143,6 +1142,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -1180,7 +1180,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 204, @@ -1198,6 +1197,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", @@ -1238,7 +1238,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 216, @@ -1256,6 +1255,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "BooleanLiteral", @@ -1600,7 +1600,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 286, @@ -1618,6 +1617,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectExpression", @@ -1649,7 +1649,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 291, @@ -1667,6 +1666,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -1704,7 +1704,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 297, @@ -1722,6 +1721,7 @@ }, "name": "y" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", @@ -1762,7 +1762,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 309, @@ -1780,6 +1779,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "BooleanLiteral", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/11/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/11/expected.json index 10d10e3696ee..caf6d560dacb 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/11/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/11/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/118/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/118/expected.json index 86dba55ab3c9..ac1c19ce078e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/118/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/118/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,6 +107,7 @@ }, "name": "p" }, + "computed": false, "variance": { "type": "Variance", "start": 9, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/119/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/119/expected.json index b97562426680..7da63b4458cf 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/119/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/119/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -108,6 +107,7 @@ }, "name": "p" }, + "computed": false, "variance": { "type": "Variance", "start": 9, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/12/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/12/expected.json index 22f2c3c9df40..2b934f0b63c6 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/12/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/12/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/13/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/13/expected.json index 3a78824d2220..82d29632c07b 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/13/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/13/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/130/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/130/expected.json index 15ad52dcb9f8..434225d7a45d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/130/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/130/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/14/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/14/expected.json index 807aa5b5a4db..b1c54261a323 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/14/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/14/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/15/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/15/expected.json index 9d52a5cde354..e3cd131aae5a 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/15/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/15/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/16/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/16/expected.json index 51bc95587fdf..501f89e1498f 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/16/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/16/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/17/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/17/expected.json index ca24d0c90a4c..ee8e99410c94 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/17/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/17/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/18/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/18/expected.json index 56d24c9789f3..1c1d05ac165d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/18/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/18/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/19/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/19/expected.json index 6155d2e0f532..7c154441d388 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/19/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/19/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/2/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/2/expected.json index 39c2e55c4f37..e1b3a7657f90 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/2/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/2/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/20/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/20/expected.json index 9290cd973c84..98598a58640b 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/20/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/20/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -122,11 +121,11 @@ }, "name": "fooProp" }, + "computed": false, "kind": "set", "variance": null, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/21/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/21/expected.json index ea57e9849976..f62b2f1b10c2 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/21/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/21/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -122,11 +121,11 @@ }, "name": "fooProp" }, + "computed": false, "kind": "set", "variance": null, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/22/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/22/expected.json index e9eb17db9db5..49ef8f8f3b24 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/22/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/22/expected.json @@ -104,7 +104,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 7, @@ -122,11 +121,11 @@ }, "name": "fooProp" }, + "computed": false, "kind": "get", "variance": null, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/23/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/23/expected.json index 590ac53b43c6..ee3d4f1448c2 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/23/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/23/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -122,10 +121,10 @@ }, "name": "id" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/24/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/24/expected.json index b42844e0b687..03799125274c 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/24/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/24/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 4, @@ -122,10 +121,10 @@ }, "name": "id" }, + "computed": false, "kind": "method", "id": null, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/25/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/25/expected.json index b3c441c97f25..0f108626ddec 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/25/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/25/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 9, @@ -122,10 +121,10 @@ }, "name": "id" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/26/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/26/expected.json index 920a06a06bc9..fe2819b2e90e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/26/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/26/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "NumericLiteral", "start": 3, @@ -125,10 +124,10 @@ }, "value": 123 }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/27/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/27/expected.json index 07d8b8fd2d67..bfa442c30039 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/27/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/27/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -108,10 +107,10 @@ }, "name": "fooProp" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/28/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/28/expected.json index 4dc6a8495b5d..f25748ad0c3b 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/28/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/28/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -108,10 +107,10 @@ }, "name": "fooProp" }, + "computed": false, "kind": "set", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/29/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/29/expected.json index 14dda0a969d0..48fafbaec7be 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/29/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/29/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -108,10 +107,10 @@ }, "name": "fooProp" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/3/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/3/expected.json index ad0533f54514..8d8fdde79554 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/3/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/3/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/4/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/4/expected.json index 5535d3d0deb8..30a66bd5fc2a 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/4/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/4/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/5/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/5/expected.json index 17d938d5d616..d197814ee7af 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/5/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/5/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/50/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/50/expected.json index 2682c49d27bf..fde771d294e7 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/50/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/50/expected.json @@ -124,7 +124,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -142,6 +141,7 @@ }, "name": "bar" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -179,7 +179,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "predicate": null, diff --git a/packages/babylon/test/fixtures/flow/type-annotations/51/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/51/expected.json index 333398285e3e..fc6ea5922271 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/51/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/51/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "StringLiteral", "start": 12, @@ -111,6 +110,7 @@ }, "value": "bar" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -148,7 +148,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/52/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/52/expected.json index ccd862000e31..fd58f7d1bb99 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/52/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/52/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/53/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/53/expected.json index c07a57c00760..b5a5c92dbce6 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/53/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/53/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,6 +107,7 @@ }, "name": "prop1" }, + "computed": false, "variance": null, "typeAnnotation": { "type": "TypeAnnotation", @@ -156,7 +156,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -174,6 +173,7 @@ }, "name": "prop2" }, + "computed": false, "variance": null, "typeAnnotation": { "type": "TypeAnnotation", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/54/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/54/expected.json index 4090718b158d..0d68f4654628 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/54/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/54/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -108,6 +107,7 @@ }, "name": "prop1" }, + "computed": false, "variance": null, "typeAnnotation": { "type": "TypeAnnotation", @@ -156,7 +156,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 33, @@ -174,6 +173,7 @@ }, "name": "prop2" }, + "computed": false, "variance": null, "typeAnnotation": { "type": "TypeAnnotation", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/56/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/56/expected.json index e21a5ba16df0..ef0f6bab8781 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/56/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/56/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "concat" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/6/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/6/expected.json index 9e785ac1c7e5..371509c8bb43 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/6/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/6/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/60/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/60/expected.json index 8dfba881efdd..984fb4515b72 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/60/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/60/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -245,7 +245,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -263,6 +262,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/61/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/61/expected.json index 37f870ae0db5..d5033f3c842e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/61/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/61/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 5, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -245,7 +245,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -263,6 +262,7 @@ }, "name": "x" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/63/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/63/expected.json index 7b384938b2c6..e985f1ee8ce7 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/63/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/63/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -93,7 +92,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -111,6 +109,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/64/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/64/expected.json index fe08875e3339..bcb0b2b2dd3c 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/64/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/64/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/65/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/65/expected.json index 4b88153abba6..5a5929a9e38b 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/65/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/65/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/66/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/66/expected.json index e384b2d0cdf9..81939ad4be43 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/66/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/66/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/67/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/67/expected.json index 5d9f3d2448b0..014e59edaf16 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/67/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/67/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/68/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/68/expected.json index 68c74a61bf9c..68e8a6187398 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/68/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/68/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/69/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/69/expected.json index 9a862eea6851..855b83d20c41 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/69/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/69/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/7/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/7/expected.json index 3233cf98e60d..a9888e26152e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/7/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/7/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/70/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/70/expected.json index 349a54e218bf..772d25698ffe 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/70/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/70/expected.json @@ -120,7 +120,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/71/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/71/expected.json index 635549a0b65d..e76a0f8b8c45 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/71/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/71/expected.json @@ -120,7 +120,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/72/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/72/expected.json index c43076a1e5a2..4be3d18560af 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/72/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/72/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/73/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/73/expected.json index 84c65077eca3..983b45ca128c 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/73/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/73/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/74/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/74/expected.json index a3fcb6dbebdc..2df69323881e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/74/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/74/expected.json @@ -135,7 +135,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/75/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/75/expected.json index 7c9d750b34eb..34a6d23e141d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/75/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/75/expected.json @@ -120,7 +120,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/76/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/76/expected.json index 0da85e881f1a..6b409a54b3f0 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/76/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/76/expected.json @@ -120,7 +120,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/77/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/77/expected.json index 04a3bb79021d..8653428f7eac 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/77/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/77/expected.json @@ -134,7 +134,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/79/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/79/expected.json index eac4bddf31c7..faff277cf4fc 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/79/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/79/expected.json @@ -152,7 +152,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/8/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/8/expected.json index 2d082a8233a8..6ea7abed955e 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/8/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/8/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/80/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/80/expected.json index a86ca1518541..6d8716a79bd8 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/80/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/80/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/9/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/9/expected.json index a966a6475618..e5d8f59a063d 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/9/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/9/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/97/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/97/expected.json index a65d8fd5519c..0fb657364161 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/97/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/97/expected.json @@ -72,7 +72,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -90,6 +89,7 @@ }, "name": "f" }, + "computed": false, "shorthand": false, "value": { "type": "FunctionExpression", @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TypeParameterDeclaration", diff --git a/packages/babylon/test/fixtures/flow/type-annotations/99/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/99/expected.json index ed05f4b8f0bc..d294a2bad50b 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/99/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/99/expected.json @@ -107,7 +107,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/arrow-func-return-newline/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/arrow-func-return-newline/expected.json index 10e6b1850a36..d751c6ada166 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/arrow-func-return-newline/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/arrow-func-return-newline/expected.json @@ -121,7 +121,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json index a5657a79d579..ae95ed1a0030 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json @@ -151,7 +151,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/function-expression-inside-jsx-attr/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/function-expression-inside-jsx-attr/expected.json index 75d1eb85f577..db629db9c3e1 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/function-expression-inside-jsx-attr/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/function-expression-inside-jsx-attr/expected.json @@ -131,7 +131,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-annotations/with-default-valid/expected.json b/packages/babylon/test/fixtures/flow/type-annotations/with-default-valid/expected.json index 49e6fd1fae2d..f23e477ef0b1 100644 --- a/packages/babylon/test/fixtures/flow/type-annotations/with-default-valid/expected.json +++ b/packages/babylon/test/fixtures/flow/type-annotations/with-default-valid/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-generics/1/expected.json b/packages/babylon/test/fixtures/flow/type-generics/1/expected.json index 0efdcd90661e..0d2d8cf42559 100644 --- a/packages/babylon/test/fixtures/flow/type-generics/1/expected.json +++ b/packages/babylon/test/fixtures/flow/type-generics/1/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -123,7 +122,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 51, @@ -141,6 +139,7 @@ }, "name": "id" }, + "computed": false, "shorthand": false, "value": { "type": "ArrowFunctionExpression", @@ -207,7 +206,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-generics/2/expected.json b/packages/babylon/test/fixtures/flow/type-generics/2/expected.json index 07043bb8c916..ff620eb13a0f 100644 --- a/packages/babylon/test/fixtures/flow/type-generics/2/expected.json +++ b/packages/babylon/test/fixtures/flow/type-generics/2/expected.json @@ -139,7 +139,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-generics/async-arrow/expected.json b/packages/babylon/test/fixtures/flow/type-generics/async-arrow/expected.json index b4ae7a1225d2..48ac689619bd 100644 --- a/packages/babylon/test/fixtures/flow/type-generics/async-arrow/expected.json +++ b/packages/babylon/test/fixtures/flow/type-generics/async-arrow/expected.json @@ -56,10 +56,6 @@ "column": 28 } }, - "id": null, - "generator": false, - "expression": true, - "async": true, "typeParameters": { "type": "TypeParameterDeclaration", "start": 6, @@ -179,6 +175,9 @@ } } ], + "id": null, + "generator": false, + "async": true, "body": { "type": "Identifier", "start": 26, diff --git a/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_with_jsx/expected.json b/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_with_jsx/expected.json index 357be6ee1ee8..64edc57c027c 100644 --- a/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_with_jsx/expected.json +++ b/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_with_jsx/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -254,7 +252,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -391,7 +388,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_without_jsx/expected.json b/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_without_jsx/expected.json index 357be6ee1ee8..64edc57c027c 100644 --- a/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_without_jsx/expected.json +++ b/packages/babylon/test/fixtures/flow/type-parameter-declaration/arrow_without_jsx/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [], "body": { @@ -147,7 +146,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -254,7 +252,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -391,7 +388,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-parameter-declaration/class-method-reserved-word/expected.json b/packages/babylon/test/fixtures/flow/type-parameter-declaration/class-method-reserved-word/expected.json index a836b16d41a2..d53b916b1700 100644 --- a/packages/babylon/test/fixtures/flow/type-parameter-declaration/class-method-reserved-word/expected.json +++ b/packages/babylon/test/fixtures/flow/type-parameter-declaration/class-method-reserved-word/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 12, @@ -108,6 +107,7 @@ }, "name": "foobar" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -145,7 +145,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -181,7 +180,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -199,6 +197,7 @@ }, "name": "delete" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -236,7 +235,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -272,7 +270,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 46, @@ -290,6 +287,7 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -327,7 +325,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -363,7 +360,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 62, @@ -381,6 +377,7 @@ }, "name": "do" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -418,7 +415,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -454,7 +450,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 82, @@ -472,6 +467,7 @@ }, "name": "foobar" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -509,7 +505,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -545,7 +540,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 106, @@ -563,6 +557,7 @@ }, "name": "delete" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -600,7 +595,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -636,7 +630,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 130, @@ -654,6 +647,7 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -691,7 +685,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -727,7 +720,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 153, @@ -745,6 +737,7 @@ }, "name": "do" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TypeParameterDeclaration", @@ -782,7 +775,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-method-type-param-jsx/expected.json b/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-method-type-param-jsx/expected.json index cd52fb7e74f9..58ea586d7232 100644 --- a/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-method-type-param-jsx/expected.json +++ b/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-method-type-param-jsx/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -122,10 +121,10 @@ }, "name": "delete" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-reserved-word/expected.json b/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-reserved-word/expected.json index 934c0fddb325..12381a2e9773 100644 --- a/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-reserved-word/expected.json +++ b/packages/babylon/test/fixtures/flow/type-parameter-declaration/object-reserved-word/expected.json @@ -104,7 +104,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -122,10 +121,10 @@ }, "name": "foobar" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -195,7 +194,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 32, @@ -213,10 +211,10 @@ }, "name": "delete" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -286,7 +284,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 50, @@ -304,10 +301,10 @@ }, "name": "yield" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -377,7 +374,6 @@ } }, "method": true, - "computed": false, "key": { "type": "Identifier", "start": 67, @@ -395,10 +391,10 @@ }, "name": "do" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/flow/typecasts/2/expected.json b/packages/babylon/test/fixtures/flow/typecasts/2/expected.json index ac27cb40c43f..e0f4f47e44f3 100644 --- a/packages/babylon/test/fixtures/flow/typecasts/2/expected.json +++ b/packages/babylon/test/fixtures/flow/typecasts/2/expected.json @@ -86,7 +86,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 2, @@ -104,6 +103,7 @@ }, "name": "xxx" }, + "computed": false, "shorthand": false, "value": { "type": "NumericLiteral", @@ -141,7 +141,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 10, @@ -159,6 +158,7 @@ }, "name": "yyy" }, + "computed": false, "shorthand": false, "value": { "type": "StringLiteral", diff --git a/packages/babylon/test/fixtures/flow/typecasts/3/expected.json b/packages/babylon/test/fixtures/flow/typecasts/3/expected.json index b47396af29cb..b95e8cb512fd 100644 --- a/packages/babylon/test/fixtures/flow/typecasts/3/expected.json +++ b/packages/babylon/test/fixtures/flow/typecasts/3/expected.json @@ -72,7 +72,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/typecasts/yield-extra-parentheses/expected.json b/packages/babylon/test/fixtures/flow/typecasts/yield-extra-parentheses/expected.json index 75f6b756bf46..b1bbfe5c3f32 100644 --- a/packages/babylon/test/fixtures/flow/typecasts/yield-extra-parentheses/expected.json +++ b/packages/babylon/test/fixtures/flow/typecasts/yield-extra-parentheses/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/flow/typecasts/yield/expected.json b/packages/babylon/test/fixtures/flow/typecasts/yield/expected.json index b6e005a8e271..c10a19867446 100644 --- a/packages/babylon/test/fixtures/flow/typecasts/yield/expected.json +++ b/packages/babylon/test/fixtures/flow/typecasts/yield/expected.json @@ -60,7 +60,6 @@ "name": "foo" }, "generator": true, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/jsx/basic/asi/expected.json b/packages/babylon/test/fixtures/jsx/basic/asi/expected.json index 120125cf1920..88a40d2acdf1 100644 --- a/packages/babylon/test/fixtures/jsx/basic/asi/expected.json +++ b/packages/babylon/test/fixtures/jsx/basic/asi/expected.json @@ -60,7 +60,6 @@ "name": "x" }, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/jsx/basic/fragment-1/expected.json b/packages/babylon/test/fixtures/jsx/basic/fragment-1/expected.json index b374291c5626..069d44cd8aab 100644 --- a/packages/babylon/test/fixtures/jsx/basic/fragment-1/expected.json +++ b/packages/babylon/test/fixtures/jsx/basic/fragment-1/expected.json @@ -92,4 +92,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/jsx/basic/yield-tag/expected.json b/packages/babylon/test/fixtures/jsx/basic/yield-tag/expected.json index 3cb2a5908c62..159a4073c873 100644 --- a/packages/babylon/test/fixtures/jsx/basic/yield-tag/expected.json +++ b/packages/babylon/test/fixtures/jsx/basic/yield-tag/expected.json @@ -60,7 +60,6 @@ "name": "it" }, "generator": true, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/jsx/regression/3/expected.json b/packages/babylon/test/fixtures/jsx/regression/3/expected.json index d314d03df0db..fb641431e73a 100644 --- a/packages/babylon/test/fixtures/jsx/regression/3/expected.json +++ b/packages/babylon/test/fixtures/jsx/regression/3/expected.json @@ -165,7 +165,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 8, @@ -183,6 +182,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-array/expected.json index e52b51e72f71..5fa5502e79db 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-array/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-leading/expected.json index 6e97288c6861..d20d944c2c89 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-object/expected.json index fae5451a8503..0efa49196efc 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-object/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-rest/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-rest/expected.json index 619f04834301..dc9dbdd08e5d 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-rest/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty-with-rest/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithRest" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty/expected.json index 8fce044f0dd4..219d91111a03 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-empty/expected.json @@ -60,7 +60,6 @@ "name": "empty" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-array/expected.json index 365a587997e4..24b84a8d675e 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-array/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-initializer/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-initializer/expected.json index 31e27ace56fd..27b717de8b37 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-initializer/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-initializer/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithInitializer" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-leading/expected.json index d2f274ab0aa3..9ee3a314f2b5 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-object/expected.json index e46cd87e8d6f..2f24442f75f9 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-object/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -122,7 +121,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -140,6 +138,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -191,7 +190,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 45, @@ -209,6 +207,7 @@ }, "name": "r" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -263,7 +262,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 50, @@ -281,6 +279,7 @@ }, "name": "s" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-rest/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-rest/expected.json index a37e75f80153..3a29ed297640 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-rest/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element-with-rest/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithRest" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element/expected.json index 86cdf203a2cd..a307255fee7b 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-multi-element/expected.json @@ -60,7 +60,6 @@ "name": "multiElement" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-array/expected.json index 7184320ff8b3..870841280c4c 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-array/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-initializer/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-initializer/expected.json index 300640612a54..dd9c205ee816 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-initializer/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-initializer/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithInitializer" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-leading/expected.json index 616bb918241b..c1e3ec168ae9 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-object/expected.json index ad6ee909e9dd..55665b21f197 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-object/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -122,7 +121,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 38, @@ -140,6 +138,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-rest/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-rest/expected.json index faed59b1858e..2339c7e4a686 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-rest/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element-with-rest/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithRest" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element/expected.json index 0416e8d857d4..ca72b910da99 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/array-pattern-single-element/expected.json @@ -60,7 +60,6 @@ "name": "singleElement" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-array/expected.json index d16c7b6b4697..8efaf3e0fda3 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-array/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 28, @@ -125,6 +123,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-leading/expected.json index 76ca5482f522..941708c023e3 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-object/expected.json index 4977ba0df5b4..7bd4ed378fe3 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty-with-object/expected.json @@ -60,7 +60,6 @@ "name": "emptyWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -125,6 +123,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty/expected.json index 38447d9767e6..2c390105faca 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-empty/expected.json @@ -60,7 +60,6 @@ "name": "empty" }, "generator": false, - "expression": false, "async": false, "params": [ { diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-array/expected.json index 4b32aef8fb54..f6fb403b2df2 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-array/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 35, @@ -125,6 +123,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", @@ -176,7 +175,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -194,6 +192,7 @@ }, "name": "b" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -231,7 +230,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 46, @@ -249,6 +247,7 @@ }, "name": "q" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-initializer/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-initializer/expected.json index 00fb663d0e0f..ccdff6f9e4cb 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-initializer/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-initializer/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithInitializer" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", @@ -194,7 +193,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 51, @@ -212,6 +210,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -246,7 +245,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 57, @@ -264,6 +262,7 @@ }, "name": "c" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-leading/expected.json index fd80d529d910..baf8cb655244 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -141,7 +140,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 43, @@ -159,6 +157,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -193,7 +192,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 49, @@ -211,6 +209,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -245,7 +244,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 55, @@ -263,6 +261,7 @@ }, "name": "c" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-object/expected.json index 0a51e17c595a..e5ed8d05fffe 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element-with-object/expected.json @@ -60,7 +60,6 @@ "name": "multiElementWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 36, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -156,7 +155,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 40, @@ -174,6 +172,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -211,7 +210,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 47, @@ -229,6 +227,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -260,7 +259,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 51, @@ -278,6 +276,7 @@ }, "name": "r" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -318,7 +317,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 55, @@ -336,6 +334,7 @@ }, "name": "c" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -367,7 +366,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 59, @@ -385,6 +383,7 @@ }, "name": "s" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element/expected.json index e79b67a273e8..0bcbd0f3b4b3 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-multi-element/expected.json @@ -60,7 +60,6 @@ "name": "multiElement" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -159,7 +158,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 32, @@ -177,6 +175,7 @@ }, "name": "b" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", @@ -211,7 +210,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 38, @@ -229,6 +227,7 @@ }, "name": "c" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-array/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-array/expected.json index f3e9810813d6..ee8aa6fd3773 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-array/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-array/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithArray" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 36, @@ -125,6 +123,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "ArrayPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-initializer/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-initializer/expected.json index ff62b03d633e..661d15e6b66d 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-initializer/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-initializer/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithInitializer" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 42, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-leading/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-leading/expected.json index 554a4ebf3d98..937888112319 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-leading/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-leading/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithLeading" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -124,7 +123,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -142,6 +140,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-object/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-object/expected.json index 92b741d8a9fd..241c565c133a 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-object/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element-with-object/expected.json @@ -60,7 +60,6 @@ "name": "singleElementWithObject" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -125,6 +123,7 @@ }, "name": "p" }, + "computed": false, "shorthand": false, "value": { "type": "ObjectPattern", @@ -156,7 +155,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -174,6 +172,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element/expected.json b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element/expected.json index 3685c479ca41..8e9fa389cff6 100644 --- a/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element/expected.json +++ b/packages/babylon/test/fixtures/test262/rest-parameter/object-pattern-single-element/expected.json @@ -60,7 +60,6 @@ "name": "singleElement" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -107,7 +106,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -125,6 +123,7 @@ }, "name": "a" }, + "computed": false, "shorthand": false, "value": { "type": "Identifier", diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/annotated/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/annotated/expected.json index 2e5151144e86..c6ab02976cae 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/annotated/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/annotated/expected.json @@ -88,7 +88,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -161,4 +160,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/async-generic-false-positive/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/async-generic-false-positive/expected.json index 6eb11c91b98a..4a0f82f41019 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/async-generic-false-positive/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/async-generic-false-positive/expected.json @@ -232,4 +232,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/async-generic/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/async-generic/expected.json index 07e14382d371..8b93cc3d104c 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/async-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/async-generic/expected.json @@ -228,4 +228,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/async/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/async/expected.json index bdbbd4d0c192..0feb64e1daaa 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/async/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/async/expected.json @@ -88,7 +88,6 @@ }, "id": null, "generator": false, - "expression": true, "async": true, "params": [ { @@ -162,4 +161,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/default-parameter-values/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/default-parameter-values/expected.json index 7a118ee40322..364bf0c555cf 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/default-parameter-values/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/default-parameter-values/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -169,4 +168,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/destructuring/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/destructuring/expected.json index c48ece967836..f196c7d6fd19 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/destructuring/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/destructuring/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -91,7 +90,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 3, @@ -109,6 +107,7 @@ }, "name": "a" }, + "computed": false, "shorthand": true, "value": { "type": "AssignmentPattern", diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/generic-tsx/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/generic-tsx/expected.json index 2108e3ce7c14..2240eb71da98 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/generic-tsx/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/generic-tsx/expected.json @@ -105,7 +105,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -266,4 +265,4 @@ } } ] -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/generic/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/generic/expected.json index efe03ee8466a..bfbf98f1d90e 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/generic/expected.json @@ -105,7 +105,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -228,4 +227,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/optional-parameter/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/optional-parameter/expected.json index 6052af328029..90cf613b67aa 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/optional-parameter/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/optional-parameter/expected.json @@ -88,7 +88,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -162,4 +161,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/arrow-function/predicate-types/expected.json b/packages/babylon/test/fixtures/typescript/arrow-function/predicate-types/expected.json index 92cca09f8e4d..50c70df25fb8 100644 --- a/packages/babylon/test/fixtures/typescript/arrow-function/predicate-types/expected.json +++ b/packages/babylon/test/fixtures/typescript/arrow-function/predicate-types/expected.json @@ -135,7 +135,6 @@ }, "id": null, "generator": false, - "expression": true, "async": false, "params": [ { @@ -207,4 +206,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/constructor/expected.json b/packages/babylon/test/fixtures/typescript/class/constructor/expected.json index 036af003ecbe..885bc79c1d32 100644 --- a/packages/babylon/test/fixtures/typescript/class/constructor/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/constructor/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -225,7 +224,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 53, @@ -243,10 +241,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -360,7 +358,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 92, @@ -378,10 +375,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -503,4 +500,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/declare/expected.json b/packages/babylon/test/fixtures/typescript/class/declare/expected.json index bd147bd119f6..51bc54c2f800 100644 --- a/packages/babylon/test/fixtures/typescript/class/declare/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/declare/expected.json @@ -184,7 +184,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 44, @@ -202,6 +201,7 @@ }, "name": "x" }, + "computed": false, "value": null }, { @@ -219,7 +219,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 51, @@ -237,6 +236,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 52, @@ -284,7 +284,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 66, @@ -302,10 +301,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -324,7 +323,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 75, @@ -342,10 +340,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -386,4 +384,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/expression-extends-implements/expected.json b/packages/babylon/test/fixtures/typescript/class/expression-extends-implements/expected.json index 38a24d0e621a..1fa3f69f2033 100644 --- a/packages/babylon/test/fixtures/typescript/class/expression-extends-implements/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/expression-extends-implements/expected.json @@ -543,4 +543,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/expression-extends/expected.json b/packages/babylon/test/fixtures/typescript/class/expression-extends/expected.json index 384e5f90769d..a473be22e07a 100644 --- a/packages/babylon/test/fixtures/typescript/class/expression-extends/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/expression-extends/expected.json @@ -313,4 +313,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/expression-generic/expected.json b/packages/babylon/test/fixtures/typescript/class/expression-generic/expected.json index f5be828a4bd4..6094c0a4b55b 100644 --- a/packages/babylon/test/fixtures/typescript/class/expression-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/expression-generic/expected.json @@ -217,4 +217,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/expression-implements/expected.json b/packages/babylon/test/fixtures/typescript/class/expression-implements/expected.json index 553326421a13..7a36a596e5a5 100644 --- a/packages/babylon/test/fixtures/typescript/class/expression-implements/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/expression-implements/expected.json @@ -380,4 +380,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/extends-implements/expected.json b/packages/babylon/test/fixtures/typescript/class/extends-implements/expected.json index 502c1a712fc9..7fca5413db28 100644 --- a/packages/babylon/test/fixtures/typescript/class/extends-implements/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/extends-implements/expected.json @@ -276,4 +276,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/extends/expected.json b/packages/babylon/test/fixtures/typescript/class/extends/expected.json index 151bed4e1960..9d774f7d17a9 100644 --- a/packages/babylon/test/fixtures/typescript/class/extends/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/extends/expected.json @@ -161,4 +161,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/generic/expected.json b/packages/babylon/test/fixtures/typescript/class/generic/expected.json index 2d114fa48978..77598a6dbd0e 100644 --- a/packages/babylon/test/fixtures/typescript/class/generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/generic/expected.json @@ -133,7 +133,6 @@ "column": 38 } }, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -151,6 +150,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 30, @@ -208,4 +208,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/get-generic/expected.json b/packages/babylon/test/fixtures/typescript/class/get-generic/expected.json index 28eaf264cf4f..43ecdb466859 100644 --- a/packages/babylon/test/fixtures/typescript/class/get-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/get-generic/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -108,6 +107,7 @@ }, "name": "get" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -144,7 +144,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -185,4 +184,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/implements/expected.json b/packages/babylon/test/fixtures/typescript/class/implements/expected.json index dd732987b9f8..1f561339f816 100644 --- a/packages/babylon/test/fixtures/typescript/class/implements/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/implements/expected.json @@ -195,4 +195,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/index-signature/expected.json b/packages/babylon/test/fixtures/typescript/class/index-signature/expected.json index 0fb90f14211b..e6bb160607fa 100644 --- a/packages/babylon/test/fixtures/typescript/class/index-signature/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/index-signature/expected.json @@ -270,4 +270,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/members-with-modifier-names/expected.json b/packages/babylon/test/fixtures/typescript/class/members-with-modifier-names/expected.json index 725f034a2d54..b9d208a6b5c1 100644 --- a/packages/babylon/test/fixtures/typescript/class/members-with-modifier-names/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/members-with-modifier-names/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "public" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -182,7 +181,6 @@ "static": false, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -231,7 +229,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 61, @@ -249,6 +246,7 @@ }, "name": "readonly" }, + "computed": false, "value": { "type": "NumericLiteral", "start": 72, @@ -285,7 +283,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 79, @@ -303,6 +300,7 @@ }, "name": "async" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -339,7 +337,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -379,4 +376,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/members-with-reserved-names/expected.json b/packages/babylon/test/fixtures/typescript/class/members-with-reserved-names/expected.json index 41ebcaecb076..5acb0ad5d367 100644 --- a/packages/babylon/test/fixtures/typescript/class/members-with-reserved-names/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/members-with-reserved-names/expected.json @@ -91,7 +91,6 @@ }, "accessibility": "public", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -109,10 +108,10 @@ }, "name": "delete" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -152,4 +151,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-computed/expected.json b/packages/babylon/test/fixtures/typescript/class/method-computed/expected.json index 41e32efb457a..4e1d81c2e850 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-computed/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-computed/expected.json @@ -144,7 +144,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -248,7 +247,6 @@ "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -288,4 +286,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-generic/expected.json b/packages/babylon/test/fixtures/typescript/class/method-generic/expected.json index 6e7a33919be2..685eef0e735f 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-generic/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,6 +107,7 @@ }, "name": "f" }, + "computed": false, "kind": "method", "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -144,7 +144,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -538,7 +537,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -612,4 +610,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-no-body/expected.json b/packages/babylon/test/fixtures/typescript/class/method-no-body/expected.json index 2fdba3329053..8888451a5dba 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-no-body/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-no-body/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -130,7 +129,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 23, @@ -148,10 +146,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -191,4 +189,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-optional/expected.json b/packages/babylon/test/fixtures/typescript/class/method-optional/expected.json index a76097048dcb..f34b845bffa1 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-optional/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-optional/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,11 +107,11 @@ }, "name": "m" }, + "computed": false, "optional": true, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -169,4 +168,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-return-type/expected.json b/packages/babylon/test/fixtures/typescript/class/method-return-type/expected.json index 96d99504d3e6..91a943e35469 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-return-type/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-return-type/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -168,4 +167,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/method-with-newline-with-body/expected.json b/packages/babylon/test/fixtures/typescript/class/method-with-newline-with-body/expected.json index 585a5b29201f..697d2796a7b9 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-with-newline-with-body/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-with-newline-with-body/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "m" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/typescript/class/method-with-newline-without-body/expected.json b/packages/babylon/test/fixtures/typescript/class/method-with-newline-without-body/expected.json index 5252a1bbd501..a74167df5b0e 100644 --- a/packages/babylon/test/fixtures/typescript/class/method-with-newline-without-body/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/method-with-newline-without-body/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "m" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -130,7 +129,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 22, @@ -148,10 +146,10 @@ }, "name": "n" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] } diff --git a/packages/babylon/test/fixtures/typescript/class/modifiers-accessors/expected.json b/packages/babylon/test/fixtures/typescript/class/modifiers-accessors/expected.json index 953516b92d50..4e6c6db8bfb0 100644 --- a/packages/babylon/test/fixtures/typescript/class/modifiers-accessors/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/modifiers-accessors/expected.json @@ -92,7 +92,6 @@ }, "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 76, @@ -110,10 +109,10 @@ }, "name": "a" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -132,7 +131,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 96, @@ -150,10 +148,10 @@ }, "name": "s" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -227,7 +225,6 @@ "accessibility": "public", "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 138, @@ -245,10 +242,10 @@ }, "name": "pua" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -268,7 +265,6 @@ }, "accessibility": "public", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 167, @@ -286,10 +282,10 @@ }, "name": "pus" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -362,7 +358,6 @@ }, "accessibility": "public", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 203, @@ -380,10 +375,10 @@ }, "name": "pu" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -456,7 +451,6 @@ }, "accessibility": "protected", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 240, @@ -474,10 +468,10 @@ }, "name": "po" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { @@ -550,7 +544,6 @@ }, "accessibility": "private", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 275, @@ -568,10 +561,10 @@ }, "name": "pi" }, + "computed": false, "kind": "get", "id": null, "generator": false, - "expression": false, "async": false, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/typescript/class/modifiers-methods-async/expected.json b/packages/babylon/test/fixtures/typescript/class/modifiers-methods-async/expected.json index d35e4a6d64af..fe4150a0053e 100644 --- a/packages/babylon/test/fixtures/typescript/class/modifiers-methods-async/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/modifiers-methods-async/expected.json @@ -92,7 +92,6 @@ }, "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 80, @@ -110,10 +109,10 @@ }, "name": "a" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [] }, @@ -132,7 +131,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 102, @@ -150,10 +148,10 @@ }, "name": "s" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -191,7 +189,6 @@ "accessibility": "public", "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 135, @@ -209,10 +206,10 @@ }, "name": "pua" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [] }, @@ -232,7 +229,6 @@ }, "accessibility": "public", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 166, @@ -250,10 +246,10 @@ }, "name": "pus" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -290,7 +286,6 @@ }, "accessibility": "public", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 193, @@ -308,10 +303,10 @@ }, "name": "pu" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -348,7 +343,6 @@ }, "accessibility": "protected", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 221, @@ -366,10 +360,10 @@ }, "name": "po" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { @@ -406,7 +400,6 @@ }, "accessibility": "private", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 247, @@ -424,10 +417,10 @@ }, "name": "pi" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": true, "params": [], "body": { diff --git a/packages/babylon/test/fixtures/typescript/class/modifiers-properties/expected.json b/packages/babylon/test/fixtures/typescript/class/modifiers-properties/expected.json index e3358572f3a9..922827e48089 100644 --- a/packages/babylon/test/fixtures/typescript/class/modifiers-properties/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/modifiers-properties/expected.json @@ -92,7 +92,6 @@ }, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 32, @@ -110,6 +109,7 @@ }, "name": "r" }, + "computed": false, "value": null }, { @@ -128,7 +128,6 @@ }, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 48, @@ -146,6 +145,7 @@ }, "name": "r2" }, + "computed": false, "optional": true, "typeAnnotation": { "type": "TSTypeAnnotation", @@ -195,7 +195,6 @@ }, "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 74, @@ -213,6 +212,7 @@ }, "name": "a" }, + "computed": false, "value": null }, { @@ -230,7 +230,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 88, @@ -248,6 +247,7 @@ }, "name": "s" }, + "computed": false, "value": null }, { @@ -266,7 +266,6 @@ }, "accessibility": "public", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 103, @@ -284,6 +283,7 @@ }, "name": "pu" }, + "computed": false, "value": null }, { @@ -302,7 +302,6 @@ }, "accessibility": "protected", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 121, @@ -320,6 +319,7 @@ }, "name": "po" }, + "computed": false, "value": null }, { @@ -338,7 +338,6 @@ }, "accessibility": "private", "static": false, - "computed": false, "key": { "type": "Identifier", "start": 137, @@ -356,6 +355,7 @@ }, "name": "pi" }, + "computed": false, "value": null }, { @@ -375,7 +375,6 @@ "abstract": true, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 164, @@ -393,6 +392,7 @@ }, "name": "ra" }, + "computed": false, "value": null }, { @@ -412,7 +412,6 @@ "abstract": true, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 190, @@ -430,6 +429,7 @@ }, "name": "ar" }, + "computed": false, "value": null }, { @@ -448,7 +448,6 @@ }, "readonly": true, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 214, @@ -466,6 +465,7 @@ }, "name": "sr" }, + "computed": false, "value": null }, { @@ -485,7 +485,6 @@ "accessibility": "public", "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 239, @@ -503,6 +502,7 @@ }, "name": "pur" }, + "computed": false, "value": null }, { @@ -522,7 +522,6 @@ "accessibility": "public", "abstract": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 264, @@ -540,6 +539,7 @@ }, "name": "pua" }, + "computed": false, "value": null }, { @@ -558,7 +558,6 @@ }, "accessibility": "public", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 287, @@ -576,6 +575,7 @@ }, "name": "pus" }, + "computed": false, "value": null }, { @@ -596,7 +596,6 @@ "abstract": true, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 321, @@ -614,6 +613,7 @@ }, "name": "pura" }, + "computed": false, "value": null }, { @@ -634,7 +634,6 @@ "abstract": true, "readonly": true, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 356, @@ -652,6 +651,7 @@ }, "name": "puar" }, + "computed": false, "value": null }, { @@ -671,7 +671,6 @@ "accessibility": "public", "readonly": true, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 389, @@ -689,6 +688,7 @@ }, "name": "pusr" }, + "computed": false, "value": null } ] @@ -697,4 +697,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/parameter-properties-with-decorators/expected.json b/packages/babylon/test/fixtures/typescript/class/parameter-properties-with-decorators/expected.json index bbf13dd6fbc9..4096b04c95a1 100644 --- a/packages/babylon/test/fixtures/typescript/class/parameter-properties-with-decorators/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/parameter-properties-with-decorators/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -236,4 +235,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/parameter-properties/expected.json b/packages/babylon/test/fixtures/typescript/class/parameter-properties/expected.json index 8db9ca16a055..4f0f32b462be 100644 --- a/packages/babylon/test/fixtures/typescript/class/parameter-properties/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/parameter-properties/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,10 +107,10 @@ }, "name": "constructor" }, + "computed": false, "kind": "constructor", "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -572,4 +571,4 @@ } } ] -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/properties/expected.json b/packages/babylon/test/fixtures/typescript/class/properties/expected.json index b956b43172ce..edbf544f70e6 100644 --- a/packages/babylon/test/fixtures/typescript/class/properties/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/properties/expected.json @@ -90,7 +90,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 14, @@ -108,6 +107,7 @@ }, "name": "x" }, + "computed": false, "value": null }, { @@ -125,7 +125,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -143,6 +142,7 @@ }, "name": "x" }, + "computed": false, "optional": true, "value": null }, @@ -161,7 +161,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -179,6 +178,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 30, @@ -226,7 +226,6 @@ } }, "static": false, - "computed": false, "key": { "type": "Identifier", "start": 44, @@ -244,6 +243,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 45, @@ -301,4 +301,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/property-computed/expected.json b/packages/babylon/test/fixtures/typescript/class/property-computed/expected.json index 961a435eaaee..623b5d3a26f0 100644 --- a/packages/babylon/test/fixtures/typescript/class/property-computed/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/property-computed/expected.json @@ -278,4 +278,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/class/static/expected.json b/packages/babylon/test/fixtures/typescript/class/static/expected.json index f8a95e4d32dd..7af9fb66d19f 100644 --- a/packages/babylon/test/fixtures/typescript/class/static/expected.json +++ b/packages/babylon/test/fixtures/typescript/class/static/expected.json @@ -90,7 +90,6 @@ } }, "static": true, - "computed": false, "key": { "type": "Identifier", "start": 21, @@ -108,10 +107,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -131,7 +130,6 @@ }, "accessibility": "public", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 44, @@ -149,10 +147,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -172,7 +170,6 @@ }, "accessibility": "protected", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 70, @@ -190,10 +187,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] }, @@ -213,7 +210,6 @@ }, "accessibility": "private", "static": true, - "computed": false, "key": { "type": "Identifier", "start": 94, @@ -231,10 +227,10 @@ }, "name": "f" }, + "computed": false, "kind": "method", "id": null, "generator": false, - "expression": false, "async": false, "params": [] } diff --git a/packages/babylon/test/fixtures/typescript/const/no-initializer/expected.json b/packages/babylon/test/fixtures/typescript/const/no-initializer/expected.json index 755d88c27920..73282f9cacb8 100644 --- a/packages/babylon/test/fixtures/typescript/const/no-initializer/expected.json +++ b/packages/babylon/test/fixtures/typescript/const/no-initializer/expected.json @@ -112,4 +112,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/declare/const/expected.json b/packages/babylon/test/fixtures/typescript/declare/const/expected.json index 86df9f11dfff..03f882b46fc2 100644 --- a/packages/babylon/test/fixtures/typescript/declare/const/expected.json +++ b/packages/babylon/test/fixtures/typescript/declare/const/expected.json @@ -176,4 +176,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/declare/destructure/expected.json b/packages/babylon/test/fixtures/typescript/declare/destructure/expected.json index cb1a93f503a8..46f8d32d97d8 100644 --- a/packages/babylon/test/fixtures/typescript/declare/destructure/expected.json +++ b/packages/babylon/test/fixtures/typescript/declare/destructure/expected.json @@ -87,7 +87,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 16, @@ -105,6 +104,7 @@ }, "name": "x" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -142,7 +142,6 @@ } }, "method": false, - "computed": false, "key": { "type": "Identifier", "start": 19, @@ -160,6 +159,7 @@ }, "name": "y" }, + "computed": false, "shorthand": true, "value": { "type": "Identifier", @@ -226,7 +226,6 @@ "column": 36 } }, - "computed": false, "key": { "type": "Identifier", "start": 26, @@ -244,6 +243,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 27, @@ -289,7 +289,6 @@ "column": 46 } }, - "computed": false, "key": { "type": "Identifier", "start": 37, @@ -307,6 +306,7 @@ }, "name": "y" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 38, @@ -351,4 +351,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/declare/var/expected.json b/packages/babylon/test/fixtures/typescript/declare/var/expected.json index b5083a4e8656..372542b626ec 100644 --- a/packages/babylon/test/fixtures/typescript/declare/var/expected.json +++ b/packages/babylon/test/fixtures/typescript/declare/var/expected.json @@ -165,4 +165,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/export/declare/expected.json b/packages/babylon/test/fixtures/typescript/export/declare/expected.json index b3f3f055d937..ac7210f46708 100644 --- a/packages/babylon/test/fixtures/typescript/export/declare/expected.json +++ b/packages/babylon/test/fixtures/typescript/export/declare/expected.json @@ -175,7 +175,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -544,4 +543,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/annotated/expected.json b/packages/babylon/test/fixtures/typescript/function/annotated/expected.json index fdb62268bfc8..dbe62d2389b6 100644 --- a/packages/babylon/test/fixtures/typescript/function/annotated/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/annotated/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -230,4 +229,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/anonymous/expected.json b/packages/babylon/test/fixtures/typescript/function/anonymous/expected.json index 1367ea39a2dd..ab4bed5fb29b 100644 --- a/packages/babylon/test/fixtures/typescript/function/anonymous/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/anonymous/expected.json @@ -90,7 +90,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -264,4 +263,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/declare/expected.json b/packages/babylon/test/fixtures/typescript/function/declare/expected.json index 5a6f89e48c99..62e8819853c0 100644 --- a/packages/babylon/test/fixtures/typescript/function/declare/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/declare/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [], "returnType": { @@ -127,7 +126,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -215,4 +213,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/export-default/expected.json b/packages/babylon/test/fixtures/typescript/function/export-default/expected.json index 5778c653ff67..d3d9fe5b2c97 100644 --- a/packages/babylon/test/fixtures/typescript/function/export-default/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/export-default/expected.json @@ -58,7 +58,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -145,4 +144,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/overloads/expected.json b/packages/babylon/test/fixtures/typescript/function/overloads/expected.json index acd9bc0685b1..f8a102813fea 100644 --- a/packages/babylon/test/fixtures/typescript/function/overloads/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/overloads/expected.json @@ -76,7 +76,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -207,7 +206,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -293,4 +291,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/function/predicate-types/expected.json b/packages/babylon/test/fixtures/typescript/function/predicate-types/expected.json index 79233238ad78..06e9467b0bb3 100644 --- a/packages/babylon/test/fixtures/typescript/function/predicate-types/expected.json +++ b/packages/babylon/test/fixtures/typescript/function/predicate-types/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "params": [ { @@ -236,7 +235,6 @@ }, "id": null, "generator": false, - "expression": false, "async": false, "params": [ { @@ -390,4 +388,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/call-signature/expected.json b/packages/babylon/test/fixtures/typescript/interface/call-signature/expected.json index 592614057f6b..cab7e0c380a3 100644 --- a/packages/babylon/test/fixtures/typescript/interface/call-signature/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/call-signature/expected.json @@ -174,4 +174,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/construct-signature/expected.json b/packages/babylon/test/fixtures/typescript/interface/construct-signature/expected.json index 3693d03b2a9a..611125035663 100644 --- a/packages/babylon/test/fixtures/typescript/interface/construct-signature/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/construct-signature/expected.json @@ -174,4 +174,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/extends/expected.json b/packages/babylon/test/fixtures/typescript/interface/extends/expected.json index 85164503ee9e..c214e5153611 100644 --- a/packages/babylon/test/fixtures/typescript/interface/extends/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/extends/expected.json @@ -194,4 +194,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/generic/expected.json b/packages/babylon/test/fixtures/typescript/interface/generic/expected.json index 26726c6f1c77..bf1572301463 100644 --- a/packages/babylon/test/fixtures/typescript/interface/generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/generic/expected.json @@ -133,7 +133,6 @@ "column": 42 } }, - "computed": false, "key": { "type": "Identifier", "start": 33, @@ -151,6 +150,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 34, @@ -207,4 +207,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/index-signature/expected.json b/packages/babylon/test/fixtures/typescript/interface/index-signature/expected.json index 2a5c04a9c77b..ddb1b29f0fb3 100644 --- a/packages/babylon/test/fixtures/typescript/interface/index-signature/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/index-signature/expected.json @@ -174,4 +174,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/method-computed/expected.json b/packages/babylon/test/fixtures/typescript/interface/method-computed/expected.json index 78e9e5e9dc9d..73f4a5fc1050 100644 --- a/packages/babylon/test/fixtures/typescript/interface/method-computed/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/method-computed/expected.json @@ -275,4 +275,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/method-generic/expected.json b/packages/babylon/test/fixtures/typescript/interface/method-generic/expected.json index 6ab7ab2486a4..42e2222aa79f 100644 --- a/packages/babylon/test/fixtures/typescript/interface/method-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/method-generic/expected.json @@ -88,7 +88,6 @@ "column": 45 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -106,6 +105,7 @@ }, "name": "m" }, + "computed": false, "typeParameters": { "type": "TSTypeParameterDeclaration", "start": 19, @@ -180,7 +180,6 @@ "column": 36 } }, - "computed": false, "key": { "type": "Identifier", "start": 41, @@ -198,6 +197,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 42, @@ -289,4 +289,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/method-optional/expected.json b/packages/babylon/test/fixtures/typescript/interface/method-optional/expected.json index 96219530ec19..7ffe92548b67 100644 --- a/packages/babylon/test/fixtures/typescript/interface/method-optional/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/method-optional/expected.json @@ -88,7 +88,6 @@ "column": 15 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -106,6 +105,7 @@ }, "name": "m" }, + "computed": false, "optional": true, "parameters": [], "typeAnnotation": { @@ -145,4 +145,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/method-plain/expected.json b/packages/babylon/test/fixtures/typescript/interface/method-plain/expected.json index 66336652d8d1..c76219cc8c4b 100644 --- a/packages/babylon/test/fixtures/typescript/interface/method-plain/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/method-plain/expected.json @@ -88,7 +88,6 @@ "column": 8 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -106,6 +105,7 @@ }, "name": "m" }, + "computed": false, "parameters": [] }, { @@ -122,7 +122,6 @@ "column": 40 } }, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -140,6 +139,7 @@ }, "name": "m" }, + "computed": false, "parameters": [ { "type": "Identifier", @@ -304,4 +304,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/modifiers/expected.json b/packages/babylon/test/fixtures/typescript/interface/modifiers/expected.json index 36ddaccaa522..0e221ddc9b32 100644 --- a/packages/babylon/test/fixtures/typescript/interface/modifiers/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/modifiers/expected.json @@ -88,7 +88,6 @@ "column": 23 } }, - "computed": false, "key": { "type": "Identifier", "start": 27, @@ -106,6 +105,7 @@ }, "name": "x" }, + "computed": false, "readonly": true, "typeAnnotation": { "type": "TSTypeAnnotation", @@ -144,4 +144,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/properties/expected.json b/packages/babylon/test/fixtures/typescript/interface/properties/expected.json index 724cc96c52d5..085f95c94f39 100644 --- a/packages/babylon/test/fixtures/typescript/interface/properties/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/properties/expected.json @@ -88,7 +88,6 @@ "column": 6 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -105,7 +104,8 @@ "identifierName": "x" }, "name": "x" - } + }, + "computed": false }, { "type": "TSPropertySignature", @@ -121,7 +121,6 @@ "column": 14 } }, - "computed": false, "key": { "type": "Identifier", "start": 25, @@ -139,6 +138,7 @@ }, "name": "y" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 26, @@ -184,7 +184,6 @@ "column": 15 } }, - "computed": false, "key": { "type": "Identifier", "start": 40, @@ -202,6 +201,7 @@ }, "name": "z" }, + "computed": false, "optional": true, "typeAnnotation": { "type": "TSTypeAnnotation", @@ -240,4 +240,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/property-computed/expected.json b/packages/babylon/test/fixtures/typescript/interface/property-computed/expected.json index c8fce660e531..b307fb7f1928 100644 --- a/packages/babylon/test/fixtures/typescript/interface/property-computed/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/property-computed/expected.json @@ -273,4 +273,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/property-named-public/expected.json b/packages/babylon/test/fixtures/typescript/interface/property-named-public/expected.json index 398b976c155d..c8118a771c3c 100644 --- a/packages/babylon/test/fixtures/typescript/interface/property-named-public/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/property-named-public/expected.json @@ -88,7 +88,6 @@ "column": 16 } }, - "computed": false, "key": { "type": "Identifier", "start": 15, @@ -106,6 +105,7 @@ }, "name": "public" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 21, @@ -143,4 +143,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/reserved-method-name/expected.json b/packages/babylon/test/fixtures/typescript/interface/reserved-method-name/expected.json index baa7894bf9f1..2903237240dd 100644 --- a/packages/babylon/test/fixtures/typescript/interface/reserved-method-name/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/reserved-method-name/expected.json @@ -88,7 +88,6 @@ "column": 18 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -106,6 +105,7 @@ }, "name": "catch" }, + "computed": false, "parameters": [], "typeAnnotation": { "type": "TSTypeAnnotation", @@ -144,4 +144,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/interface/separators/expected.json b/packages/babylon/test/fixtures/typescript/interface/separators/expected.json index b5a74595a629..c2ff470d3fc8 100644 --- a/packages/babylon/test/fixtures/typescript/interface/separators/expected.json +++ b/packages/babylon/test/fixtures/typescript/interface/separators/expected.json @@ -88,7 +88,6 @@ "column": 28 } }, - "computed": false, "key": { "type": "Identifier", "start": 18, @@ -106,6 +105,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 19, @@ -151,7 +151,6 @@ "column": 38 } }, - "computed": false, "key": { "type": "Identifier", "start": 29, @@ -169,6 +168,7 @@ }, "name": "y" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 30, @@ -263,7 +263,6 @@ "column": 27 } }, - "computed": false, "key": { "type": "Identifier", "start": 58, @@ -281,6 +280,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 59, @@ -326,7 +326,6 @@ "column": 37 } }, - "computed": false, "key": { "type": "Identifier", "start": 69, @@ -344,6 +343,7 @@ }, "name": "y" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 70, @@ -438,7 +438,6 @@ "column": 13 } }, - "computed": false, "key": { "type": "Identifier", "start": 105, @@ -456,6 +455,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 106, @@ -501,7 +501,6 @@ "column": 13 } }, - "computed": false, "key": { "type": "Identifier", "start": 119, @@ -519,6 +518,7 @@ }, "name": "y" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 120, @@ -556,4 +556,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/module-namespace/body-declare/expected.json b/packages/babylon/test/fixtures/typescript/module-namespace/body-declare/expected.json index 29b72b36839b..8966dbe43c61 100644 --- a/packages/babylon/test/fixtures/typescript/module-namespace/body-declare/expected.json +++ b/packages/babylon/test/fixtures/typescript/module-namespace/body-declare/expected.json @@ -162,4 +162,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/module-namespace/body-nested-declare/expected.json b/packages/babylon/test/fixtures/typescript/module-namespace/body-nested-declare/expected.json index 4108c0c34933..8536bd222ee1 100644 --- a/packages/babylon/test/fixtures/typescript/module-namespace/body-nested-declare/expected.json +++ b/packages/babylon/test/fixtures/typescript/module-namespace/body-nested-declare/expected.json @@ -211,4 +211,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/module-namespace/global-in-module/expected.json b/packages/babylon/test/fixtures/typescript/module-namespace/global-in-module/expected.json index 577f1309c49b..6255c18edc19 100644 --- a/packages/babylon/test/fixtures/typescript/module-namespace/global-in-module/expected.json +++ b/packages/babylon/test/fixtures/typescript/module-namespace/global-in-module/expected.json @@ -215,4 +215,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/tsx/brace-is-block/expected.json b/packages/babylon/test/fixtures/typescript/tsx/brace-is-block/expected.json index 0c844437fe28..3031876fdaf5 100644 --- a/packages/babylon/test/fixtures/typescript/tsx/brace-is-block/expected.json +++ b/packages/babylon/test/fixtures/typescript/tsx/brace-is-block/expected.json @@ -247,4 +247,4 @@ } } ] -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/type-alias/generic-complex/expected.json b/packages/babylon/test/fixtures/typescript/type-alias/generic-complex/expected.json index d3d0752a89cf..2cf942255500 100644 --- a/packages/babylon/test/fixtures/typescript/type-alias/generic-complex/expected.json +++ b/packages/babylon/test/fixtures/typescript/type-alias/generic-complex/expected.json @@ -133,7 +133,6 @@ "column": 37 } }, - "computed": false, "key": { "type": "Identifier", "start": 28, @@ -151,6 +150,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 29, @@ -272,4 +272,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/type-alias/generic/expected.json b/packages/babylon/test/fixtures/typescript/type-alias/generic/expected.json index d67812648798..830d5da4f7d5 100644 --- a/packages/babylon/test/fixtures/typescript/type-alias/generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/type-alias/generic/expected.json @@ -128,4 +128,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/type-arguments/call/expected.json b/packages/babylon/test/fixtures/typescript/type-arguments/call/expected.json index fc786c74e6c0..6b46457d5b75 100644 --- a/packages/babylon/test/fixtures/typescript/type-arguments/call/expected.json +++ b/packages/babylon/test/fixtures/typescript/type-arguments/call/expected.json @@ -257,4 +257,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/type-arguments/new/expected.json b/packages/babylon/test/fixtures/typescript/type-arguments/new/expected.json index c766c791711e..4c88ddb72c5f 100644 --- a/packages/babylon/test/fixtures/typescript/type-arguments/new/expected.json +++ b/packages/babylon/test/fixtures/typescript/type-arguments/new/expected.json @@ -257,4 +257,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/type-arguments/whitespace/expected.json b/packages/babylon/test/fixtures/typescript/type-arguments/whitespace/expected.json index cb13db6b6804..589b3ce9840a 100644 --- a/packages/babylon/test/fixtures/typescript/type-arguments/whitespace/expected.json +++ b/packages/babylon/test/fixtures/typescript/type-arguments/whitespace/expected.json @@ -60,7 +60,6 @@ "name": "f" }, "generator": false, - "expression": false, "async": false, "typeParameters": { "type": "TSTypeParameterDeclaration", @@ -117,4 +116,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/array/expected.json b/packages/babylon/test/fixtures/typescript/types/array/expected.json index c3ad6ce3ee04..17c8c69668cf 100644 --- a/packages/babylon/test/fixtures/typescript/types/array/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/array/expected.json @@ -142,4 +142,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/function-generic/expected.json b/packages/babylon/test/fixtures/typescript/types/function-generic/expected.json index 1892869ac5e9..60d0b783ebf4 100644 --- a/packages/babylon/test/fixtures/typescript/types/function-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/function-generic/expected.json @@ -258,4 +258,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/function-in-generic/expected.json b/packages/babylon/test/fixtures/typescript/types/function-in-generic/expected.json index b41c055bd567..d7029f82c992 100644 --- a/packages/babylon/test/fixtures/typescript/types/function-in-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/function-in-generic/expected.json @@ -192,4 +192,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/function-with-this/expected.json b/packages/babylon/test/fixtures/typescript/types/function-with-this/expected.json index a9cecff60f33..280491d4da2f 100644 --- a/packages/babylon/test/fixtures/typescript/types/function-with-this/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/function-with-this/expected.json @@ -191,4 +191,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/function/expected.json b/packages/babylon/test/fixtures/typescript/types/function/expected.json index 0266c62539a1..418bb00eb7b4 100644 --- a/packages/babylon/test/fixtures/typescript/types/function/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/function/expected.json @@ -316,4 +316,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/indexed/expected.json b/packages/babylon/test/fixtures/typescript/types/indexed/expected.json index 17e9952a5038..eb436a32832d 100644 --- a/packages/babylon/test/fixtures/typescript/types/indexed/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/indexed/expected.json @@ -176,4 +176,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/keywords/expected.json b/packages/babylon/test/fixtures/typescript/types/keywords/expected.json index 6d2bf6bab309..379b01360f14 100644 --- a/packages/babylon/test/fixtures/typescript/types/keywords/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/keywords/expected.json @@ -841,4 +841,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/literal-boolean/expected.json b/packages/babylon/test/fixtures/typescript/types/literal-boolean/expected.json index 0ff1d7a1db3c..85d7b7c30672 100644 --- a/packages/babylon/test/fixtures/typescript/types/literal-boolean/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/literal-boolean/expected.json @@ -225,4 +225,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/literal-number-negative/expected.json b/packages/babylon/test/fixtures/typescript/types/literal-number-negative/expected.json index 10eb0df16c45..737724b7e259 100644 --- a/packages/babylon/test/fixtures/typescript/types/literal-number-negative/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/literal-number-negative/expected.json @@ -132,4 +132,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/literal-number/expected.json b/packages/babylon/test/fixtures/typescript/types/literal-number/expected.json index 56642c8900f9..1f8b83072f17 100644 --- a/packages/babylon/test/fixtures/typescript/types/literal-number/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/literal-number/expected.json @@ -132,4 +132,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/literal-string/expected.json b/packages/babylon/test/fixtures/typescript/types/literal-string/expected.json index 980e55a467f4..5dd4979fcbd4 100644 --- a/packages/babylon/test/fixtures/typescript/types/literal-string/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/literal-string/expected.json @@ -132,4 +132,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/mapped/expected.json b/packages/babylon/test/fixtures/typescript/types/mapped/expected.json index 1806d688fd92..687868b0ec63 100644 --- a/packages/babylon/test/fixtures/typescript/types/mapped/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/mapped/expected.json @@ -287,4 +287,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/reference-generic-nested/expected.json b/packages/babylon/test/fixtures/typescript/types/reference-generic-nested/expected.json index 5a5077fa8d3c..ad9b6e5b5587 100644 --- a/packages/babylon/test/fixtures/typescript/types/reference-generic-nested/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/reference-generic-nested/expected.json @@ -210,4 +210,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/reference-generic/expected.json b/packages/babylon/test/fixtures/typescript/types/reference-generic/expected.json index 97bc623ec325..874f3c904fb7 100644 --- a/packages/babylon/test/fixtures/typescript/types/reference-generic/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/reference-generic/expected.json @@ -161,4 +161,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/reference/expected.json b/packages/babylon/test/fixtures/typescript/types/reference/expected.json index 336dded6c49c..0115abf98b08 100644 --- a/packages/babylon/test/fixtures/typescript/types/reference/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/reference/expected.json @@ -129,4 +129,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/type-literal/expected.json b/packages/babylon/test/fixtures/typescript/types/type-literal/expected.json index 5c448f85a580..b3b5bafb0156 100644 --- a/packages/babylon/test/fixtures/typescript/types/type-literal/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/type-literal/expected.json @@ -116,7 +116,6 @@ "column": 20 } }, - "computed": false, "key": { "type": "Identifier", "start": 11, @@ -134,6 +133,7 @@ }, "name": "x" }, + "computed": false, "typeAnnotation": { "type": "TSTypeAnnotation", "start": 12, @@ -213,4 +213,4 @@ } } ] -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/type-operator/expected.json b/packages/babylon/test/fixtures/typescript/types/type-operator/expected.json index e5296f76c4a6..2ad318fae1f6 100644 --- a/packages/babylon/test/fixtures/typescript/types/type-operator/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/type-operator/expected.json @@ -145,4 +145,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/typeof/expected.json b/packages/babylon/test/fixtures/typescript/types/typeof/expected.json index 2845ec8dcdad..53bcc636e8a8 100644 --- a/packages/babylon/test/fixtures/typescript/types/typeof/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/typeof/expected.json @@ -161,4 +161,4 @@ ], "directives": [] } -} +} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/typescript/types/union-intersection/expected.json b/packages/babylon/test/fixtures/typescript/types/union-intersection/expected.json index 5a6e7337473a..f32993318850 100644 --- a/packages/babylon/test/fixtures/typescript/types/union-intersection/expected.json +++ b/packages/babylon/test/fixtures/typescript/types/union-intersection/expected.json @@ -562,4 +562,4 @@ ], "directives": [] } -} +} \ No newline at end of file