Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/object-binding-pattern-invalid-rest-in-object-pattern/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":16,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":16,"index":16}},
13 "expression": {
14 "type": "ArrowFunctionExpression",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [
20 {
21 "type": "ObjectPattern",
22 "start":1,"end":9,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":9,"index":9}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
27 "method": false,
28 "key": {
29 "type": "Identifier",
30 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
31 "name": "a"
32 },
33 "computed": false,
34 "shorthand": true,
35 "value": {
36 "type": "Identifier",
37 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
38 "name": "a"
39 },
40 "extra": {
41 "shorthand": true
42 }
43 },
44 {
45 "type": "RestElement",
46 "start":4,"end":8,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":8,"index":8}},
47 "argument": {
48 "type": "Identifier",
49 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"b"},
50 "name": "b"
51 }
52 }
53 ]
54 }
55 ],
56 "body": {
57 "type": "NumericLiteral",
58 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}},
59 "extra": {
60 "rawValue": 0,
61 "raw": "0"
62 },
63 "value": 0
64 }
65 }
66 }
67 ],
68 "directives": []
69 }
70 }