Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/array-rest-spread/with-object/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":30,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":30,"index":30}},
17 "id": {
18 "type": "ArrayPattern",
19 "start":4,"end":17,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":17,"index":17}},
20 "elements": [
21 {
22 "type": "RestElement",
23 "start":5,"end":16,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":16,"index":16}},
24 "argument": {
25 "type": "ObjectPattern",
26 "start":8,"end":16,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":16,"index":16}},
27 "properties": [
28 {
29 "type": "ObjectProperty",
30 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15}},
31 "key": {
32 "type": "Identifier",
33 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15},"identifierName":"length"},
34 "name": "length"
35 },
36 "computed": false,
37 "method": false,
38 "shorthand": true,
39 "value": {
40 "type": "Identifier",
41 "start":9,"end":15,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":15,"index":15},"identifierName":"length"},
42 "name": "length"
43 },
44 "extra": {
45 "shorthand": true
46 }
47 }
48 ]
49 }
50 }
51 ]
52 },
53 "init": {
54 "type": "ArrayExpression",
55 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}},
56 "elements": [
57 {
58 "type": "NumericLiteral",
59 "start":22,"end":23,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":23,"index":23}},
60 "extra": {
61 "rawValue": 1,
62 "raw": "1"
63 },
64 "value": 1
65 },
66 {
67 "type": "NumericLiteral",
68 "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26}},
69 "extra": {
70 "rawValue": 2,
71 "raw": "2"
72 },
73 "value": 2
74 },
75 {
76 "type": "NumericLiteral",
77 "start":28,"end":29,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":29,"index":29}},
78 "extra": {
79 "rawValue": 3,
80 "raw": "3"
81 },
82 "value": 3
83 }
84 ]
85 }
86 }
87 ],
88 "kind": "var"
89 }
90 ],
91 "directives": []
92 }
93 }