Debian Codegraph @

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

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