Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-arrow/parenthesized-binding-identifier/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "errors": [
5 "SyntaxError: Invalid parenthesized assignment pattern. (1:18)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":4,"end":29,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":29,"index":29}},
20 "id": {
21 "type": "Identifier",
22 "start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
23 "name": "foo"
24 },
25 "init": {
26 "type": "ArrowFunctionExpression",
27 "start":10,"end":29,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":29,"index":29}},
28 "id": null,
29 "generator": false,
30 "async": true,
31 "params": [
32 {
33 "type": "Identifier",
34 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"foo"},
35 "name": "foo",
36 "extra": {
37 "parenthesized": true,
38 "parenStart": 17
39 }
40 }
41 ],
42 "body": {
43 "type": "BlockStatement",
44 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29}},
45 "body": [],
46 "directives": []
47 }
48 }
49 }
50 ],
51 "kind": "var"
52 }
53 ],
54 "directives": []
55 }
56 }