Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/372/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'enum'. (1:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":23,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":23,"index":23}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":22,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":22,"index":22}},
20 "id": {
21 "type": "ObjectPattern",
22 "start":6,"end":14,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":14,"index":14}},
23 "properties": [
24 {
25 "type": "ObjectProperty",
26 "start":8,"end":12,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":12,"index":12}},
27 "key": {
28 "type": "Identifier",
29 "start":8,"end":12,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":12,"index":12},"identifierName":"enum"},
30 "name": "enum"
31 },
32 "computed": false,
33 "method": false,
34 "shorthand": true,
35 "value": {
36 "type": "Identifier",
37 "start":8,"end":12,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":12,"index":12},"identifierName":"enum"},
38 "name": "enum"
39 },
40 "extra": {
41 "shorthand": true
42 }
43 }
44 ]
45 },
46 "init": {
47 "type": "CallExpression",
48 "start":17,"end":22,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":22,"index":22}},
49 "callee": {
50 "type": "Identifier",
51 "start":17,"end":20,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":20,"index":20},"identifierName":"foo"},
52 "name": "foo"
53 },
54 "arguments": []
55 }
56 }
57 ],
58 "kind": "const"
59 }
60 ],
61 "directives": []
62 }
63 }