Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/object-rest-spread/21/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "errors": [
5 "SyntaxError: Invalid rest operator's argument. (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":1,"end":16,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":16,"index":16}},
19 "operator": "=",
20 "left": {
21 "type": "ObjectPattern",
22 "start":1,"end":11,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":11,"index":11}},
23 "properties": [
24 {
25 "type": "RestElement",
26 "start":2,"end":10,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":10,"index":10}},
27 "argument": {
28 "type": "AssignmentPattern",
29 "start":5,"end":10,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":10,"index":10}},
30 "left": {
31 "type": "Identifier",
32 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"x"},
33 "name": "x"
34 },
35 "right": {
36 "type": "NumericLiteral",
37 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
38 "extra": {
39 "rawValue": 1,
40 "raw": "1"
41 },
42 "value": 1
43 }
44 }
45 }
46 ]
47 },
48 "right": {
49 "type": "ObjectExpression",
50 "start":14,"end":16,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":16,"index":16}},
51 "properties": []
52 },
53 "extra": {
54 "parenthesized": true,
55 "parenStart": 0
56 }
57 }
58 }
59 ],
60 "directives": []
61 }
62 }