From 55f3fb301569eefdbf3dbed7c99770b243310f71 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 25 Jul 2015 06:07:51 +0100 Subject: [PATCH] add espree comment attachment tests and remove ranges test property from babylon tests --- packages/babylon/src/comments.js | 24 +- .../basic/block-trailing-comment/actual.js | 4 + .../block-trailing-comment/expected.json | 135 ++++ .../basic/comment-within-condition/actual.js | 2 + .../comment-within-condition/expected.json | 155 ++++ .../export-default-anonymous-class/actual.js | 10 + .../expected.json | 233 ++++++ .../options.json | 3 + .../basic/surrounding-call-comments/actual.js | 5 + .../surrounding-call-comments/expected.json | 211 ++++++ .../surrounding-debugger-comments/actual.js | 5 + .../expected.json | 175 +++++ .../surrounding-return-comments/actual.js | 5 + .../surrounding-return-comments/expected.json | 176 +++++ .../surrounding-throw-comments/actual.js | 5 + .../surrounding-throw-comments/expected.json | 194 +++++ .../surrounding-while-loop-comments/actual.js | 1 + .../expected.json | 288 +++++++ .../actual.js | 9 + .../expected.json | 362 +++++++++ .../switch-fallthrough-comment/actual.js | 7 + .../switch-fallthrough-comment/expected.json | 286 +++++++ .../actual.js | 9 + .../expected.json | 288 +++++++ .../actual.js | 12 + .../expected.json | 707 ++++++++++++++++++ .../basic/switch-no-default-comment/actual.js | 5 + .../switch-no-default-comment/expected.json | 156 ++++ .../core/uncategorised/537/options.json | 3 - .../uncategorised/26/options.json | 3 +- .../uncategorised/27/options.json | 3 +- .../uncategorised/28/options.json | 3 +- .../babylon/test/fixtures/flow/options.json | 3 +- .../harmony/uncategorised/1/options.json | 3 - .../harmony/uncategorised/10/options.json | 3 - .../harmony/uncategorised/100/options.json | 3 +- .../harmony/uncategorised/101/options.json | 3 - .../harmony/uncategorised/102/options.json | 3 - .../harmony/uncategorised/103/options.json | 3 - .../harmony/uncategorised/105/options.json | 3 - .../harmony/uncategorised/106/options.json | 3 - .../harmony/uncategorised/107/options.json | 3 - .../harmony/uncategorised/108/options.json | 3 - .../harmony/uncategorised/109/options.json | 3 - .../harmony/uncategorised/11/options.json | 3 - .../harmony/uncategorised/110/options.json | 3 - .../harmony/uncategorised/111/options.json | 3 - .../harmony/uncategorised/112/options.json | 3 - .../harmony/uncategorised/113/options.json | 3 - .../harmony/uncategorised/114/options.json | 3 - .../harmony/uncategorised/115/options.json | 3 - .../harmony/uncategorised/116/options.json | 3 - .../harmony/uncategorised/117/options.json | 3 - .../harmony/uncategorised/118/options.json | 3 - .../harmony/uncategorised/119/options.json | 3 - .../harmony/uncategorised/12/options.json | 3 - .../harmony/uncategorised/120/options.json | 3 - .../harmony/uncategorised/121/options.json | 3 - .../harmony/uncategorised/122/options.json | 3 - .../harmony/uncategorised/123/options.json | 3 - .../harmony/uncategorised/128/options.json | 3 - .../harmony/uncategorised/129/options.json | 3 - .../harmony/uncategorised/13/options.json | 3 - .../harmony/uncategorised/130/options.json | 3 - .../harmony/uncategorised/131/options.json | 3 - .../harmony/uncategorised/132/options.json | 3 - .../harmony/uncategorised/133/options.json | 3 - .../harmony/uncategorised/134/options.json | 3 - .../harmony/uncategorised/135/options.json | 3 - .../harmony/uncategorised/136/options.json | 3 - .../harmony/uncategorised/137/options.json | 3 - .../harmony/uncategorised/138/options.json | 3 - .../harmony/uncategorised/139/options.json | 3 - .../harmony/uncategorised/14/options.json | 3 - .../harmony/uncategorised/140/options.json | 3 - .../harmony/uncategorised/141/options.json | 3 - .../harmony/uncategorised/142/options.json | 3 - .../harmony/uncategorised/143/options.json | 3 - .../harmony/uncategorised/144/options.json | 3 - .../harmony/uncategorised/145/options.json | 3 - .../harmony/uncategorised/146/options.json | 3 - .../harmony/uncategorised/147/options.json | 3 - .../harmony/uncategorised/148/options.json | 3 - .../harmony/uncategorised/149/options.json | 3 - .../harmony/uncategorised/15/options.json | 3 - .../harmony/uncategorised/150/options.json | 3 - .../harmony/uncategorised/152/options.json | 3 - .../harmony/uncategorised/153/options.json | 3 - .../harmony/uncategorised/154/options.json | 3 - .../harmony/uncategorised/155/options.json | 3 - .../harmony/uncategorised/156/options.json | 3 - .../harmony/uncategorised/157/options.json | 3 - .../harmony/uncategorised/158/options.json | 3 - .../harmony/uncategorised/159/options.json | 3 - .../harmony/uncategorised/16/options.json | 3 - .../harmony/uncategorised/160/options.json | 3 - .../harmony/uncategorised/161/options.json | 3 - .../harmony/uncategorised/162/options.json | 3 - .../harmony/uncategorised/163/options.json | 3 - .../harmony/uncategorised/164/options.json | 3 - .../harmony/uncategorised/165/options.json | 3 - .../harmony/uncategorised/166/options.json | 3 - .../harmony/uncategorised/167/options.json | 3 - .../harmony/uncategorised/168/options.json | 3 - .../harmony/uncategorised/169/options.json | 3 - .../harmony/uncategorised/17/options.json | 3 - .../harmony/uncategorised/170/options.json | 3 - .../harmony/uncategorised/171/options.json | 3 - .../harmony/uncategorised/172/options.json | 3 - .../harmony/uncategorised/173/options.json | 3 - .../harmony/uncategorised/174/options.json | 3 - .../harmony/uncategorised/175/options.json | 3 - .../harmony/uncategorised/176/options.json | 3 - .../harmony/uncategorised/177/options.json | 3 - .../harmony/uncategorised/178/options.json | 3 - .../harmony/uncategorised/179/options.json | 3 - .../harmony/uncategorised/18/options.json | 3 - .../harmony/uncategorised/180/options.json | 3 - .../harmony/uncategorised/181/options.json | 3 - .../harmony/uncategorised/182/options.json | 3 - .../harmony/uncategorised/183/options.json | 3 - .../harmony/uncategorised/184/options.json | 3 - .../harmony/uncategorised/185/options.json | 3 - .../harmony/uncategorised/186/options.json | 3 - .../harmony/uncategorised/187/options.json | 3 - .../harmony/uncategorised/188/options.json | 3 - .../harmony/uncategorised/189/options.json | 3 - .../harmony/uncategorised/19/options.json | 3 - .../harmony/uncategorised/190/options.json | 3 - .../harmony/uncategorised/191/options.json | 3 - .../harmony/uncategorised/192/options.json | 3 - .../harmony/uncategorised/193/options.json | 3 - .../harmony/uncategorised/194/options.json | 3 - .../harmony/uncategorised/2/options.json | 3 - .../harmony/uncategorised/20/options.json | 3 - .../harmony/uncategorised/21/options.json | 3 - .../harmony/uncategorised/22/options.json | 3 - .../harmony/uncategorised/23/options.json | 3 - .../harmony/uncategorised/24/options.json | 3 - .../harmony/uncategorised/25/options.json | 3 - .../harmony/uncategorised/256/options.json | 3 - .../harmony/uncategorised/257/options.json | 3 - .../harmony/uncategorised/259/options.json | 3 - .../harmony/uncategorised/27/options.json | 3 - .../harmony/uncategorised/28/options.json | 3 - .../harmony/uncategorised/29/options.json | 3 - .../harmony/uncategorised/292/options.json | 3 - .../harmony/uncategorised/3/options.json | 3 - .../harmony/uncategorised/30/options.json | 3 - .../harmony/uncategorised/304/options.json | 3 - .../harmony/uncategorised/305/options.json | 3 - .../harmony/uncategorised/306/options.json | 3 - .../harmony/uncategorised/307/options.json | 3 - .../harmony/uncategorised/308/options.json | 3 - .../harmony/uncategorised/309/options.json | 3 - .../harmony/uncategorised/31/options.json | 3 - .../harmony/uncategorised/310/options.json | 3 - .../harmony/uncategorised/313/options.json | 3 - .../harmony/uncategorised/314/options.json | 3 - .../harmony/uncategorised/315/options.json | 3 - .../harmony/uncategorised/316/options.json | 3 - .../harmony/uncategorised/32/options.json | 3 - .../harmony/uncategorised/33/options.json | 3 - .../harmony/uncategorised/34/options.json | 3 - .../harmony/uncategorised/35/options.json | 3 - .../harmony/uncategorised/36/options.json | 3 - .../harmony/uncategorised/39/options.json | 3 - .../harmony/uncategorised/4/options.json | 3 - .../harmony/uncategorised/40/options.json | 3 - .../harmony/uncategorised/41/options.json | 3 - .../harmony/uncategorised/42/options.json | 3 - .../harmony/uncategorised/43/options.json | 3 - .../harmony/uncategorised/44/options.json | 3 - .../harmony/uncategorised/45/options.json | 3 - .../harmony/uncategorised/46/options.json | 3 - .../harmony/uncategorised/47/options.json | 3 - .../harmony/uncategorised/48/options.json | 3 - .../harmony/uncategorised/49/options.json | 3 - .../harmony/uncategorised/5/options.json | 3 - .../harmony/uncategorised/50/options.json | 3 - .../harmony/uncategorised/51/options.json | 3 - .../harmony/uncategorised/52/options.json | 3 - .../harmony/uncategorised/53/options.json | 3 - .../harmony/uncategorised/54/options.json | 3 - .../harmony/uncategorised/55/options.json | 3 - .../harmony/uncategorised/56/options.json | 3 - .../harmony/uncategorised/57/options.json | 3 +- .../harmony/uncategorised/58/options.json | 3 +- .../harmony/uncategorised/59/options.json | 3 +- .../harmony/uncategorised/6/options.json | 3 - .../harmony/uncategorised/60/options.json | 3 +- .../harmony/uncategorised/61/options.json | 3 - .../harmony/uncategorised/62/options.json | 3 - .../harmony/uncategorised/63/options.json | 3 - .../harmony/uncategorised/64/options.json | 3 - .../harmony/uncategorised/65/options.json | 3 - .../harmony/uncategorised/66/options.json | 3 - .../harmony/uncategorised/67/options.json | 3 - .../harmony/uncategorised/68/options.json | 3 - .../harmony/uncategorised/69/options.json | 3 - .../harmony/uncategorised/7/options.json | 3 - .../harmony/uncategorised/70/options.json | 3 - .../harmony/uncategorised/71/options.json | 3 - .../harmony/uncategorised/72/options.json | 3 +- .../harmony/uncategorised/73/options.json | 3 +- .../harmony/uncategorised/74/options.json | 3 +- .../harmony/uncategorised/75/options.json | 3 +- .../harmony/uncategorised/76/options.json | 3 +- .../harmony/uncategorised/77/options.json | 3 +- .../harmony/uncategorised/78/options.json | 3 +- .../harmony/uncategorised/79/options.json | 3 +- .../harmony/uncategorised/8/options.json | 3 - .../harmony/uncategorised/80/options.json | 5 +- .../harmony/uncategorised/81/options.json | 5 +- .../harmony/uncategorised/82/options.json | 5 +- .../harmony/uncategorised/83/options.json | 5 +- .../harmony/uncategorised/85/options.json | 3 +- .../harmony/uncategorised/86/options.json | 3 +- .../harmony/uncategorised/87/options.json | 3 +- .../harmony/uncategorised/88/options.json | 3 +- .../harmony/uncategorised/89/options.json | 3 +- .../harmony/uncategorised/9/options.json | 3 - .../harmony/uncategorised/90/options.json | 3 +- .../harmony/uncategorised/91/options.json | 3 +- .../harmony/uncategorised/92/options.json | 3 +- .../harmony/uncategorised/93/options.json | 3 +- .../harmony/uncategorised/94/options.json | 3 +- .../harmony/uncategorised/95/options.json | 3 +- .../harmony/uncategorised/97/options.json | 3 +- .../harmony/uncategorised/98/options.json | 3 +- .../harmony/uncategorised/99/options.json | 3 +- .../babylon/test/fixtures/jsx/options.json | 1 - packages/babylon/test/index.js | 8 +- 233 files changed, 3512 insertions(+), 586 deletions(-) create mode 100755 packages/babylon/test/fixtures/comments/basic/block-trailing-comment/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/block-trailing-comment/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/comment-within-condition/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/comment-within-condition/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json create mode 100644 packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/options.json create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/actual.js create mode 100755 packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/expected.json delete mode 100644 packages/babylon/test/fixtures/core/uncategorised/537/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/1/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/10/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/101/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/102/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/103/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/105/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/106/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/107/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/108/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/109/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/11/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/110/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/111/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/112/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/113/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/114/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/115/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/116/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/117/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/118/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/119/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/12/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/120/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/121/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/122/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/123/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/128/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/129/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/13/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/130/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/131/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/132/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/133/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/134/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/135/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/136/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/137/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/138/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/139/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/14/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/140/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/141/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/142/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/143/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/144/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/145/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/146/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/147/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/148/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/149/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/15/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/150/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/152/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/153/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/154/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/155/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/156/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/157/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/158/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/159/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/16/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/160/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/161/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/162/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/163/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/164/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/165/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/166/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/167/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/168/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/169/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/17/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/170/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/171/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/172/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/173/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/174/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/175/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/176/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/177/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/178/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/179/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/18/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/180/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/181/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/182/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/183/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/184/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/185/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/186/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/187/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/188/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/189/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/19/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/190/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/191/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/192/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/193/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/194/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/2/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/20/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/21/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/22/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/23/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/24/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/25/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/256/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/257/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/259/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/27/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/28/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/29/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/292/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/3/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/30/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/304/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/305/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/306/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/307/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/308/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/309/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/31/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/310/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/313/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/314/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/315/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/316/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/32/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/33/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/34/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/35/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/36/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/39/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/4/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/40/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/41/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/42/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/43/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/44/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/45/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/46/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/47/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/48/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/49/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/5/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/50/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/51/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/52/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/53/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/54/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/55/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/56/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/6/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/61/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/62/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/63/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/64/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/65/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/66/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/67/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/68/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/69/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/7/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/70/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/71/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/8/options.json delete mode 100644 packages/babylon/test/fixtures/harmony/uncategorised/9/options.json diff --git a/packages/babylon/src/comments.js b/packages/babylon/src/comments.js index 56cdb5d0f4..ca27fb5e8f 100644 --- a/packages/babylon/src/comments.js +++ b/packages/babylon/src/comments.js @@ -36,11 +36,11 @@ pp.addComment = function (comment) { }; pp.processComment = function (node) { + if (node.type === "Program" && node.body.length > 0) return; + var stack = this.bottomRightStack; - var lastChild; - var trailingComments; - var i; + var lastChild, trailingComments, i; if (this.trailingComments.length > 0) { // If the first comment in trailingComments comes after the @@ -73,9 +73,21 @@ pp.processComment = function (node) { } if (lastChild) { - if (lastChild !== node && lastChild.leadingComments && last(lastChild.leadingComments).end <= node.start) { - node.leadingComments = lastChild.leadingComments; - lastChild.leadingComments = null; + if (lastChild.leadingComments) { + if (last(lastChild.leadingComments).range[1] <= node.range[0]) { + node.leadingComments = lastChild.leadingComments; + delete lastChild.leadingComments; + } else { + // A leading comment for an anonymous class had been stolen by its first MethodDefinition, + // so this takes back the leading comment. + // See Also: https://github.com/eslint/espree/issues/158 + for (i = lastChild.leadingComments.length - 2; i >= 0; --i) { + if (lastChild.leadingComments[i].range[1] <= node.range[0]) { + node.leadingComments = lastChild.leadingComments.splice(0, i + 1); + break; + } + } + } } } else if (this.leadingComments.length > 0) { if (last(this.leadingComments).end <= node.start) { diff --git a/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/actual.js b/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/actual.js new file mode 100755 index 0000000000..2a6819ff0b --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/actual.js @@ -0,0 +1,4 @@ +{ + a(); + //comment +} diff --git a/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/expected.json b/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/expected.json new file mode 100755 index 0000000000..d0d4965960 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/block-trailing-comment/expected.json @@ -0,0 +1,135 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "a", + "range": [ + 6, + 7 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 5 + } + } + }, + "arguments": [], + "range": [ + 6, + 9 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 7 + } + } + }, + "range": [ + 6, + 10 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 8 + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": "comment", + "range": [ + 15, + 24 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 13 + } + } + } + ] + } + ], + "range": [ + 0, + 26 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 26 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 4, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": "comment", + "range": [ + 15, + 24 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 13 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/comment-within-condition/actual.js b/packages/babylon/test/fixtures/comments/basic/comment-within-condition/actual.js new file mode 100755 index 0000000000..b997605def --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/comment-within-condition/actual.js @@ -0,0 +1,2 @@ +/* foo */ +if (/* bar */ a) {} diff --git a/packages/babylon/test/fixtures/comments/basic/comment-within-condition/expected.json b/packages/babylon/test/fixtures/comments/basic/comment-within-condition/expected.json new file mode 100755 index 0000000000..d6cc6f11c4 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/comment-within-condition/expected.json @@ -0,0 +1,155 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "IfStatement", + "test": { + "type": "Identifier", + "name": "a", + "range": [ + 25, + 26 + ], + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 16 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " bar ", + "range": [ + 14, + 23 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 13 + } + } + } + ] + }, + "consequent": { + "type": "BlockStatement", + "body": [], + "range": [ + 28, + 30 + ], + "loc": { + "start": { + "line": 2, + "column": 18 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "alternate": null, + "range": [ + 10, + 30 + ], + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 20 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " foo ", + "range": [ + 0, + 9 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 9 + } + } + } + ] + } + ], + "sourceType": "script", + "range": [ + 0, + 30 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 2, + "column": 20 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " foo ", + "range": [ + 0, + 9 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": " bar ", + "range": [ + 14, + 23 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 13 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/actual.js b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/actual.js new file mode 100755 index 0000000000..d0a26e4ede --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/actual.js @@ -0,0 +1,10 @@ +/** + * this is anonymous class. + */ +export default class { + /** + * this is method1. + */ + method1(){ + } +} 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 new file mode 100755 index 0000000000..f6047fc1a3 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/expected.json @@ -0,0 +1,233 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "ExportDefaultDeclaration", + "declaration": { + "type": "ClassExpression", + "id": null, + "superClass": null, + "body": { + "type": "ClassBody", + "body": [ + { + "type": "MethodDefinition", + "key": { + "type": "Identifier", + "name": "method1", + "range": [ + 103, + 110 + ], + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + "value": { + "type": "FunctionExpression", + "id": null, + "params": [], + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 112, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 110, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + "kind": "method", + "computed": false, + "range": [ + 103, + 119 + ], + "loc": { + "start": { + "line": 8, + "column": 4 + }, + "end": { + "line": 9, + "column": 5 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * this is method1.\n ", + "range": [ + 63, + 98 + ], + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 7, + "column": 7 + } + } + } + ], + "static": false + } + ], + "range": [ + 57, + 121 + ], + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 10, + "column": 1 + } + } + }, + "range": [ + 51, + 121 + ], + "loc": { + "start": { + "line": 4, + "column": 15 + }, + "end": { + "line": 10, + "column": 1 + } + } + }, + "range": [ + 36, + 121 + ], + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 10, + "column": 1 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * this is anonymous class.\n ", + "range": [ + 0, + 35 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + } + ], + "sourceType": "module", + "range": [ + 0, + 121 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 10, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * this is anonymous class.\n ", + "range": [ + 0, + 35 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * this is method1.\n ", + "range": [ + 63, + 98 + ], + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 7, + "column": 7 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/options.json b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/options.json new file mode 100644 index 0000000000..2104ca4328 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/export-default-anonymous-class/options.json @@ -0,0 +1,3 @@ +{ + "sourceType": "module" +} diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/actual.js b/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/actual.js new file mode 100755 index 0000000000..6cbc4bf61d --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/actual.js @@ -0,0 +1,5 @@ +function a() { + /* before */ + foo(); + /* after */ +} 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 new file mode 100755 index 0000000000..7ba441fe45 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-call-comments/expected.json @@ -0,0 +1,211 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "a", + "range": [ + 9, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "foo", + "range": [ + 36, + 39 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 7 + } + } + }, + "arguments": [], + "range": [ + 36, + 41 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 9 + } + } + }, + "range": [ + 36, + 42 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 10 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 47, + 58 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] + } + ], + "range": [ + 13, + 60 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 60 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 60 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + }, + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 47, + 58 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/actual.js b/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/actual.js new file mode 100755 index 0000000000..b292546b44 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/actual.js @@ -0,0 +1,5 @@ +function a() { + /* before */ + debugger; + /* after */ +} 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 new file mode 100755 index 0000000000..f302ece3bd --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-debugger-comments/expected.json @@ -0,0 +1,175 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "a", + "range": [ + 9, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "DebuggerStatement", + "range": [ + 36, + 45 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 50, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] + } + ], + "range": [ + 13, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + }, + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 50, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/actual.js b/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/actual.js new file mode 100755 index 0000000000..ae67152408 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/actual.js @@ -0,0 +1,5 @@ +function a() { + /* before */ + return; + /* after */ +} 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 new file mode 100755 index 0000000000..161f31cba1 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-return-comments/expected.json @@ -0,0 +1,176 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "a", + "range": [ + 9, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ReturnStatement", + "argument": null, + "range": [ + 36, + 43 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 11 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 48, + 59 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] + } + ], + "range": [ + 13, + 61 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 61 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 61 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + }, + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 48, + 59 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/actual.js b/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/actual.js new file mode 100755 index 0000000000..0ebc974917 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/actual.js @@ -0,0 +1,5 @@ +function a() { + /* before */ + throw 55; + /* after */ +} 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 new file mode 100755 index 0000000000..3f822e9cd7 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-throw-comments/expected.json @@ -0,0 +1,194 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "a", + "range": [ + 9, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "ThrowStatement", + "argument": { + "type": "Literal", + "value": 55, + "raw": "55", + "range": [ + 42, + 44 + ], + "loc": { + "start": { + "line": 3, + "column": 10 + }, + "end": { + "line": 3, + "column": 12 + } + } + }, + "range": [ + 36, + 45 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 13 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 50, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] + } + ], + "range": [ + 13, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 63 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " before ", + "range": [ + 19, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 16 + } + } + }, + { + "type": "CommentBlock", + "value": " after ", + "range": [ + 50, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 15 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/actual.js b/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/actual.js new file mode 100755 index 0000000000..2134f68be4 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/actual.js @@ -0,0 +1 @@ +function f() { /* infinite */ while (true) { } /* bar */ var each; } 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 new file mode 100755 index 0000000000..e7063db08d --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/surrounding-while-loop-comments/expected.json @@ -0,0 +1,288 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "f", + "range": [ + 9, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "params": [], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "WhileStatement", + "test": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 37, + 41 + ], + "loc": { + "start": { + "line": 1, + "column": 37 + }, + "end": { + "line": 1, + "column": 41 + } + } + }, + "body": { + "type": "BlockStatement", + "body": [], + "range": [ + 43, + 46 + ], + "loc": { + "start": { + "line": 1, + "column": 43 + }, + "end": { + "line": 1, + "column": 46 + } + } + }, + "range": [ + 30, + 46 + ], + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 46 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " infinite ", + "range": [ + 15, + 29 + ], + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 29 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": " bar ", + "range": [ + 47, + 56 + ], + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 56 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "declarations": [ + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "each", + "range": [ + 61, + 65 + ], + "loc": { + "start": { + "line": 1, + "column": 61 + }, + "end": { + "line": 1, + "column": 65 + } + } + }, + "init": null, + "range": [ + 61, + 65 + ], + "loc": { + "start": { + "line": 1, + "column": 61 + }, + "end": { + "line": 1, + "column": 65 + } + } + } + ], + "kind": "var", + "range": [ + 57, + 66 + ], + "loc": { + "start": { + "line": 1, + "column": 57 + }, + "end": { + "line": 1, + "column": 66 + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " bar ", + "range": [ + 47, + 56 + ], + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 56 + } + } + } + ] + } + ], + "range": [ + 13, + 68 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 68 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 68 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 68 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 68 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 68 + } + } + }, + "comments": [ + { + "type": "CommentBlock", + "value": " infinite ", + "range": [ + 15, + 29 + ], + "loc": { + "start": { + "line": 1, + "column": 15 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": "CommentBlock", + "value": " bar ", + "range": [ + 47, + 56 + ], + "loc": { + "start": { + "line": 1, + "column": 47 + }, + "end": { + "line": 1, + "column": 56 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/actual.js b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/actual.js new file mode 100755 index 0000000000..e71465ae63 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/actual.js @@ -0,0 +1,9 @@ +function bar(foo) { + switch(foo) { + // foo + case 1: + // falls through + case 2: + doIt(); + } +} 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 new file mode 100755 index 0000000000..5cab608d02 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment-in-function/expected.json @@ -0,0 +1,362 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "bar", + "range": [ + 9, + 12 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + "params": [ + { + "type": "Identifier", + "name": "foo", + "range": [ + 13, + 16 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 16 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "foo", + "range": [ + 31, + 34 + ], + "loc": { + "start": { + "line": 2, + "column": 11 + }, + "end": { + "line": 2, + "column": 14 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 66, + 67 + ], + "loc": { + "start": { + "line": 4, + "column": 13 + }, + "end": { + "line": 4, + "column": 14 + } + } + }, + "consequent": [], + "range": [ + 61, + 68 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " foo", + "range": [ + 46, + 52 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 14 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 81, + 97 + ], + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 28 + } + } + } + ] + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 111, + 112 + ], + "loc": { + "start": { + "line": 6, + "column": 13 + }, + "end": { + "line": 6, + "column": 14 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "doIt", + "range": [ + 126, + 130 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 16 + } + } + }, + "arguments": [], + "range": [ + 126, + 132 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 18 + } + } + }, + "range": [ + 126, + 133 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 19 + } + } + } + ], + "range": [ + 106, + 133 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 7, + "column": 19 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 81, + 97 + ], + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 28 + } + } + } + ] + } + ], + "range": [ + 24, + 139 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 8, + "column": 5 + } + } + } + ], + "range": [ + 18, + 141 + ], + "loc": { + "start": { + "line": 1, + "column": 18 + }, + "end": { + "line": 9, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 141 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 141 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": " foo", + "range": [ + 46, + 52 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 14 + } + } + }, + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 81, + 97 + ], + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 5, + "column": 28 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/actual.js b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/actual.js new file mode 100755 index 0000000000..3b8bb8eed4 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/actual.js @@ -0,0 +1,7 @@ +switch(foo) { + // foo + case 1: + // falls through + case 2: + doIt(); +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/expected.json b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/expected.json new file mode 100755 index 0000000000..6ace60329e --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-fallthrough-comment/expected.json @@ -0,0 +1,286 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "foo", + "range": [ + 7, + 10 + ], + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 34, + 35 + ], + "loc": { + "start": { + "line": 3, + "column": 9 + }, + "end": { + "line": 3, + "column": 10 + } + } + }, + "consequent": [], + "range": [ + 29, + 36 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 3, + "column": 11 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " foo", + "range": [ + 18, + 24 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 45, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 24 + } + } + } + ] + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 71, + 72 + ], + "loc": { + "start": { + "line": 5, + "column": 9 + }, + "end": { + "line": 5, + "column": 10 + } + } + }, + "consequent": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "doIt", + "range": [ + 82, + 86 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 12 + } + } + }, + "arguments": [], + "range": [ + 82, + 88 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 14 + } + } + }, + "range": [ + 82, + 89 + ], + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 15 + } + } + } + ], + "range": [ + 66, + 89 + ], + "loc": { + "start": { + "line": 5, + "column": 4 + }, + "end": { + "line": 6, + "column": 15 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 45, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 24 + } + } + } + ] + } + ], + "range": [ + 0, + 91 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 91 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 7, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": " foo", + "range": [ + 18, + 24 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 2, + "column": 10 + } + } + }, + { + "type": "CommentLine", + "value": " falls through", + "range": [ + 45, + 61 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 24 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/actual.js b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/actual.js new file mode 100755 index 0000000000..80983bd211 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/actual.js @@ -0,0 +1,9 @@ +function bar(a) { + switch (a) { + case 2: + break; + case 1: + break; + //no default + } +} 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 new file mode 100755 index 0000000000..f7b3f3d310 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-function/expected.json @@ -0,0 +1,288 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "bar", + "range": [ + 9, + 12 + ], + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + "params": [ + { + "type": "Identifier", + "name": "a", + "range": [ + 13, + 14 + ], + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 14 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "a", + "range": [ + 30, + 31 + ], + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 2, + "raw": "2", + "range": [ + 48, + 49 + ], + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 14 + } + } + }, + "consequent": [ + { + "type": "BreakStatement", + "label": null, + "range": [ + 63, + 69 + ], + "loc": { + "start": { + "line": 4, + "column": 12 + }, + "end": { + "line": 4, + "column": 18 + } + } + } + ], + "range": [ + 43, + 69 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 4, + "column": 18 + } + } + }, + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 83, + 84 + ], + "loc": { + "start": { + "line": 5, + "column": 13 + }, + "end": { + "line": 5, + "column": 14 + } + } + }, + "consequent": [ + { + "type": "BreakStatement", + "label": null, + "range": [ + 98, + 104 + ], + "loc": { + "start": { + "line": 6, + "column": 12 + }, + "end": { + "line": 6, + "column": 18 + } + } + } + ], + "range": [ + 78, + 104 + ], + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 6, + "column": 18 + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": "no default", + "range": [ + 113, + 125 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 20 + } + } + } + ] + } + ], + "range": [ + 22, + 131 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 8, + "column": 5 + } + } + } + ], + "range": [ + 16, + 133 + ], + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 9, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 0, + 133 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 133 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": "no default", + "range": [ + 113, + 125 + ], + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 20 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/actual.js b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/actual.js new file mode 100755 index 0000000000..03508aea0a --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/actual.js @@ -0,0 +1,12 @@ +module.exports = function(context) { + + function isConstant(node) { + switch (node.type) { + case "SequenceExpression": + return isConstant(node.expressions[node.expressions.length - 1]); + // no default + } + return false; + } + +}; 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 new file mode 100755 index 0000000000..b8d4ea8ff3 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/expected.json @@ -0,0 +1,707 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "module", + "range": [ + 0, + 6 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "name": "exports", + "range": [ + 7, + 14 + ], + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 14 + } + } + }, + "range": [ + 0, + 14 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 14 + } + } + }, + "right": { + "type": "FunctionExpression", + "id": null, + "params": [ + { + "type": "Identifier", + "name": "context", + "range": [ + 26, + 33 + ], + "loc": { + "start": { + "line": 1, + "column": 26 + }, + "end": { + "line": 1, + "column": 33 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "FunctionDeclaration", + "id": { + "type": "Identifier", + "name": "isConstant", + "range": [ + 51, + 61 + ], + "loc": { + "start": { + "line": 3, + "column": 13 + }, + "end": { + "line": 3, + "column": 23 + } + } + }, + "params": [ + { + "type": "Identifier", + "name": "node", + "range": [ + 62, + 66 + ], + "loc": { + "start": { + "line": 3, + "column": 24 + }, + "end": { + "line": 3, + "column": 28 + } + } + } + ], + "body": { + "type": "BlockStatement", + "body": [ + { + "type": "SwitchStatement", + "discriminant": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "node", + "range": [ + 86, + 90 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "name": "type", + "range": [ + 91, + 95 + ], + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 25 + } + } + }, + "range": [ + 86, + 95 + ], + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 25 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": "SequenceExpression", + "raw": "\"SequenceExpression\"", + "range": [ + 116, + 136 + ], + "loc": { + "start": { + "line": 5, + "column": 17 + }, + "end": { + "line": 5, + "column": 37 + } + } + }, + "consequent": [ + { + "type": "ReturnStatement", + "argument": { + "type": "CallExpression", + "callee": { + "type": "Identifier", + "name": "isConstant", + "range": [ + 161, + 171 + ], + "loc": { + "start": { + "line": 6, + "column": 23 + }, + "end": { + "line": 6, + "column": 33 + } + } + }, + "arguments": [ + { + "type": "MemberExpression", + "computed": true, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "node", + "range": [ + 172, + 176 + ], + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressions", + "range": [ + 177, + 188 + ], + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 50 + } + } + }, + "range": [ + 172, + 188 + ], + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 50 + } + } + }, + "property": { + "type": "BinaryExpression", + "operator": "-", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "node", + "range": [ + 189, + 193 + ], + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 6, + "column": 55 + } + } + }, + "property": { + "type": "Identifier", + "name": "expressions", + "range": [ + 194, + 205 + ], + "loc": { + "start": { + "line": 6, + "column": 56 + }, + "end": { + "line": 6, + "column": 67 + } + } + }, + "range": [ + 189, + 205 + ], + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 6, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "name": "length", + "range": [ + 206, + 212 + ], + "loc": { + "start": { + "line": 6, + "column": 68 + }, + "end": { + "line": 6, + "column": 74 + } + } + }, + "range": [ + 189, + 212 + ], + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 6, + "column": 74 + } + } + }, + "right": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 215, + 216 + ], + "loc": { + "start": { + "line": 6, + "column": 77 + }, + "end": { + "line": 6, + "column": 78 + } + } + }, + "range": [ + 189, + 216 + ], + "loc": { + "start": { + "line": 6, + "column": 51 + }, + "end": { + "line": 6, + "column": 78 + } + } + }, + "range": [ + 172, + 217 + ], + "loc": { + "start": { + "line": 6, + "column": 34 + }, + "end": { + "line": 6, + "column": 79 + } + } + } + ], + "range": [ + 161, + 218 + ], + "loc": { + "start": { + "line": 6, + "column": 23 + }, + "end": { + "line": 6, + "column": 80 + } + } + }, + "range": [ + 154, + 219 + ], + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 81 + } + } + } + ], + "range": [ + 111, + 219 + ], + "loc": { + "start": { + "line": 5, + "column": 12 + }, + "end": { + "line": 6, + "column": 81 + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " no default", + "range": [ + 232, + 245 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 25 + } + } + } + ] + } + ], + "range": [ + 78, + 255 + ], + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 8, + "column": 9 + } + } + }, + { + "type": "ReturnStatement", + "argument": { + "type": "Literal", + "value": false, + "raw": "false", + "range": [ + 271, + 276 + ], + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + "range": [ + 264, + 277 + ], + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 21 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " no default", + "range": [ + 232, + 245 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 25 + } + } + } + ] + } + ], + "range": [ + 68, + 283 + ], + "loc": { + "start": { + "line": 3, + "column": 30 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 42, + 283 + ], + "loc": { + "start": { + "line": 3, + "column": 4 + }, + "end": { + "line": 10, + "column": 5 + } + } + } + ], + "range": [ + 35, + 286 + ], + "loc": { + "start": { + "line": 1, + "column": 35 + }, + "end": { + "line": 12, + "column": 1 + } + } + }, + "generator": false, + "expression": false, + "range": [ + 17, + 286 + ], + "loc": { + "start": { + "line": 1, + "column": 17 + }, + "end": { + "line": 12, + "column": 1 + } + } + }, + "range": [ + 0, + 286 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + } + }, + "range": [ + 0, + 287 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 2 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 287 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 12, + "column": 2 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": " no default", + "range": [ + 232, + 245 + ], + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 25 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/actual.js b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/actual.js new file mode 100755 index 0000000000..5febe2bcca --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/actual.js @@ -0,0 +1,5 @@ +switch (a) { + case 1: + break; + //no default +} diff --git a/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/expected.json b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/expected.json new file mode 100755 index 0000000000..4d7734d285 --- /dev/null +++ b/packages/babylon/test/fixtures/comments/basic/switch-no-default-comment/expected.json @@ -0,0 +1,156 @@ +{ + "type": "File", + "program": { + "type": "Program", + "body": [ + { + "type": "SwitchStatement", + "discriminant": { + "type": "Identifier", + "name": "a", + "range": [ + 8, + 9 + ], + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 9 + } + } + }, + "cases": [ + { + "type": "SwitchCase", + "test": { + "type": "Literal", + "value": 1, + "raw": "1", + "range": [ + 22, + 23 + ], + "loc": { + "start": { + "line": 2, + "column": 9 + }, + "end": { + "line": 2, + "column": 10 + } + } + }, + "consequent": [ + { + "type": "BreakStatement", + "label": null, + "range": [ + 33, + 39 + ], + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 14 + } + } + } + ], + "range": [ + 17, + 39 + ], + "loc": { + "start": { + "line": 2, + "column": 4 + }, + "end": { + "line": 3, + "column": 14 + } + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": "no default", + "range": [ + 44, + 56 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 16 + } + } + } + ] + } + ], + "range": [ + 0, + 58 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + } + ], + "sourceType": "script", + "range": [ + 0, + 58 + ], + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + "comments": [ + { + "type": "CommentLine", + "value": "no default", + "range": [ + 44, + 56 + ], + "loc": { + "start": { + "line": 4, + "column": 4 + }, + "end": { + "line": 4, + "column": 16 + } + } + } + ] +} diff --git a/packages/babylon/test/fixtures/core/uncategorised/537/options.json b/packages/babylon/test/fixtures/core/uncategorised/537/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/core/uncategorised/537/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/26/options.json b/packages/babylon/test/fixtures/experimental/uncategorised/26/options.json index f13cfa3d26..2fce804177 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/26/options.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/26/options.json @@ -1,6 +1,5 @@ { "features": { "es7.asyncFunctions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/27/options.json b/packages/babylon/test/fixtures/experimental/uncategorised/27/options.json index f13cfa3d26..2fce804177 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/27/options.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/27/options.json @@ -1,6 +1,5 @@ { "features": { "es7.asyncFunctions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/experimental/uncategorised/28/options.json b/packages/babylon/test/fixtures/experimental/uncategorised/28/options.json index f13cfa3d26..2fce804177 100644 --- a/packages/babylon/test/fixtures/experimental/uncategorised/28/options.json +++ b/packages/babylon/test/fixtures/experimental/uncategorised/28/options.json @@ -1,6 +1,5 @@ { "features": { "es7.asyncFunctions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/flow/options.json b/packages/babylon/test/fixtures/flow/options.json index 843a93626d..c1331af184 100644 --- a/packages/babylon/test/fixtures/flow/options.json +++ b/packages/babylon/test/fixtures/flow/options.json @@ -1,6 +1,5 @@ { "sourceType": "module", "plugins": { "jsx": true, "flow": true }, - "features": { "es7.asyncFunctions": true }, - "ranges": true + "features": { "es7.asyncFunctions": true } } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/1/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/1/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/1/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/10/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/10/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/10/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/100/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/100/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/100/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/100/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/101/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/101/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/101/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/102/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/102/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/102/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/103/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/103/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/103/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/105/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/105/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/105/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/106/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/106/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/106/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/107/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/107/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/107/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/108/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/108/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/108/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/109/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/109/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/109/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/11/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/11/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/11/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/110/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/110/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/110/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/111/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/111/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/111/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/112/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/112/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/112/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/113/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/113/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/113/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/114/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/114/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/114/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/115/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/115/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/115/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/116/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/116/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/116/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/117/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/117/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/117/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/118/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/118/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/118/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/119/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/119/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/119/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/12/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/12/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/12/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/120/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/120/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/120/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/121/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/121/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/121/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/122/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/122/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/122/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/123/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/123/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/123/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/128/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/128/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/128/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/129/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/129/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/129/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/13/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/13/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/13/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/130/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/130/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/130/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/131/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/131/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/131/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/132/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/132/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/132/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/133/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/133/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/133/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/134/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/134/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/134/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/135/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/135/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/135/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/136/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/136/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/136/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/137/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/137/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/137/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/138/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/138/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/138/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/139/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/139/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/139/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/14/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/14/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/14/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/140/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/140/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/140/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/141/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/141/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/141/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/142/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/142/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/142/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/143/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/143/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/143/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/144/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/144/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/144/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/145/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/145/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/145/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/146/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/146/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/146/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/147/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/147/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/147/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/148/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/148/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/148/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/149/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/149/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/149/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/15/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/15/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/15/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/150/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/150/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/150/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/152/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/152/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/152/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/153/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/153/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/153/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/154/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/154/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/154/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/155/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/155/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/155/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/156/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/156/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/156/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/157/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/157/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/157/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/158/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/158/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/158/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/159/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/159/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/159/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/16/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/16/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/16/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/160/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/160/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/160/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/161/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/161/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/161/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/162/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/162/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/162/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/163/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/163/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/163/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/164/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/164/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/164/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/165/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/165/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/165/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/166/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/166/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/166/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/167/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/167/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/167/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/168/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/168/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/168/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/169/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/169/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/169/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/17/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/17/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/17/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/170/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/170/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/170/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/171/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/171/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/171/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/172/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/172/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/172/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/173/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/173/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/173/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/174/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/174/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/174/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/175/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/175/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/175/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/176/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/176/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/176/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/177/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/177/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/177/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/178/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/178/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/178/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/179/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/179/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/179/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/18/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/18/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/18/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/180/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/180/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/180/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/181/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/181/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/181/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/182/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/182/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/182/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/183/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/183/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/183/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/184/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/184/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/184/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/185/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/185/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/185/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/186/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/186/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/186/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/187/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/187/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/187/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/188/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/188/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/188/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/189/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/189/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/189/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/19/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/19/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/19/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/190/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/190/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/190/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/191/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/191/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/191/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/192/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/192/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/192/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/193/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/193/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/193/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/194/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/194/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/194/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/2/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/2/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/2/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/20/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/20/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/20/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/21/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/21/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/21/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/22/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/22/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/22/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/23/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/23/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/23/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/24/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/24/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/24/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/25/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/25/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/25/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/256/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/256/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/256/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/257/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/257/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/257/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/259/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/259/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/259/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/27/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/27/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/27/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/28/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/28/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/28/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/29/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/29/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/29/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/292/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/292/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/292/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/3/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/3/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/3/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/30/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/30/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/30/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/304/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/304/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/304/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/305/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/305/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/305/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/306/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/306/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/306/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/307/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/307/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/307/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/308/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/308/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/308/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/309/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/309/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/309/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/31/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/31/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/31/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/310/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/310/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/310/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/313/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/313/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/313/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/314/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/314/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/314/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/315/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/315/options.json deleted file mode 100644 index de661f2aca..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/315/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} \ No newline at end of file diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/316/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/316/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/316/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/32/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/32/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/32/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/33/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/33/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/33/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/34/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/34/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/34/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/35/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/35/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/35/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/36/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/36/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/36/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/39/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/39/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/39/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/4/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/4/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/4/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/40/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/40/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/40/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/41/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/41/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/41/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/42/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/42/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/42/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/43/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/43/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/43/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/44/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/44/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/44/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/45/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/45/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/45/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/46/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/46/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/46/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/47/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/47/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/47/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/48/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/48/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/48/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/49/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/49/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/49/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/5/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/5/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/5/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/50/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/50/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/50/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/51/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/51/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/51/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/52/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/52/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/52/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/53/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/53/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/53/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/54/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/54/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/54/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/55/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/55/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/55/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/56/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/56/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/56/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/57/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/57/options.json index 04a583741d..8d84badefb 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/57/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/57/options.json @@ -1,6 +1,5 @@ { "features": { "es7.comprehensions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/58/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/58/options.json index 04a583741d..8d84badefb 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/58/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/58/options.json @@ -1,6 +1,5 @@ { "features": { "es7.comprehensions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/59/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/59/options.json index 04a583741d..8d84badefb 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/59/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/59/options.json @@ -1,6 +1,5 @@ { "features": { "es7.comprehensions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/6/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/6/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/6/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/60/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/60/options.json index 04a583741d..8d84badefb 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/60/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/60/options.json @@ -1,6 +1,5 @@ { "features": { "es7.comprehensions": true - }, - "ranges": true + } } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/61/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/61/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/61/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/62/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/62/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/62/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/63/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/63/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/63/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/64/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/64/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/64/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/65/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/65/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/65/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/66/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/66/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/66/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/67/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/67/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/67/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/68/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/68/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/68/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/69/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/69/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/69/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/7/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/7/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/7/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/70/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/70/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/70/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/71/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/71/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/71/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/72/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/72/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/72/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/72/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/73/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/73/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/73/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/73/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/74/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/74/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/74/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/74/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/75/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/75/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/75/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/75/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/76/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/76/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/76/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/76/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/77/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/77/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/77/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/77/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/78/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/78/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/78/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/78/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/79/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/79/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/79/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/79/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/8/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/8/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/8/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/80/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/80/options.json index b643545e51..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/80/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/80/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true -} \ No newline at end of file + "sourceType": "module" +} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/81/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/81/options.json index b643545e51..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/81/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/81/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true -} \ No newline at end of file + "sourceType": "module" +} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/82/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/82/options.json index b643545e51..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/82/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/82/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true -} \ No newline at end of file + "sourceType": "module" +} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/83/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/83/options.json index b643545e51..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/83/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/83/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true -} \ No newline at end of file + "sourceType": "module" +} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/85/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/85/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/85/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/85/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/86/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/86/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/86/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/86/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/87/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/87/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/87/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/87/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/88/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/88/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/88/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/88/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/89/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/89/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/89/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/89/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/9/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/9/options.json deleted file mode 100644 index 7d108ad39d..0000000000 --- a/packages/babylon/test/fixtures/harmony/uncategorised/9/options.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ranges": true -} diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/90/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/90/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/90/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/90/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/91/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/91/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/91/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/91/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/92/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/92/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/92/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/92/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/93/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/93/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/93/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/93/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/94/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/94/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/94/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/94/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/95/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/95/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/95/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/95/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/97/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/97/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/97/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/97/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/98/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/98/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/98/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/98/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/harmony/uncategorised/99/options.json b/packages/babylon/test/fixtures/harmony/uncategorised/99/options.json index b4060a5e20..2104ca4328 100644 --- a/packages/babylon/test/fixtures/harmony/uncategorised/99/options.json +++ b/packages/babylon/test/fixtures/harmony/uncategorised/99/options.json @@ -1,4 +1,3 @@ { - "sourceType": "module", - "ranges": true + "sourceType": "module" } diff --git a/packages/babylon/test/fixtures/jsx/options.json b/packages/babylon/test/fixtures/jsx/options.json index 222e071ea9..393a3c5f17 100644 --- a/packages/babylon/test/fixtures/jsx/options.json +++ b/packages/babylon/test/fixtures/jsx/options.json @@ -1,4 +1,3 @@ { - "ranges": true, "plugins": { "jsx": true } } diff --git a/packages/babylon/test/index.js b/packages/babylon/test/index.js index 4502a1199e..a50bf4b3ab 100644 --- a/packages/babylon/test/index.js +++ b/packages/babylon/test/index.js @@ -21,6 +21,7 @@ _.each(fixtures, function (suites, name) { function runTest(test) { var opts = test.options; opts.locations = true; + opts.ranges = true; try { var ast = parse(test.actual.code, opts); @@ -40,7 +41,12 @@ function runTest(test) { if (opts.throws) { throw new Error("Expected error message: " + opts.throws + ". But parsing succeeded."); } else { - var mis = misMatch(JSON.parse(test.expect.code), ast); + try { + var mis = misMatch(JSON.parse(test.expect.code), ast); + } catch (err) { + console.log(test.expect.code); + throw err; + } if (mis) { //delete ast.tokens; //require("fs").writeFileSync(test.expect.loc, JSON.stringify(ast, null, " "));